Versions in this module Expand all Collapse all v0 v0.1.0 Dec 14, 2018 Changes in this version + func RegisterTimeServer(s *grpc.Server, srv TimeServer) + type NowRequest struct + Location string + func (*NowRequest) Descriptor() ([]byte, []int) + func (*NowRequest) ProtoMessage() + func (m *NowRequest) GetLocation() string + func (m *NowRequest) Reset() + func (m *NowRequest) String() string + type NowResponse struct + Location string + Now string + func (*NowResponse) Descriptor() ([]byte, []int) + func (*NowResponse) ProtoMessage() + func (m *NowResponse) GetLocation() string + func (m *NowResponse) GetNow() string + func (m *NowResponse) Reset() + func (m *NowResponse) String() string + type SleepRequest struct + Duration string + func (*SleepRequest) Descriptor() ([]byte, []int) + func (*SleepRequest) ProtoMessage() + func (m *SleepRequest) GetDuration() string + func (m *SleepRequest) Reset() + func (m *SleepRequest) String() string + type SleepResponse struct + Result string + func (*SleepResponse) Descriptor() ([]byte, []int) + func (*SleepResponse) ProtoMessage() + func (m *SleepResponse) GetResult() string + func (m *SleepResponse) Reset() + func (m *SleepResponse) String() string + type TimeClient interface + Now func(ctx context.Context, in *NowRequest, opts ...grpc.CallOption) (*NowResponse, error) + Sleep func(ctx context.Context, in *SleepRequest, opts ...grpc.CallOption) (*SleepResponse, error) + func NewTimeClient(cc *grpc.ClientConn) TimeClient + type TimeServer interface + Now func(context.Context, *NowRequest) (*NowResponse, error) + Sleep func(context.Context, *SleepRequest) (*SleepResponse, error) + type TimeService struct + Address string + Opts []grpc.DialOption + TagFromString func(string) jsonrpc.MethodTag + TagToString func(jsonrpc.MethodTag) string + func (*TimeService) JsonrpcService() + func (s *TimeService) Exec(ctx context.Context, method string, params io.Reader) (proto.Message, error) + func (s *TimeService) Methods() []string