store

package
v0.0.0-...-a61ba57 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrRecordNotFound ...
	ErrRecordNotFound = errors.New("Record not found")
	// ErrNotValidToken ...
	ErrNotValidToken = errors.New("this token is not valid")
)

Functions

This section is empty.

Types

type Store

type Store interface {
	User() UserRepository
}

Store is a main store

type UserRepository

type UserRepository interface {
	Create(*model.User) error
	GetProfile(string) *model.Profile
	CreateProfile(*model.User) error
	// Find(int) (*model.User, error)
	FindByEmail(string) (*model.User, error)
	ClaimToken(*model.User, string)
	GetToken(string) (string, error)
	EditAbout(int, string) error
	EditPass(*model.User) error
}

UserRepository is the interface for db

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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