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.
- Loading branch information
Showing
12 changed files
with
611 additions
and
37 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
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,24 @@ | ||
syntax = "proto3"; | ||
|
||
package server; | ||
|
||
option go_package = "./server"; | ||
|
||
message Metric { | ||
string ID = 1; | ||
string MType = 2; | ||
float Value = 3; | ||
int64 Delta = 4; | ||
} | ||
|
||
message UpdateMetricRequest { | ||
Metric metric = 1; | ||
} | ||
|
||
message UpdateMetricResponse { | ||
string error = 1; | ||
} | ||
|
||
service Metrics { | ||
rpc UpdateMetrics (stream UpdateMetricRequest) returns (UpdateMetricResponse) {} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.