suite

package
v0.0.0-...-3024301 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: MIT Imports: 1 Imported by: 6

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

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