sender

package
v0.0.0-...-3c0bad3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_v1_sender_sender_proto protoreflect.FileDescriptor
View Source
var SenderService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sender.v1.SenderService",
	HandlerType: (*SenderServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Send",
			Handler:    _SenderService_Send_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/sender/sender.proto",
}

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

Functions

func RegisterSenderServiceServer

func RegisterSenderServiceServer(s grpc.ServiceRegistrar, srv SenderServiceServer)

Types

type SendRequest

type SendRequest struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*SendRequest) Descriptor deprecated

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

Deprecated: Use SendRequest.ProtoReflect.Descriptor instead.

func (*SendRequest) GetMessage

func (x *SendRequest) GetMessage() string

func (*SendRequest) ProtoMessage

func (*SendRequest) ProtoMessage()

func (*SendRequest) ProtoReflect

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

func (*SendRequest) Reset

func (x *SendRequest) Reset()

func (*SendRequest) String

func (x *SendRequest) String() string

type SenderServiceClient

type SenderServiceClient interface {
	Send(ctx context.Context, in *SendRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

SenderServiceClient is the client API for SenderService 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 SenderServiceServer

type SenderServiceServer interface {
	Send(context.Context, *SendRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

SenderServiceServer is the server API for SenderService service. All implementations must embed UnimplementedSenderServiceServer for forward compatibility

type UnimplementedSenderServiceServer

type UnimplementedSenderServiceServer struct {
}

UnimplementedSenderServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSenderServiceServer) Send

type UnsafeSenderServiceServer

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

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

Jump to

Keyboard shortcuts

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