Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MessageRepository ¶
type MessageRepository interface { FindMessageById(ctx context.Context, id string) (entities.Messages, error) AddMessage(ctx context.Context, body entities.Messages) (entities.Messages, error) GetAllMessages(ctx context.Context, limit, offset int64) ([]entities.Messages, error) DeleteMessageById(ctx context.Context, id string) (int64, error) }
func NewMessageRepository ¶
func NewMessageRepository(db *mongo.Database) MessageRepository
Click to show internal directories.
Click to hide internal directories.