ref: 50c609d05a1149eef5535c33306198163e2bb041
utils/yats-grpc.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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
/** * Yats - yats * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Paolo Lulli <kevwe.com> * @copyright Paolo Lulli 2024 */ syntax = "proto3"; package yats; option java_package = "com.kevwe.yats.protobuf"; option java_multiple_files = true; option go_package = "yats/proto"; message Metric { string id_client = 1; int64 mtime = 2; string name = 3; string value = 4; } message Event { string id_client = 1; int64 etime = 2; string name = 3; } message Position { string id_client = 1; int64 ptime = 2; double lat = 3; double lon = 4; string name = 5; } message CreateMetricRequest { Metric metric = 1; } message CreateMetricResponse { Metric metric = 1; } message CreateEventRequest { Event event = 1; } message CreateEventResponse { Event event = 1; } message CreatePositionRequest { Position position = 1; } message CreatePositionResponse { Position position = 1; } service YatsGrpcService { rpc CreateMetric(CreateMetricRequest) returns (CreateMetricResponse); rpc CreateEvent(CreateEventRequest) returns (CreateEventResponse); rpc CreatePosition(CreatePositionRequest) returns (CreatePositionResponse); } |