Documentation ¶
Index ¶
- Constants
- Variables
- func MessagingClientRoutes(cli MessagingClient, opts ...gors.Option) []gors.Route
- func MessagingServerRoutes(srv MessagingServer, opts ...gors.Option) []gors.Route
- func MessagingServiceRoutes(svc MessagingService, opts ...gors.Option) []gors.Route
- func RegisterMessagingServer(s grpc.ServiceRegistrar, srv MessagingServer)
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetBodyText() string
- func (x *Message) GetMessageId() string
- func (x *Message) GetNotUsed() string
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type Message2
- func (*Message2) Descriptor() ([]byte, []int)deprecated
- func (x *Message2) GetBodyText() string
- func (x *Message2) GetMessageId() string
- func (x *Message2) GetNotUsed() string
- func (*Message2) ProtoMessage()
- func (x *Message2) ProtoReflect() protoreflect.Message
- func (x *Message2) Reset()
- func (x *Message2) String() string
- type MessagingClient
- type MessagingServer
- type MessagingService
- type UnimplementedMessagingServer
- type UnsafeMessagingServer
Constants ¶
const ( Messaging_CreateMessage_FullMethodName = "/tests.jsonnames.message.v1.Messaging/CreateMessage" Messaging_UpdateMessage_FullMethodName = "/tests.jsonnames.message.v1.Messaging/UpdateMessage" )
Variables ¶
var File_example_api_tests_jsonoptions_message_proto protoreflect.FileDescriptor
var Messaging_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tests.jsonnames.message.v1.Messaging", HandlerType: (*MessagingServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateMessage", Handler: _Messaging_CreateMessage_Handler, }, { MethodName: "UpdateMessage", Handler: _Messaging_UpdateMessage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "example/api/tests/jsonoptions/message.proto", }
Messaging_ServiceDesc is the grpc.ServiceDesc for Messaging service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func MessagingClientRoutes ¶ added in v1.5.8
func MessagingClientRoutes(cli MessagingClient, opts ...gors.Option) []gors.Route
func MessagingServerRoutes ¶ added in v1.5.8
func MessagingServerRoutes(srv MessagingServer, opts ...gors.Option) []gors.Route
func MessagingServiceRoutes ¶
func MessagingServiceRoutes(svc MessagingService, opts ...gors.Option) []gors.Route
func RegisterMessagingServer ¶
func RegisterMessagingServer(s grpc.ServiceRegistrar, srv MessagingServer)
Types ¶
type Message ¶
type Message struct { MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` BodyText string `protobuf:"bytes,2,opt,name=body_text,json=bodyText,proto3" json:"body_text,omitempty"` NotUsed string `protobuf:"bytes,3,opt,name=not_used,json=notUsed,proto3" json:"not_used,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetBodyText ¶
func (*Message) GetMessageId ¶
func (*Message) GetNotUsed ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type Message2 ¶
type Message2 struct { MessageId string `protobuf:"bytes,1,opt,name=message_id,proto3" json:"message_id,omitempty"` BodyText string `protobuf:"bytes,2,opt,name=body_text,proto3" json:"body_text,omitempty"` NotUsed string `protobuf:"bytes,3,opt,name=not_used,proto3" json:"not_used,omitempty"` // contains filtered or unexported fields }
func (*Message2) Descriptor
deprecated
func (*Message2) GetBodyText ¶
func (*Message2) GetMessageId ¶
func (*Message2) GetNotUsed ¶
func (*Message2) ProtoMessage ¶
func (*Message2) ProtoMessage()
func (*Message2) ProtoReflect ¶
func (x *Message2) ProtoReflect() protoreflect.Message
type MessagingClient ¶
type MessagingClient interface { CreateMessage(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error) UpdateMessage(ctx context.Context, in *Message2, opts ...grpc.CallOption) (*Message2, error) }
MessagingClient is the client API for Messaging 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 NewMessagingClient ¶
func NewMessagingClient(cc grpc.ClientConnInterface) MessagingClient
type MessagingServer ¶
type MessagingServer interface { CreateMessage(context.Context, *Message) (*Message, error) UpdateMessage(context.Context, *Message2) (*Message2, error) // contains filtered or unexported methods }
MessagingServer is the server API for Messaging service. All implementations must embed UnimplementedMessagingServer for forward compatibility
type MessagingService ¶
type MessagingService interface { CreateMessage(context.Context, *Message) (*Message, error) UpdateMessage(context.Context, *Message2) (*Message2, error) }
MessagingService is the service API for Messaging service.
type UnimplementedMessagingServer ¶
type UnimplementedMessagingServer struct { }
UnimplementedMessagingServer must be embedded to have forward compatible implementations.
func (UnimplementedMessagingServer) CreateMessage ¶
func (UnimplementedMessagingServer) UpdateMessage ¶
type UnsafeMessagingServer ¶
type UnsafeMessagingServer interface {
// contains filtered or unexported methods
}
UnsafeMessagingServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MessagingServer will result in compilation errors.