proto

package
v0.0.0-...-5121b1b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_message_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Ack.ProtoReflect.Descriptor instead.

func (*Ack) GetId

func (x *Ack) GetId() string

func (*Ack) GetMessage

func (x *Ack) GetMessage() string

func (*Ack) GetTraceId

func (x *Ack) GetTraceId() string

func (*Ack) ProtoMessage

func (*Ack) ProtoMessage()

func (*Ack) ProtoReflect

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

func (*Ack) Reset

func (x *Ack) Reset()

func (*Ack) String

func (x *Ack) String() string

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.

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

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.

Jump to

Keyboard shortcuts

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