Documentation ¶
Index ¶
- Variables
- func RegisterJobDispatcherServiceServer(s grpc.ServiceRegistrar, srv JobDispatcherServiceServer)
- type JobDispatcherServiceClient
- type JobDispatcherServiceServer
- type QueueRequest
- func (*QueueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueueRequest) GetMessage() []byte
- func (x *QueueRequest) GetName() string
- func (*QueueRequest) ProtoMessage()
- func (x *QueueRequest) ProtoReflect() protoreflect.Message
- func (x *QueueRequest) Reset()
- func (x *QueueRequest) String() string
- type UnimplementedJobDispatcherServiceServer
- type UnsafeJobDispatcherServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_pb_v1_job_dispatcher_proto protoreflect.FileDescriptor
var JobDispatcherService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "messageman.v1.JobDispatcherService", HandlerType: (*JobDispatcherServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Queue", Handler: _JobDispatcherService_Queue_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pb/v1/job_dispatcher.proto", }
JobDispatcherService_ServiceDesc is the grpc.ServiceDesc for JobDispatcherService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterJobDispatcherServiceServer ¶
func RegisterJobDispatcherServiceServer(s grpc.ServiceRegistrar, srv JobDispatcherServiceServer)
Types ¶
type JobDispatcherServiceClient ¶
type JobDispatcherServiceClient interface {
Queue(ctx context.Context, in *QueueRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
JobDispatcherServiceClient is the client API for JobDispatcherService 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 NewJobDispatcherServiceClient ¶
func NewJobDispatcherServiceClient(cc grpc.ClientConnInterface) JobDispatcherServiceClient
type JobDispatcherServiceServer ¶
type JobDispatcherServiceServer interface { Queue(context.Context, *QueueRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
JobDispatcherServiceServer is the server API for JobDispatcherService service. All implementations must embed UnimplementedJobDispatcherServiceServer for forward compatibility
type QueueRequest ¶
type QueueRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*QueueRequest) Descriptor
deprecated
func (*QueueRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueueRequest.ProtoReflect.Descriptor instead.
func (*QueueRequest) GetMessage ¶
func (x *QueueRequest) GetMessage() []byte
func (*QueueRequest) GetName ¶
func (x *QueueRequest) GetName() string
func (*QueueRequest) ProtoMessage ¶
func (*QueueRequest) ProtoMessage()
func (*QueueRequest) ProtoReflect ¶
func (x *QueueRequest) ProtoReflect() protoreflect.Message
func (*QueueRequest) Reset ¶
func (x *QueueRequest) Reset()
func (*QueueRequest) String ¶
func (x *QueueRequest) String() string
type UnimplementedJobDispatcherServiceServer ¶
type UnimplementedJobDispatcherServiceServer struct { }
UnimplementedJobDispatcherServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedJobDispatcherServiceServer) Queue ¶
func (UnimplementedJobDispatcherServiceServer) Queue(context.Context, *QueueRequest) (*emptypb.Empty, error)
type UnsafeJobDispatcherServiceServer ¶
type UnsafeJobDispatcherServiceServer interface {
// contains filtered or unexported methods
}
UnsafeJobDispatcherServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to JobDispatcherServiceServer will result in compilation errors.