Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageModel ¶
type MessageModel interface { FindMessageByID(ctx context.Context, id string) (entities.MessageDetails, error) AddMessage(ctx context.Context, body entities.MessagesCreateInput) (entities.Messages, error) GetAllMessages(ctx context.Context, limit, offset int64) ([]entities.Messages, error) DeleteMessage(ctx context.Context, id string) (int64, error) }
func NewMessageModel ¶
func NewMessageModel(messageRepository mongo.MessageRepository) MessageModel
Click to show internal directories.
Click to hide internal directories.