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 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
Click to show internal directories.
Click to hide internal directories.