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 *go_nuntio.Contact) (*go_nuntio.Contact, error) Accept(ctx context.Context, id, userId string) error Get(ctx context.Context, id string) (*go_nuntio.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) ([]*go_nuntio.Contact, error) UpdateAllProfile(ctx context.Context, user *go_nuntio.User) error UpdateAllContact(ctx context.Context, user *go_nuntio.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.