store

package
v0.0.0-...-e0287d8 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrRecordNotFound error tells us, that we can't fing target record in DB
	ErrRecordNotFound = errors.New("record not found")
)

Functions

This section is empty.

Types

type Store

type Store interface {
	User() UserRepository
}

Store interface

type UserRepository

type UserRepository interface {
	Create(*model.User) error
	Find(int) (*model.User, error)
	FindByEmail(string) (*model.User, error)
}

UserRepository interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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