messageman

package
v0.0.0-...-cd29b86 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pb_v1_job_dispatcher_proto protoreflect.FileDescriptor
View Source
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.

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

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.

Jump to

Keyboard shortcuts

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