Documentation ¶
Index ¶
- Variables
- func BaseHandler[I, O any](r Router, method string, path string, op RouterDoc, ...)
- func Delete[I, O any](r Router, path string, op RouterDoc, fn func(context.Context, *I) (*O, error))
- func Get[I, O any](r Router, path string, op RouterDoc, fn func(context.Context, *I) (*O, error))
- func InitHumaClient(router chi.Router)
- func Patch[I, O any](r Router, path string, op RouterDoc, fn func(context.Context, *I) (*O, error))
- func Post[I, O any](r Router, path string, op RouterDoc, fn func(context.Context, *I) (*O, error))
- type CustomHumaError
- type Router
- type RouterDoc
Constants ¶
This section is empty.
Variables ¶
View Source
var Api huma.API
Functions ¶
func BaseHandler ¶
func InitHumaClient ¶
Types ¶
type CustomHumaError ¶
type CustomHumaError struct { Status int Message string `json:"message"` Details []string `json:"details,omitempty"` }
func (*CustomHumaError) Error ¶
func (e *CustomHumaError) Error() string
func (*CustomHumaError) GetStatus ¶
func (e *CustomHumaError) GetStatus() int
Click to show internal directories.
Click to hide internal directories.