Documentation ¶
Overview ¶
Package chat provides real-time chats linked to any topics for end users.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DAO ¶
type DAO interface { dao.DAO PutRoom(ctx context.Context, room *chat.ChatRoom) (*chat.ChatRoom, error) DeleteRoom(ctx context.Context, room *chat.ChatRoom) (bool, error) ListRooms(ctx context.Context, request *chat.ListRoomsRequest) ([]*chat.ChatRoom, error) RoomByUuid(ctx context.Context, byType chat.RoomType, roomUUID string) (*chat.ChatRoom, error) ListMessages(ctx context.Context, request *chat.ListMessagesRequest) ([]*chat.ChatMessage, error) PostMessage(ctx context.Context, request *chat.ChatMessage) (*chat.ChatMessage, error) DeleteMessage(ctx context.Context, message *chat.ChatMessage) error CountMessages(ctx context.Context, room *chat.ChatRoom) (count int, e error) }
Click to show internal directories.
Click to hide internal directories.