Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContactRepository ¶
type ContactRepository interface { Create(ctx context.Context, contact *models.Contact) (*models.Contact, error) Accept(ctx context.Context, id, userId string) error Get(ctx context.Context, id string) (*models.Contact, error) Delete(ctx context.Context, id, userId string) error DeleteByUser(ctx context.Context, userId string) error List(ctx context.Context, userId string, from, to int32, accepted *bool) ([]*models.Contact, error) UpdateAllProfile(ctx context.Context, user *models.User) error UpdateAllContact(ctx context.Context, user *models.User) error BuildIndexes(ctx context.Context) error }
func New ¶
func New(collection *mongo.Collection) ContactRepository
Click to show internal directories.
Click to hide internal directories.