Documentation ¶
Index ¶
- func NewAuthHandler(route fiber.Router, as domain.AuthService)
- func NewDepartmentHandler(route fiber.Router, ps domain.DepartmentService)
- func NewErrorHandler(possibleErrors map[string]map[error][]any) func(*fiber.Ctx, error) error
- func NewMiscHandler(miscRoute fiber.Router)
- func NewProfileHandler(route fiber.Router, ps domain.ProfileService)
- func NewUserHandler(route fiber.Router, us domain.UserService)
- type AuthHandler
- type DepartmentHandler
- type MiscHandler
- type ProfileHandler
- type UserHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthHandler ¶
func NewAuthHandler(route fiber.Router, as domain.AuthService)
NewAuthHandler Creates a new authenticator handler.
func NewDepartmentHandler ¶
func NewDepartmentHandler(route fiber.Router, ps domain.DepartmentService)
NewDepartmentHandler Creates a new department handler.
func NewErrorHandler ¶ added in v0.0.2
NewErrorHandler Generic function that receives a map with the http methods, errors, status code and the message for each error.
func NewMiscHandler ¶
func NewMiscHandler(miscRoute fiber.Router)
func NewProfileHandler ¶
func NewProfileHandler(route fiber.Router, ps domain.ProfileService)
NewProfileHandler Creates a new profile handler.
func NewUserHandler ¶
func NewUserHandler(route fiber.Router, us domain.UserService)
NewUserHandler Creates a new user handler.
Types ¶
type AuthHandler ¶
type AuthHandler struct {
// contains filtered or unexported fields
}
type DepartmentHandler ¶
type DepartmentHandler struct {
// contains filtered or unexported fields
}
type MiscHandler ¶
type MiscHandler struct{}
type ProfileHandler ¶
type ProfileHandler struct {
// contains filtered or unexported fields
}
type UserHandler ¶
type UserHandler struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.