repository

package
v0.0.0-...-440c409 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatRepository

type ChatRepository interface {
	CreateChat(ctx context.Context, title string) (int64, error)
	DeleteChat(ctx context.Context, id int64) error
	AddUsersToChat(ctx context.Context, chatID int64, usernames []string) error
	CreateMessage(ctx context.Context, chatID int64, sender string, text string) (*serviceModel.ChatMessage, error)
	GetChatMessages(ctx context.Context, chatID, page, pageSize int64) ([]*serviceModel.ChatMessage, error)
	GetChatMessagesCount(ctx context.Context, chatID int64) (uint64, error)
	GetChats(ctx context.Context, username string, page, pageSize int64) ([]*serviceModel.Chat, error)
	GetChatsCount(ctx context.Context, username string) (uint64, error)
	CheckUserChat(ctx context.Context, chatID int64, username string) (bool, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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