Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRecordNotFound = errors.New("record not found") ErrEmailAlreadyExists = errors.New("email already exists") )
Functions ¶
This section is empty.
Types ¶
type GoteRepository ¶
type GoteRepository interface { Create(gote *model.Gote) error FindByID(int, int) (*model.Gote, error) FindByUserID(int) ([]*model.Gote, error) Update(gote *model.Gote) error DeleteByID(userID int, goteID int) error }
GoteRepository interface
type Store ¶
type Store interface { User() UserRepository Gote() GoteRepository }
Store interface of data models
Click to show internal directories.
Click to hide internal directories.