Documentation ¶
Index ¶
- Variables
- func RegisterMessageProcessorServer(s grpc.ServiceRegistrar, srv MessageProcessorServer)
- type Ack
- type MessagePayload
- func (*MessagePayload) Descriptor() ([]byte, []int)deprecated
- func (x *MessagePayload) GetId() string
- func (x *MessagePayload) GetMessage() string
- func (x *MessagePayload) GetTime() *timestamppb.Timestamp
- func (*MessagePayload) ProtoMessage()
- func (x *MessagePayload) ProtoReflect() protoreflect.Message
- func (x *MessagePayload) Reset()
- func (x *MessagePayload) String() string
- type MessageProcessorClient
- type MessageProcessorServer
- type UnimplementedMessageProcessorServer
- type UnsafeMessageProcessorServer
Constants ¶
This section is empty.
Variables ¶
var File_message_proto protoreflect.FileDescriptor
var MessageProcessor_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.MessageProcessor", HandlerType: (*MessageProcessorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ProcessMessages", Handler: _MessageProcessor_ProcessMessages_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "message.proto", }
MessageProcessor_ServiceDesc is the grpc.ServiceDesc for MessageProcessor service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMessageProcessorServer ¶
func RegisterMessageProcessorServer(s grpc.ServiceRegistrar, srv MessageProcessorServer)
Types ¶
type Ack ¶
type Ack struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` TraceId string `protobuf:"bytes,2,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Ack) Descriptor
deprecated
func (*Ack) GetMessage ¶
func (*Ack) GetTraceId ¶
func (*Ack) ProtoMessage ¶
func (*Ack) ProtoMessage()
func (*Ack) ProtoReflect ¶
func (x *Ack) ProtoReflect() protoreflect.Message
type MessagePayload ¶
type MessagePayload struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*MessagePayload) Descriptor
deprecated
func (*MessagePayload) Descriptor() ([]byte, []int)
Deprecated: Use MessagePayload.ProtoReflect.Descriptor instead.
func (*MessagePayload) GetId ¶
func (x *MessagePayload) GetId() string
func (*MessagePayload) GetMessage ¶
func (x *MessagePayload) GetMessage() string
func (*MessagePayload) GetTime ¶
func (x *MessagePayload) GetTime() *timestamppb.Timestamp
func (*MessagePayload) ProtoMessage ¶
func (*MessagePayload) ProtoMessage()
func (*MessagePayload) ProtoReflect ¶
func (x *MessagePayload) ProtoReflect() protoreflect.Message
func (*MessagePayload) Reset ¶
func (x *MessagePayload) Reset()
func (*MessagePayload) String ¶
func (x *MessagePayload) String() string
type MessageProcessorClient ¶
type MessageProcessorClient interface {
ProcessMessages(ctx context.Context, in *MessagePayload, opts ...grpc.CallOption) (*Ack, error)
}
MessageProcessorClient is the client API for MessageProcessor 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 NewMessageProcessorClient ¶
func NewMessageProcessorClient(cc grpc.ClientConnInterface) MessageProcessorClient
type MessageProcessorServer ¶
type MessageProcessorServer interface { ProcessMessages(context.Context, *MessagePayload) (*Ack, error) // contains filtered or unexported methods }
MessageProcessorServer is the server API for MessageProcessor service. All implementations must embed UnimplementedMessageProcessorServer for forward compatibility
type UnimplementedMessageProcessorServer ¶
type UnimplementedMessageProcessorServer struct { }
UnimplementedMessageProcessorServer must be embedded to have forward compatible implementations.
func (UnimplementedMessageProcessorServer) ProcessMessages ¶
func (UnimplementedMessageProcessorServer) ProcessMessages(context.Context, *MessagePayload) (*Ack, error)
type UnsafeMessageProcessorServer ¶
type UnsafeMessageProcessorServer interface {
// contains filtered or unexported methods
}
UnsafeMessageProcessorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MessageProcessorServer will result in compilation errors.