talos/api/time/time.proto
Andrew Rynhard ad863a7f92 refactor: rename protobuf services, RPCs, and messages
This PR brings our protobuf files into conformance with the protobuf
style guide, and community conventions. It is purely renames, along with
generated docs.

Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-12-11 11:41:40 -08:00

32 lines
865 B
Protocol Buffer

syntax = "proto3";
package time;
option go_package = "github.com/talos-systems/talos/api/time";
option java_multiple_files = true;
option java_outer_classname = "TimeApi";
option java_package = "com.time.api";
import "google/protobuf/empty.proto";
import "google/protobuf/timestamp.proto";
import "common/common.proto";
// The time service definition.
service TimeService {
rpc Time(google.protobuf.Empty) returns (TimeResponse);
rpc TimeCheck(TimeRequest) returns (TimeResponse);
}
// The response message containing the ntp server
message TimeRequest { string server = 1; }
message Time {
common.Metadata metadata = 1;
string server = 2;
google.protobuf.Timestamp localtime = 3;
google.protobuf.Timestamp remotetime = 4;
}
// The response message containing the ntp server, time, and offset
message TimeResponse { repeated Time messages = 1; }