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 Comment
- func (*Comment) Descriptor() ([]byte, []int)deprecated
- func (x *Comment) GetCommentId() string
- func (x *Comment) GetContent() string
- func (x *Comment) GetUserId() uint64
- func (*Comment) ProtoMessage()
- func (x *Comment) ProtoReflect() protoreflect.Message
- func (x *Comment) Reset()
- func (x *Comment) String() string
- type GetMessageRequest
- func (*GetMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMessageRequest) GetMessageId() string
- func (x *GetMessageRequest) GetUserId() uint64
- func (*GetMessageRequest) ProtoMessage()
- func (x *GetMessageRequest) ProtoReflect() protoreflect.Message
- func (x *GetMessageRequest) Reset()
- func (x *GetMessageRequest) String() string
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetContent() string
- func (x *Message) GetMaybe() string
- func (x *Message) GetMessageId() string
- func (x *Message) GetUserId() uint64
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type MessagingClient
- type MessagingServer
- type MessagingService
- type Meta
- type UnimplementedMessagingServer
- func (UnimplementedMessagingServer) CreateMessage(context.Context, *Message) (*Message, error)
- func (UnimplementedMessagingServer) GetMessage(context.Context, *GetMessageRequest) (*Message, error)
- func (UnimplementedMessagingServer) GetUserMessage(context.Context, *GetMessageRequest) (*Message, error)
- func (UnimplementedMessagingServer) UpdateMessage(context.Context, *UpdateMessageRequest) (*Message, error)
- type UnsafeMessagingServer
- type UpdateMessageRequest
- func (*UpdateMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMessageRequest) GetContent() string
- func (x *UpdateMessageRequest) GetMaybe() string
- func (x *UpdateMessageRequest) GetName() string
- func (*UpdateMessageRequest) ProtoMessage()
- func (x *UpdateMessageRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateMessageRequest) Reset()
- func (x *UpdateMessageRequest) String() string
Constants ¶
const ( Messaging_GetMessage_FullMethodName = "/tests.pathparams.message.v1.Messaging/GetMessage" Messaging_GetUserMessage_FullMethodName = "/tests.pathparams.message.v1.Messaging/GetUserMessage" Messaging_CreateMessage_FullMethodName = "/tests.pathparams.message.v1.Messaging/CreateMessage" Messaging_UpdateMessage_FullMethodName = "/tests.pathparams.message.v1.Messaging/UpdateMessage" )
Variables ¶
var File_example_api_tests_pathparams_message_proto protoreflect.FileDescriptor
var Messaging_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tests.pathparams.message.v1.Messaging", HandlerType: (*MessagingServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetMessage", Handler: _Messaging_GetMessage_Handler, }, { MethodName: "GetUserMessage", Handler: _Messaging_GetUserMessage_Handler, }, { MethodName: "CreateMessage", Handler: _Messaging_CreateMessage_Handler, }, { MethodName: "UpdateMessage", Handler: _Messaging_UpdateMessage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "example/api/tests/pathparams/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 Comment ¶
type Comment struct { CommentId string `protobuf:"bytes,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` UserId uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*Comment) Descriptor
deprecated
func (*Comment) GetCommentId ¶
func (*Comment) GetContent ¶
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) ProtoReflect ¶
func (x *Comment) ProtoReflect() protoreflect.Message
type GetMessageRequest ¶
type GetMessageRequest struct { MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` UserId uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetMessageRequest) Descriptor
deprecated
func (*GetMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMessageRequest.ProtoReflect.Descriptor instead.
func (*GetMessageRequest) GetMessageId ¶
func (x *GetMessageRequest) GetMessageId() string
func (*GetMessageRequest) GetUserId ¶
func (x *GetMessageRequest) GetUserId() uint64
func (*GetMessageRequest) ProtoMessage ¶
func (*GetMessageRequest) ProtoMessage()
func (*GetMessageRequest) ProtoReflect ¶
func (x *GetMessageRequest) ProtoReflect() protoreflect.Message
func (*GetMessageRequest) Reset ¶
func (x *GetMessageRequest) Reset()
func (*GetMessageRequest) String ¶
func (x *GetMessageRequest) String() string
type Message ¶
type Message struct { MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` UserId uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` Maybe *string `protobuf:"bytes,4,opt,name=maybe,proto3,oneof" json:"maybe,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetContent ¶
func (*Message) GetMessageId ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MessagingClient ¶
type MessagingClient interface { GetMessage(ctx context.Context, in *GetMessageRequest, opts ...grpc.CallOption) (*Message, error) GetUserMessage(ctx context.Context, in *GetMessageRequest, opts ...grpc.CallOption) (*Message, error) CreateMessage(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error) UpdateMessage(ctx context.Context, in *UpdateMessageRequest, opts ...grpc.CallOption) (*Message, 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 { GetMessage(context.Context, *GetMessageRequest) (*Message, error) GetUserMessage(context.Context, *GetMessageRequest) (*Message, error) CreateMessage(context.Context, *Message) (*Message, error) UpdateMessage(context.Context, *UpdateMessageRequest) (*Message, 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 { GetMessage(context.Context, *GetMessageRequest) (*Message, error) GetUserMessage(context.Context, *GetMessageRequest) (*Message, error) CreateMessage(context.Context, *Message) (*Message, error) UpdateMessage(context.Context, *UpdateMessageRequest) (*Message, error) }
MessagingService is the service API for Messaging service.
type Meta ¶
type Meta struct { MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` UserId uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*Meta) Descriptor
deprecated
func (*Meta) GetContent ¶
func (*Meta) GetMessageId ¶
func (*Meta) ProtoMessage ¶
func (*Meta) ProtoMessage()
func (*Meta) ProtoReflect ¶
func (x *Meta) ProtoReflect() protoreflect.Message
type UnimplementedMessagingServer ¶
type UnimplementedMessagingServer struct { }
UnimplementedMessagingServer must be embedded to have forward compatible implementations.
func (UnimplementedMessagingServer) CreateMessage ¶
func (UnimplementedMessagingServer) GetMessage ¶
func (UnimplementedMessagingServer) GetMessage(context.Context, *GetMessageRequest) (*Message, error)
func (UnimplementedMessagingServer) GetUserMessage ¶
func (UnimplementedMessagingServer) GetUserMessage(context.Context, *GetMessageRequest) (*Message, error)
func (UnimplementedMessagingServer) UpdateMessage ¶
func (UnimplementedMessagingServer) UpdateMessage(context.Context, *UpdateMessageRequest) (*Message, error)
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.
type UpdateMessageRequest ¶
type UpdateMessageRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` Maybe *string `protobuf:"bytes,3,opt,name=maybe,proto3,oneof" json:"maybe,omitempty"` // contains filtered or unexported fields }
func (*UpdateMessageRequest) Descriptor
deprecated
func (*UpdateMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMessageRequest.ProtoReflect.Descriptor instead.
func (*UpdateMessageRequest) GetContent ¶
func (x *UpdateMessageRequest) GetContent() string
func (*UpdateMessageRequest) GetMaybe ¶
func (x *UpdateMessageRequest) GetMaybe() string
func (*UpdateMessageRequest) GetName ¶
func (x *UpdateMessageRequest) GetName() string
func (*UpdateMessageRequest) ProtoMessage ¶
func (*UpdateMessageRequest) ProtoMessage()
func (*UpdateMessageRequest) ProtoReflect ¶
func (x *UpdateMessageRequest) ProtoReflect() protoreflect.Message
func (*UpdateMessageRequest) Reset ¶
func (x *UpdateMessageRequest) Reset()
func (*UpdateMessageRequest) String ¶
func (x *UpdateMessageRequest) String() string