Documentation ¶
Index ¶
- type ChatRPCServerV1
- func (s *ChatRPCServerV1) Create(ctx context.Context, req *desc.CreateRequest) (*desc.CreateResponse, error)
- func (s *ChatRPCServerV1) Delete(ctx context.Context, req *desc.DeleteRequest) (*emptypb.Empty, error)
- func (s *ChatRPCServerV1) SendMessage(ctx context.Context, req *desc.SendRequest) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatRPCServerV1 ¶
type ChatRPCServerV1 struct { desc.UnimplementedChat_V1Server // contains filtered or unexported fields }
ChatRPCServerV1 is a struct that implements Chat_V1Server interface
func NewChatRPCServerV1 ¶
func NewChatRPCServerV1(log *log.Logger) *ChatRPCServerV1
NewChatRPCServerV1 returns a new ChatRPCServerV1 instance
func (*ChatRPCServerV1) Create ¶
func (s *ChatRPCServerV1) Create(ctx context.Context, req *desc.CreateRequest) (*desc.CreateResponse, error)
Create is a method that implements the Create method of the Chat_V1Server interface
func (*ChatRPCServerV1) Delete ¶
func (s *ChatRPCServerV1) Delete(ctx context.Context, req *desc.DeleteRequest) (*emptypb.Empty, error)
Delete is a method that implements the Delete method of the Chat_V1Server interface
func (*ChatRPCServerV1) SendMessage ¶
func (s *ChatRPCServerV1) SendMessage(ctx context.Context, req *desc.SendRequest) (*emptypb.Empty, error)
SendMessage is a method that implements the SendMessage method of the Chat_V1Server interface
Click to show internal directories.
Click to hide internal directories.