repository

package
v0.0.0-...-9ef7b20 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const UserCollection = "users"

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepository

type UserRepository interface {
	Save(user *models.User) error
	GetById(id string) (user *models.User, err error)
	GetByEmail(email string) (user *models.User, err error)
	GetAll() (user []*models.User, err error)
	Update(user *models.User) error
	DeleteById(id string) error
}

UserRepository is the interface of the authentication backend.

func NewUserRepository

func NewUserRepository(conn db.Connection) UserRepository

NewUserRepository creates a new UserRepository instance.

Jump to

Keyboard shortcuts

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