Documentation
¶
Overview ¶
Package timedelta is a generated protocol buffer package.
It is generated from these files:
timedelta.proto
It has these top-level messages:
TimeDeltaRequest TimeDeltaResponse SleepRequest SleepResponse
Index ¶
- func GontextFromRest(req ripo.Request) (context.Context, error)
- func NewRest_Sleep(client TimedeltaClient) ripo.Handler
- func NewRest_TimeDelta(client TimedeltaClient) ripo.Handler
- func RegisterRestHandlers(client TimedeltaClient, router *httprouter.Router)
- func RegisterTimedeltaServer(s *grpc.Server, srv TimedeltaServer)
- type SleepRequest
- type SleepResponse
- type TimeDeltaRequest
- type TimeDeltaResponse
- func (*TimeDeltaResponse) Descriptor() ([]byte, []int)
- func (m *TimeDeltaResponse) GetDelta() *google_protobuf1.Duration
- func (m *TimeDeltaResponse) GetNow() *google_protobuf.Timestamp
- func (*TimeDeltaResponse) ProtoMessage()
- func (m *TimeDeltaResponse) Reset()
- func (m *TimeDeltaResponse) String() string
- type TimedeltaClient
- type TimedeltaServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRest_Sleep ¶
func NewRest_Sleep(client TimedeltaClient) ripo.Handler
func NewRest_TimeDelta ¶
func NewRest_TimeDelta(client TimedeltaClient) ripo.Handler
func RegisterRestHandlers ¶
func RegisterRestHandlers(client TimedeltaClient, router *httprouter.Router)
func RegisterTimedeltaServer ¶
func RegisterTimedeltaServer(s *grpc.Server, srv TimedeltaServer)
Types ¶
type SleepRequest ¶
type SleepRequest struct {
Duration *google_protobuf1.Duration `protobuf:"bytes,1,opt,name=duration" json:"duration,omitempty"`
}
func (*SleepRequest) Descriptor ¶
func (*SleepRequest) Descriptor() ([]byte, []int)
func (*SleepRequest) GetDuration ¶
func (m *SleepRequest) GetDuration() *google_protobuf1.Duration
func (*SleepRequest) ProtoMessage ¶
func (*SleepRequest) ProtoMessage()
func (*SleepRequest) Reset ¶
func (m *SleepRequest) Reset()
func (*SleepRequest) String ¶
func (m *SleepRequest) String() string
type SleepResponse ¶
type SleepResponse struct {
}
func (*SleepResponse) Descriptor ¶
func (*SleepResponse) Descriptor() ([]byte, []int)
func (*SleepResponse) ProtoMessage ¶
func (*SleepResponse) ProtoMessage()
func (*SleepResponse) Reset ¶
func (m *SleepResponse) Reset()
func (*SleepResponse) String ¶
func (m *SleepResponse) String() string
type TimeDeltaRequest ¶
type TimeDeltaRequest struct {
Now *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=now" json:"now,omitempty"`
}
func (*TimeDeltaRequest) Descriptor ¶
func (*TimeDeltaRequest) Descriptor() ([]byte, []int)
func (*TimeDeltaRequest) GetNow ¶
func (m *TimeDeltaRequest) GetNow() *google_protobuf.Timestamp
func (*TimeDeltaRequest) ProtoMessage ¶
func (*TimeDeltaRequest) ProtoMessage()
func (*TimeDeltaRequest) Reset ¶
func (m *TimeDeltaRequest) Reset()
func (*TimeDeltaRequest) String ¶
func (m *TimeDeltaRequest) String() string
type TimeDeltaResponse ¶
type TimeDeltaResponse struct {
Now *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=now" json:"now,omitempty"`
Delta *google_protobuf1.Duration `protobuf:"bytes,2,opt,name=delta" json:"delta,omitempty"`
}
func (*TimeDeltaResponse) Descriptor ¶
func (*TimeDeltaResponse) Descriptor() ([]byte, []int)
func (*TimeDeltaResponse) GetDelta ¶
func (m *TimeDeltaResponse) GetDelta() *google_protobuf1.Duration
func (*TimeDeltaResponse) GetNow ¶
func (m *TimeDeltaResponse) GetNow() *google_protobuf.Timestamp
func (*TimeDeltaResponse) ProtoMessage ¶
func (*TimeDeltaResponse) ProtoMessage()
func (*TimeDeltaResponse) Reset ¶
func (m *TimeDeltaResponse) Reset()
func (*TimeDeltaResponse) String ¶
func (m *TimeDeltaResponse) String() string
type TimedeltaClient ¶
type TimedeltaClient interface {
TimeDelta(ctx context.Context, in *TimeDeltaRequest, opts ...grpc.CallOption) (*TimeDeltaResponse, error)
Sleep(ctx context.Context, in *SleepRequest, opts ...grpc.CallOption) (*SleepResponse, error)
}
func NewTimedeltaClient ¶
func NewTimedeltaClient(cc *grpc.ClientConn) TimedeltaClient
func NewTimedeltaClientFromServer ¶
func NewTimedeltaClientFromServer(srv TimedeltaServer) TimedeltaClient
type TimedeltaServer ¶
type TimedeltaServer interface {
TimeDelta(context.Context, *TimeDeltaRequest) (*TimeDeltaResponse, error)
Sleep(context.Context, *SleepRequest) (*SleepResponse, error)
}
Click to show internal directories.
Click to hide internal directories.