Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
func NewController(a AuthService) router.HandlerExporter
NewController constructs a new authentication controller
Types ¶
type AuthService ¶
type AuthService interface {
Authenticate(dtos.AuthenticationRequest) error
}
AuthService is a service that performs user authentication
type ErrInvalidUserOrPasswd ¶
type ErrInvalidUserOrPasswd struct{}
ErrInvalidUserOrPasswd indicates authentication failed due to invalid credentials
func (ErrInvalidUserOrPasswd) Error ¶
func (ErrInvalidUserOrPasswd) Error() string
Click to show internal directories.
Click to hide internal directories.