Documentation ¶
Index ¶
- func AllowCORS() fiber.Handler
- func Authorize(cup CurrentUserProvider, isRequired ...bool) fiber.Handler
- func ErrorHandler(logger logger.Logger) func(*fiber.Ctx, error) error
- func PanicLogger() fiber.Handler
- func RecoveryWithWriter(out io.Writer) fiber.Handler
- func RequireRoles(roles ...fmt.Stringer) fiber.Handler
- type CurrentUserContext
- type CurrentUserProvider
- type ServiceContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authorize ¶
func Authorize(cup CurrentUserProvider, isRequired ...bool) fiber.Handler
func PanicLogger ¶
func PanicLogger() fiber.Handler
func RecoveryWithWriter ¶
RecoveryWithWriter returns a middleware for a given writer that recovers from any panics and writes a 500 if there was one.
func RequireRoles ¶
Types ¶
type CurrentUserProvider ¶
Click to show internal directories.
Click to hide internal directories.