Documentation
¶
Index ¶
- Constants
- func Assemble(ctx *fiber.Ctx, field *reflect.StructField) (values []reflect.Value, err error)
- func RegisterController(bean ControllerBean)
- func RegisterGlobalMiddleware(middleware GlobalMiddleware)
- func RunServer(ctx context.Context) error
- func ShutdownServer(context context.Context) error
- func Validate(items []reflect.Value) (err error)
- type Config
- type ControllerBean
- type GlobalMiddleware
- type Header
- type PathParam
- type QueryParam
- type RequestBody
- type SelfValidator
- type Valid
- type ValidError
Constants ¶
View Source
const ( API = "api" MIDDLEWARE = "middleware" )
Variables ¶
This section is empty.
Functions ¶
func Assemble ¶
func Assemble(ctx *fiber.Ctx, field *reflect.StructField) (values []reflect.Value, err error)
func RegisterController ¶
func RegisterController(bean ControllerBean)
func RegisterGlobalMiddleware ¶
func RegisterGlobalMiddleware(middleware GlobalMiddleware)
func ShutdownServer ¶
Types ¶
type ControllerBean ¶
type ControllerBean interface {
GetControllerPath() string
}
type GlobalMiddleware ¶
type QueryParam ¶
type QueryParam struct{}
type RequestBody ¶
type RequestBody struct{}
type SelfValidator ¶
type SelfValidator interface {
SelfValidate() error
}
type ValidError ¶
type ValidError struct {
// contains filtered or unexported fields
}
func NewValidError ¶
func NewValidError(msg string) *ValidError
func (*ValidError) Error ¶
func (e *ValidError) Error() string
Click to show internal directories.
Click to hide internal directories.