collection

package
v4.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 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) Delete

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

func (*User) Save

func (mongoDB *User) Save(user *user.User) 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