Versions in this module Expand all Collapse all v0 v0.0.2 Feb 23, 2021 Changes in this version type RouterGroup + func (g *RouterGroup) Handle(path, method string, handler *OptizzHandler, middlewares ...fiber.Handler) *RouterGroup v0.0.1 Feb 23, 2021 Changes in this version + const DefaultMaxBodyBytes + const DefaultTag + const EnumTag + const ExplodeTag + const HeaderTag + const PathTag + const QueryTag + const RequiredTag + const ValidationTag + var Binary []byte + var Boolean bool + var Byte []byte + var DateTime time.Time + var Double float64 + var Float float32 + var Integer int32 + var Long int64 + var String string + func DefaultBindHeaderHook(c *fiber.Ctx, v reflect.Value) error + func DefaultBindPathHook(c *fiber.Ctx, v reflect.Value) error + func DefaultBindQueryHook(c *fiber.Ctx, v reflect.Value) error + func DefaultBindingHook(c *fiber.Ctx, v reflect.Value) error + func DefaultErrorHook(c *fiber.Ctx, e error) (int, interface{}) + func DefaultExecHook(c *fiber.Ctx, h fiber.Handler, fname string) error + func DefaultRenderHook(c *fiber.Ctx, statusCode int, payload interface{}) + func Deprecated(deprecated bool) func(*openapi.OperationInfo) + func Description(desc string) func(*openapi.OperationInfo) + func Descriptionf(format string, a ...interface{}) func(*openapi.OperationInfo) + func GetRoutes() map[string]*Route + func Header(name, desc string, model interface{}) func(*openapi.OperationInfo) + func ID(id string) func(*openapi.OperationInfo) + func InputModel(model interface{}) func(*openapi.OperationInfo) + func MediaType() string + func OperationFromContext(c *fiber.Ctx) (*openapi.Operation, error) + func ParseTagKey(tag string) (string, error) + func RegisterValidation(tagName string, validationFunc validator.Func) error + func Response(statusCode, desc string, model interface{}, headers []*openapi.ResponseHeader, ...) func(*openapi.OperationInfo) + func ResponseWithExamples(statusCode, desc string, model interface{}, headers []*openapi.ResponseHeader, ...) func(*openapi.OperationInfo) + func SetBindHeaderHook(bh BindHook) + func SetBindHook(bh BindHook) + func SetBindPathHook(bh BindHook) + func SetBindQueryHook(bh BindHook) + func SetErrorHook(eh ErrorHook) + func SetExecHook(eh ExecHook) + func SetRenderHook(rh RenderHook, mt string) + func StatusDescription(desc string) func(*openapi.OperationInfo) + func Summary(summary string) func(*openapi.OperationInfo) + func Summaryf(format string, a ...interface{}) func(*openapi.OperationInfo) + type BindError struct + func (be BindError) Error() string + func (be BindError) ValidationErrors() validator.ValidationErrors + type BindHook func(*fiber.Ctx, reflect.Value) error + func GetBindHeaderHook() BindHook + func GetBindHook() BindHook + func GetBindPathHook() BindHook + func GetBindQueryHook() BindHook + type ErrorHook func(*fiber.Ctx, error) (int, interface{}) + func GetErrorHook() ErrorHook + type ExecHook func(*fiber.Ctx, fiber.Handler, string) error + func GetExecHook() ExecHook + type OperationOption func(*openapi.OperationInfo) + type Optizz struct + func New() *Optizz + func NewFromApp(app *fiber.App) *Optizz + func (f *Optizz) App() *fiber.App + func (f *Optizz) Errors() []error + func (f *Optizz) Generator() *openapi.Generator + func (f *Optizz) OpenAPI(info *openapi.Info, ct string) fiber.Handler + type OptizzHandler struct + Handler fiber.Handler + OperationInfo *openapi.OperationInfo + RouteInfo *Route + func Handler(fiberHandler interface{}, status int, infos ...OperationOption) *OptizzHandler + type RenderHook func(*fiber.Ctx, int, interface{}) + func GetRenderHook() RenderHook + type Route struct + func GetRouteByHandler(h fiber.Handler, ctx *fiber.Ctx) (*Route, error) + func (r *Route) GetDefaultStatusCode() int + func (r *Route) GetDeprecated() bool + func (r *Route) GetDescription() string + func (r *Route) GetHandler() reflect.Value + func (r *Route) GetPath() string + func (r *Route) GetSummary() string + func (r *Route) GetTags() []string + func (r *Route) GetVerb() string + func (r *Route) HandlerName() string + func (r *Route) HandlerNameWithPackage() string + func (r *Route) InputType() reflect.Type + func (r *Route) OutputType() reflect.Type + type RouterGroup struct + Description string + Name string + func (g *RouterGroup) Delete(path string, handler *OptizzHandler, middlewares ...fiber.Handler) *RouterGroup + func (g *RouterGroup) Get(path string, handler *OptizzHandler, middlewares ...fiber.Handler) *RouterGroup + func (g *RouterGroup) Group(path, name, description string, handlers ...fiber.Handler) *RouterGroup + func (g *RouterGroup) Handle2(path, method string, handler *OptizzHandler, middlewares ...fiber.Handler) *RouterGroup + func (g *RouterGroup) Head(path string, handler *OptizzHandler, middlewares ...fiber.Handler) *RouterGroup + func (g *RouterGroup) Options(path string, handler *OptizzHandler, middlewares ...fiber.Handler) *RouterGroup + func (g *RouterGroup) Patch(path string, handler *OptizzHandler, middlewares ...fiber.Handler) *RouterGroup + func (g *RouterGroup) Post(path string, handler *OptizzHandler, middlewares ...fiber.Handler) *RouterGroup + func (g *RouterGroup) Put(path string, handler *OptizzHandler, middlewares ...fiber.Handler) *RouterGroup + func (g *RouterGroup) Trace(path string, handler *OptizzHandler, middlewares ...fiber.Handler) *RouterGroup + func (g *RouterGroup) Use(handlers ...fiber.Handler)