Documentation ¶
Index ¶
- type Chat
- func (c *Chat) Create(ctx context.Context, req *pb.CreateRequest, rsp *pb.CreateResponse) error
- func (c *Chat) Delete(ctx context.Context, req *pb.DeleteRequest, rsp *pb.DeleteResponse) error
- func (c *Chat) History(ctx context.Context, req *pb.HistoryRequest, rsp *pb.HistoryResponse) error
- func (c *Chat) Invite(ctx context.Context, req *pb.InviteRequest, rsp *pb.InviteResponse) error
- func (c *Chat) Join(ctx context.Context, req *pb.JoinRequest, stream pb.Chat_JoinStream) error
- func (c *Chat) Kick(ctx context.Context, req *pb.KickRequest, rsp *pb.KickResponse) error
- func (c *Chat) Leave(ctx context.Context, req *pb.LeaveRequest, rsp *pb.LeaveResponse) error
- func (c *Chat) List(ctx context.Context, req *pb.ListRequest, rsp *pb.ListResponse) error
- func (c *Chat) Send(ctx context.Context, req *pb.SendRequest, rsp *pb.SendResponse) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chat ¶
type Chat struct{}
func (*Chat) Create ¶
func (c *Chat) Create(ctx context.Context, req *pb.CreateRequest, rsp *pb.CreateResponse) error
func (*Chat) Delete ¶
func (c *Chat) Delete(ctx context.Context, req *pb.DeleteRequest, rsp *pb.DeleteResponse) error
func (*Chat) History ¶
func (c *Chat) History(ctx context.Context, req *pb.HistoryRequest, rsp *pb.HistoryResponse) error
History returns the historical messages in a chat
func (*Chat) Invite ¶
func (c *Chat) Invite(ctx context.Context, req *pb.InviteRequest, rsp *pb.InviteResponse) error
func (*Chat) Join ¶
func (c *Chat) Join(ctx context.Context, req *pb.JoinRequest, stream pb.Chat_JoinStream) error
func (*Chat) Kick ¶
func (c *Chat) Kick(ctx context.Context, req *pb.KickRequest, rsp *pb.KickResponse) error
func (*Chat) Leave ¶
func (c *Chat) Leave(ctx context.Context, req *pb.LeaveRequest, rsp *pb.LeaveResponse) error
func (*Chat) List ¶
func (c *Chat) List(ctx context.Context, req *pb.ListRequest, rsp *pb.ListResponse) error
func (*Chat) Send ¶
func (c *Chat) Send(ctx context.Context, req *pb.SendRequest, rsp *pb.SendResponse) error
Send a single message to the chat, designed for ease of use via the API / CLI
Click to show internal directories.
Click to hide internal directories.