Documentation
¶
Index ¶
- Variables
- func RegisterTimerServer(s grpc.ServiceRegistrar, srv TimerServer)
- type GetAllPendingTimersReq
- type GetAllPendingTimersResp
- func (*GetAllPendingTimersResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllPendingTimersResp) GetItems() []*TimerInfo
- func (*GetAllPendingTimersResp) ProtoMessage()
- func (x *GetAllPendingTimersResp) ProtoReflect() protoreflect.Message
- func (x *GetAllPendingTimersResp) Reset()
- func (x *GetAllPendingTimersResp) String() string
- type TimerClient
- type TimerInfo
- type TimerServer
- type UnimplementedTimerServer
- type UnsafeTimerServer
Constants ¶
This section is empty.
Variables ¶
var File_api_grpc_timer_proto protoreflect.FileDescriptor
var Timer_ServiceDesc = grpc.ServiceDesc{ ServiceName: "timer.Timer", HandlerType: (*TimerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAllPendingTimers", Handler: _Timer_GetAllPendingTimers_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/grpc/timer.proto", }
Timer_ServiceDesc is the grpc.ServiceDesc for Timer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTimerServer ¶
func RegisterTimerServer(s grpc.ServiceRegistrar, srv TimerServer)
Types ¶
type GetAllPendingTimersReq ¶
type GetAllPendingTimersReq struct {
// contains filtered or unexported fields
}
func (*GetAllPendingTimersReq) Descriptor
deprecated
func (*GetAllPendingTimersReq) Descriptor() ([]byte, []int)
Deprecated: Use GetAllPendingTimersReq.ProtoReflect.Descriptor instead.
func (*GetAllPendingTimersReq) ProtoMessage ¶
func (*GetAllPendingTimersReq) ProtoMessage()
func (*GetAllPendingTimersReq) ProtoReflect ¶
func (x *GetAllPendingTimersReq) ProtoReflect() protoreflect.Message
func (*GetAllPendingTimersReq) Reset ¶
func (x *GetAllPendingTimersReq) Reset()
func (*GetAllPendingTimersReq) String ¶
func (x *GetAllPendingTimersReq) String() string
type GetAllPendingTimersResp ¶
type GetAllPendingTimersResp struct { Items []*TimerInfo `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*GetAllPendingTimersResp) Descriptor
deprecated
func (*GetAllPendingTimersResp) Descriptor() ([]byte, []int)
Deprecated: Use GetAllPendingTimersResp.ProtoReflect.Descriptor instead.
func (*GetAllPendingTimersResp) GetItems ¶
func (x *GetAllPendingTimersResp) GetItems() []*TimerInfo
func (*GetAllPendingTimersResp) ProtoMessage ¶
func (*GetAllPendingTimersResp) ProtoMessage()
func (*GetAllPendingTimersResp) ProtoReflect ¶
func (x *GetAllPendingTimersResp) ProtoReflect() protoreflect.Message
func (*GetAllPendingTimersResp) Reset ¶
func (x *GetAllPendingTimersResp) Reset()
func (*GetAllPendingTimersResp) String ¶
func (x *GetAllPendingTimersResp) String() string
type TimerClient ¶
type TimerClient interface {
GetAllPendingTimers(ctx context.Context, in *GetAllPendingTimersReq, opts ...grpc.CallOption) (*GetAllPendingTimersResp, error)
}
TimerClient is the client API for Timer service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTimerClient ¶
func NewTimerClient(cc grpc.ClientConnInterface) TimerClient
type TimerInfo ¶
type TimerInfo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` TriggerAt string `protobuf:"bytes,2,opt,name=trigger_at,json=triggerAt,proto3" json:"trigger_at,omitempty"` // contains filtered or unexported fields }
func (*TimerInfo) Descriptor
deprecated
func (*TimerInfo) GetTriggerAt ¶
func (*TimerInfo) ProtoMessage ¶
func (*TimerInfo) ProtoMessage()
func (*TimerInfo) ProtoReflect ¶
func (x *TimerInfo) ProtoReflect() protoreflect.Message
type TimerServer ¶
type TimerServer interface { GetAllPendingTimers(context.Context, *GetAllPendingTimersReq) (*GetAllPendingTimersResp, error) // contains filtered or unexported methods }
TimerServer is the server API for Timer service. All implementations must embed UnimplementedTimerServer for forward compatibility
type UnimplementedTimerServer ¶
type UnimplementedTimerServer struct{}
UnimplementedTimerServer must be embedded to have forward compatible implementations.
func (UnimplementedTimerServer) GetAllPendingTimers ¶
func (UnimplementedTimerServer) GetAllPendingTimers(context.Context, *GetAllPendingTimersReq) (*GetAllPendingTimersResp, error)
type UnsafeTimerServer ¶
type UnsafeTimerServer interface {
// contains filtered or unexported methods
}
UnsafeTimerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TimerServer will result in compilation errors.