grpc

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_grpc_timer_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use TimerInfo.ProtoReflect.Descriptor instead.

func (*TimerInfo) GetName

func (x *TimerInfo) GetName() string

func (*TimerInfo) GetTriggerAt

func (x *TimerInfo) GetTriggerAt() string

func (*TimerInfo) ProtoMessage

func (*TimerInfo) ProtoMessage()

func (*TimerInfo) ProtoReflect

func (x *TimerInfo) ProtoReflect() protoreflect.Message

func (*TimerInfo) Reset

func (x *TimerInfo) Reset()

func (*TimerInfo) String

func (x *TimerInfo) String() string

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

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.

Jump to

Keyboard shortcuts

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