repository

package
v0.0.0-...-60e5973 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUserNotFound      = errors.New("repository: the user was not found")
	ErrUserAlreadyExists = errors.New("repository: user already exists")
	ErrUserHasNoUpdates  = errors.New("repository: failed to update user")
)

Functions

This section is empty.

Types

type UserRepository

type UserRepository interface {
	GetByEmail(string) (*model.User, error)
	Add(*model.User) error
	Update(*model.User) error
}

UserRepository defines the interface for the user repository.

Jump to

Keyboard shortcuts

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