- syntax = "proto3";
- import "gRPC_Model/general.proto";
- option go_package ="./gRPC_Model";
- message Timestamp {
- int64 seconds = 1;
- }
- message StateSwitch{
- bool State = 1;
- }
- service Time {
- rpc GetTime (Empty) returns (Timestamp);
- rpc SetTime (Timestamp) returns (Empty);
- rpc AutoSet(StateSwitch) returns(Empty);
- rpc AutoSetState(Empty)returns(StateSwitch);
- }
|