Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRepository ¶
Types ¶
type LoginRequest ¶
type Service ¶
type Service interface { GenerateToken(ctx *fiber.Ctx, req LoginRequest) (UserToken, error) Login(ctx *fiber.Ctx, req LoginRequest) (User, error) GetSession(ctx *fiber.Ctx) (UserSession, bool) GetUserSessionWithToken(ctx *fiber.Ctx, token string) (UserSession, error) }
func NewService ¶
func NewService(repo *repository) Service
type User ¶
type UserSession ¶
Click to show internal directories.
Click to hide internal directories.