contact_repository

package
v0.1.34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL