Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_v1_sender_sender_proto protoreflect.FileDescriptor
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.
func NewSenderServiceClient ¶
func NewSenderServiceClient(cc grpc.ClientConnInterface) SenderServiceClient
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 ¶
func (UnimplementedSenderServiceServer) Send(context.Context, *SendRequest) (*emptypb.Empty, error)
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.