contact_repository

package
v0.1.29 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: LGPL-2.1 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 *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

Jump to

Keyboard shortcuts

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