generated from Yandex-Practicum/go-musthave-metrics-tpl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from ex0rcist/iter25
Инкремент №25
- Loading branch information
Showing
80 changed files
with
6,587 additions
and
3,366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
go 1.22.9 | ||
golang 1.22.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
syntax = "proto3"; | ||
|
||
package metflix.v1; | ||
option go_package = "github.com/ex0rcist/metflix/grpcapi"; | ||
|
||
import "google/protobuf/empty.proto"; | ||
|
||
service Health { | ||
rpc Ping(google.protobuf.Empty) returns (google.protobuf.Empty); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
syntax = "proto3"; | ||
|
||
package metflix.v1; | ||
|
||
option go_package = "github.com/ex0rcist/metflix/grpcapi"; | ||
|
||
message MetricExchange { | ||
string id = 1; | ||
string mtype = 2; | ||
int64 delta = 3; | ||
double value = 4; | ||
string hash = 5; | ||
} | ||
|
||
message BatchUpdateRequest { | ||
repeated MetricExchange data = 1; | ||
} | ||
|
||
message BatchUpdateEncryptedRequest { | ||
bytes encrypted_data = 1; | ||
} | ||
|
||
message BatchUpdateResponse { | ||
repeated MetricExchange data = 1; | ||
} | ||
|
||
service Metrics { | ||
rpc BatchUpdate(BatchUpdateRequest) returns (BatchUpdateResponse); | ||
rpc BatchUpdateEncrypted(BatchUpdateEncryptedRequest) returns (BatchUpdateResponse); | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"address": "localhost:8080", | ||
"grpc_address": "localhost:50051", | ||
"restore": true, | ||
"store_interval": 1, | ||
"store_file": "./metflix.db", | ||
|
||
"crypto_key": "./example_key.pem" | ||
} |
Oops, something went wrong.