Documentation
¶
Index ¶
- func NewChatService(sr registry.ServiceRegistry)
- type ChatService
- func (cs *ChatService) AddParticipants(ctx context.Context, req *chat.AddParticipantsRequest) error
- func (cs *ChatService) CreateGroupConversation(ctx context.Context, req *chat.NewGroupChatRequest) error
- func (cs *ChatService) CreatePrivateConversation(ctx context.Context, req *chat.NewChatRequest) error
- func (cs *ChatService) EditMessage(ctx context.Context, req *chat.EditMessageRequest) error
- func (cs *ChatService) FetchContversationInfo(ctx context.Context, id int64) (*chat.ConversationInfo, error)
- func (cs *ChatService) FetchConversation(ctx context.Context, id int64) ([]*chat.Message, error)
- func (cs *ChatService) FetchConversations(ctx context.Context) ([]*chat.ConversationSummary, error)
- func (cs *ChatService) RemoveGroupConversation(ctx context.Context, req *chat.LeaveGroupChatRequest) error
- func (cs *ChatService) RemoveMessage(ctx context.Context, req *chat.RemoveMessageRequest) error
- func (cs *ChatService) RemoveParticipants(ctx context.Context, req *chat.RemoveParticipantsRequest) error
- func (cs *ChatService) RemovePrivateConversation(ctx context.Context, id int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChatService ¶
func NewChatService(sr registry.ServiceRegistry)
Types ¶
type ChatService ¶
type ChatService struct {
chat.UnImplementedChatService
// contains filtered or unexported fields
}
func (*ChatService) AddParticipants ¶
func (cs *ChatService) AddParticipants(ctx context.Context, req *chat.AddParticipantsRequest) error
func (*ChatService) CreateGroupConversation ¶
func (cs *ChatService) CreateGroupConversation(ctx context.Context, req *chat.NewGroupChatRequest) error
func (*ChatService) CreatePrivateConversation ¶
func (cs *ChatService) CreatePrivateConversation(ctx context.Context, req *chat.NewChatRequest) error
func (*ChatService) EditMessage ¶
func (cs *ChatService) EditMessage(ctx context.Context, req *chat.EditMessageRequest) error
func (*ChatService) FetchContversationInfo ¶
func (cs *ChatService) FetchContversationInfo(ctx context.Context, id int64) (*chat.ConversationInfo, error)
func (*ChatService) FetchConversation ¶
func (*ChatService) FetchConversations ¶
func (cs *ChatService) FetchConversations(ctx context.Context) ([]*chat.ConversationSummary, error)
func (*ChatService) RemoveGroupConversation ¶
func (cs *ChatService) RemoveGroupConversation(ctx context.Context, req *chat.LeaveGroupChatRequest) error
func (*ChatService) RemoveMessage ¶
func (cs *ChatService) RemoveMessage(ctx context.Context, req *chat.RemoveMessageRequest) error
func (*ChatService) RemoveParticipants ¶
func (cs *ChatService) RemoveParticipants(ctx context.Context, req *chat.RemoveParticipantsRequest) error
func (*ChatService) RemovePrivateConversation ¶
func (cs *ChatService) RemovePrivateConversation(ctx context.Context, id int64) error
Click to show internal directories.
Click to hide internal directories.