timeservice

package
v0.0.0-...-6022d19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Request) GetDurationSecs

func (m *Request) GetDurationSecs() uint32

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

func (m *Request) XXX_Unmarshal(b []byte) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL