Documentation ¶
Index ¶
- Variables
- func AcceptLanguage() fiber.Handler
- func AuthorizationAPIKey() fiber.Handler
- func AuthorizationAdminRequired() fiber.Handler
- func AuthorizationRequired() fiber.Handler
- func Available() fiber.Handler
- func Logger() fiber.Handler
- func Maintenance() fiber.Handler
- func Notfound() fiber.Handler
- func ValidateAPIKey(c fiber.Ctx, key string) (bool, error)
- func WrapError() fiber.Handler
Constants ¶
This section is empty.
Variables ¶
View Source
var HandlerError = func(c fiber.Ctx, err error) error { var e *fiber.Error if errors.As(err, &e) { return render.Error(c, err) } return nil }
HandlerError handler error fiber
Functions ¶
func AuthorizationAPIKey ¶
func AuthorizationAPIKey() fiber.Handler
AuthorizationAPIKey authorization x-api-key
func AuthorizationAdminRequired ¶
func AuthorizationAdminRequired() fiber.Handler
AuthorizationAdminRequired authorization admin basicauth
func AuthorizationRequired ¶
func AuthorizationRequired() fiber.Handler
AuthorizationRequired authorization jwt and basicauth
func Maintenance ¶
func Maintenance() fiber.Handler
Maintenance maintenance กรณีปิดระบบ ดึง body html
func ValidateAPIKey ¶
ValidateAPIKey verify api-key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.