Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionService ¶
type SessionService interface { GetAllByUser(u *model.User) ([]*model.Session, error) GetByID(id uint) (*model.Session, error) GetByUuid(uuid string) (*model.Session, error) Store(*model.Session) (*model.Session, error) Delete(id uint) (bool, error) }
func NewSessionService ¶
func NewSessionService(repo repository.SessionRepository) SessionService
Initiation method
type UserService ¶
type UserService interface { //Fetch(cursor string, num uint) ([]*model.User, string, error) GetAll() ([]*model.User, error) GetByID(id uint) (*model.User, error) GetByEmail(email string) (*model.User, error) Update(u *model.User) (*model.User, error) Store(*model.User) (*model.User, error) Delete(id uint) (bool, error) }
func NewUserService ¶
func NewUserService(repo repository.UserRepository) UserService
Initiation method
Click to show internal directories.
Click to hide internal directories.