Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContactRepository ¶
type ContactRepository interface { Get(ctx context.Context) ([]*model.Contact, error) GetContactByEmail(email string, ctx context.Context) (*model.Contact, error) Delete(id int, ctx context.Context) (int64, error) }
func NewContactRepository ¶
func NewContactRepository(config *utils.Configuration, client *mongo.Client) ContactRepository
Click to show internal directories.
Click to hide internal directories.