Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateMessageParams ¶
type CreateParams ¶
type Repository ¶
type Repository interface { Create(params *CreateParams) (models.Chat, error) ListByUser(userId int) ([]models.Chat, error) Get(id int) (models.Chat, error) MessagesList(chatID int) ([]models.Message, error) CreateMessage(params *CreateMessageParams) (*models.Message, error) ChatExists(user1ID, user2ID int) (bool, error) GetByUsers(user1ID, user2ID int) (models.Chat, error) }
type Service ¶
type Service interface { Create(params *CreateParams) (models.Chat, error) ListByUser(userID int) ([]models.Chat, error) Get(id int) (models.Chat, error) MessagesList(chatID int) ([]models.Message, error) CreateMessage(params *CreateMessageParams) (*models.Message, error) ChatExists(user1ID, user2ID int) (bool, error) GetByUsers(user1ID, user2ID int) (models.Chat, error) }
Click to show internal directories.
Click to hide internal directories.