Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidPassword = errors.New("Invalid password provided")
)
Functions ¶
This section is empty.
Types ¶
type LoginInput ¶
type LoginInput struct { Email string `json:"email" validate:"required,email"` Password string `json:"password" validate:"required"` }
func (LoginInput) Validate ¶
func (i LoginInput) Validate() []*validator.ValidationError
type LoginService ¶
type LoginService interface {
Execute(input LoginInput) (*token.AccessToken, *token.RefreshToken, error)
}
func NewLoginService ¶
func NewLoginService(db database.Database) LoginService
type LogoutService ¶
func NewLogoutService ¶
func NewLogoutService(cache cache.Cache) LogoutService
type MeService ¶
func NewMeService ¶
type TokenService ¶
type TokenService interface {
Execute(refreshToken string) (*token.AccessToken, error)
}
func NewTokenService ¶
func NewTokenService(db database.Database, cache cache.Cache) TokenService
Click to show internal directories.
Click to hide internal directories.