Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnauthorizedError ¶
func UnauthorizedError(message string) httpError
func ValidationError ¶
func ValidationError(message string) httpError
func WithFiberApp ¶ added in v0.0.2
func WithFiberApp(app *fiber.App) func(*App)
WithFiberApp sets the fiber app to use. This is useful to pre-configure the fiber app
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (App) Listen ¶
Listen serves HTTP requests from the given addr.
app.Listen(":8080") app.Listen("127.0.0.1:8080")
func (App) MustRegister ¶
MustRegister registers a handler to the app The handler must be a struct with Hanlder methods.
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
Group is a group of routes
type Handler ¶
type Handler interface { // Register registers the endpoint to the given router Register(router fiber.Router, validator validator.Validator) }
Handler is the interface that links the endpoint to the router
type Middleware ¶
Click to show internal directories.
Click to hide internal directories.