ref: f371af5f199691912f766ce813b5e8df7e5d756c
protobuf/metric.proto
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
syntax = "proto3"; package crud; option go_package = "yats/crudpb"; message Metric { string id = 1; string name = 2; string description = 3; } message CreateMetricRequest { Metric metric = 1; } message CreateMetricResponse { Metric metric = 1; } message ReadMetricRequest { string id = 1; } message ReadMetricResponse { Metric metric = 1; } service CRUDService { rpc CreateMetric(CreateMetricRequest) returns (CreateMetricResponse); rpc ReadMetric(ReadMetricRequest) returns (ReadMetricResponse); } |