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_handler_proto protoreflect.FileDescriptor
View Source
var HandlerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "messageman.v1.HandlerService",
	HandlerType: (*HandlerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Handle",
			Handler:    _HandlerService_Handle_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pb/v1/handler.proto",
}

HandlerService_ServiceDesc is the grpc.ServiceDesc for HandlerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterHandlerServiceServer

func RegisterHandlerServiceServer(s grpc.ServiceRegistrar, srv HandlerServiceServer)

Types

type HandleRequest

type HandleRequest 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 (*HandleRequest) Descriptor deprecated

func (*HandleRequest) Descriptor() ([]byte, []int)

Deprecated: Use HandleRequest.ProtoReflect.Descriptor instead.

func (*HandleRequest) GetMessage

func (x *HandleRequest) GetMessage() []byte

func (*HandleRequest) GetName

func (x *HandleRequest) GetName() string

func (*HandleRequest) ProtoMessage

func (*HandleRequest) ProtoMessage()

func (*HandleRequest) ProtoReflect

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

func (*HandleRequest) Reset

func (x *HandleRequest) Reset()

func (*HandleRequest) String

func (x *HandleRequest) String() string

type HandlerServiceClient

type HandlerServiceClient interface {
	Handle(ctx context.Context, in *HandleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

HandlerServiceClient is the client API for HandlerService 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 HandlerServiceServer

type HandlerServiceServer interface {
	Handle(context.Context, *HandleRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

HandlerServiceServer is the server API for HandlerService service. All implementations must embed UnimplementedHandlerServiceServer for forward compatibility

type UnimplementedHandlerServiceServer

type UnimplementedHandlerServiceServer struct {
}

UnimplementedHandlerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedHandlerServiceServer) Handle

type UnsafeHandlerServiceServer

type UnsafeHandlerServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeHandlerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HandlerServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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