suite

package
v0.0.0-...-24e094a Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound   = errors.New("user not found")
	ErrEmailTaken = errors.New("email is taken")
)

Errors returned by the UserStore. Any impl of UserStore can utilize.

Functions

This section is empty.

Types

type User

type User struct {
	ID    int
	Email string
}

type UserStore

type UserStore interface {
	Create(*User) error
	ByID(id int) (*User, error)
	ByEmail(email string) (*User, error)
	Delete(*User) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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