collection

package
v4.7.3 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenUser

func OpenUser(session *mongodb.MongoDB, name string, hashing hashing.Hashing) (repository.Repository, error)

Types

type User

type User struct {
	*mongo.Collection
	hashing.Hashing
}

func (*User) Create added in v4.6.3

func (mongoDB *User) Create(user *user.User) error

func (*User) Delete

func (mongoDB *User) Delete(id *user.Id) error

func (*User) Search

func (mongoDB *User) Search(criteria *repository.SearchCriteria) (*user.User, error)

func (*User) Update

func (mongoDB *User) Update(user *user.User) error

func (*User) Verify

func (mongoDB *User) Verify(id *user.Id) error

Jump to

Keyboard shortcuts

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