collection

package
v4.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(session *mongodb.Database, name string) (repository.Repository, error)

Types

type Collection

type Collection struct {
	*mongo.Collection
}

func (*Collection) Create

func (c *Collection) Create(user *user.User) error

func (*Collection) Delete

func (c *Collection) Delete(id *user.ID) error

func (*Collection) Search

func (c *Collection) Search(criteria *repository.Criteria) (*user.User, error)

func (*Collection) Update

func (c *Collection) Update(user *user.User) error

Jump to

Keyboard shortcuts

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