handler

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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

func NewErrorHandler(possibleErrors map[string]map[error][]any) func(*fiber.Ctx, error) error

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL