Documentation ¶
Index ¶
- func RegisterTimeServiceServer(s *grpc.Server, srv TimeServiceServer)
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetDurationSecs() uint32
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type TimeResponse
- func (*TimeResponse) Descriptor() ([]byte, []int)
- func (m *TimeResponse) GetCurrentTime() *timestamp.Timestamp
- func (*TimeResponse) ProtoMessage()
- func (m *TimeResponse) Reset()
- func (m *TimeResponse) String() string
- func (m *TimeResponse) XXX_DiscardUnknown()
- func (m *TimeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TimeResponse) XXX_Merge(src proto.Message)
- func (m *TimeResponse) XXX_Size() int
- func (m *TimeResponse) XXX_Unmarshal(b []byte) error
- type TimeServiceClient
- type TimeServiceServer
- type TimeService_StreamTimeClient
- type TimeService_StreamTimeServer
- type UnimplementedTimeServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTimeServiceServer ¶
func RegisterTimeServiceServer(s *grpc.Server, srv TimeServiceServer)
Types ¶
type Request ¶
type Request struct { DurationSecs uint32 `protobuf:"varint,2,opt,name=duration_secs,json=durationSecs,proto3" json:"duration_secs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) GetDurationSecs ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type TimeResponse ¶
type TimeResponse struct { CurrentTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=current_time,json=currentTime,proto3" json:"current_time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TimeResponse) Descriptor ¶
func (*TimeResponse) Descriptor() ([]byte, []int)
func (*TimeResponse) GetCurrentTime ¶
func (m *TimeResponse) GetCurrentTime() *timestamp.Timestamp
func (*TimeResponse) ProtoMessage ¶
func (*TimeResponse) ProtoMessage()
func (*TimeResponse) Reset ¶
func (m *TimeResponse) Reset()
func (*TimeResponse) String ¶
func (m *TimeResponse) String() string
func (*TimeResponse) XXX_DiscardUnknown ¶
func (m *TimeResponse) XXX_DiscardUnknown()
func (*TimeResponse) XXX_Marshal ¶
func (m *TimeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TimeResponse) XXX_Merge ¶
func (m *TimeResponse) XXX_Merge(src proto.Message)
func (*TimeResponse) XXX_Size ¶
func (m *TimeResponse) XXX_Size() int
func (*TimeResponse) XXX_Unmarshal ¶
func (m *TimeResponse) XXX_Unmarshal(b []byte) error
type TimeServiceClient ¶
type TimeServiceClient interface {
StreamTime(ctx context.Context, in *Request, opts ...grpc.CallOption) (TimeService_StreamTimeClient, error)
}
TimeServiceClient is the client API for TimeService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTimeServiceClient ¶
func NewTimeServiceClient(cc *grpc.ClientConn) TimeServiceClient
type TimeServiceServer ¶
type TimeServiceServer interface {
StreamTime(*Request, TimeService_StreamTimeServer) error
}
TimeServiceServer is the server API for TimeService service.
type TimeService_StreamTimeClient ¶
type TimeService_StreamTimeClient interface { Recv() (*TimeResponse, error) grpc.ClientStream }
type TimeService_StreamTimeServer ¶
type TimeService_StreamTimeServer interface { Send(*TimeResponse) error grpc.ServerStream }
type UnimplementedTimeServiceServer ¶
type UnimplementedTimeServiceServer struct { }
UnimplementedTimeServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedTimeServiceServer) StreamTime ¶
func (*UnimplementedTimeServiceServer) StreamTime(req *Request, srv TimeService_StreamTimeServer) error
Click to show internal directories.
Click to hide internal directories.