chat

package
v0.0.0-...-e91a5b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 (cs *ChatService) FetchConversation(ctx context.Context, id int64) ([]*chat.Message, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL