Versions in this module Expand all Collapse all v0 v0.1.0 May 27, 2022 Changes in this version + const JsonEncoding + func LoadRawJson(loadRawJson func() ([]byte, error)) http.HandlerFunc + func RawJson(data []byte) http.HandlerFunc + func RegisterDecoder(contentType string, dec T, aliases ...string) + type API struct + MethodNotAllowed http.Handler + NotFound http.Handler + PanicHandler func(http.ResponseWriter, *http.Request, interface{}) + func New(c *Config) *API + func (r *API) Delete(path string, handle http.Handler) + func (r *API) Get(path string, handle http.Handler) + func (r *API) Group(path string) Router + func (r *API) Handle(method, path string, handle http.Handler) + func (r *API) HandleFunc(method, path string, handle http.HandlerFunc) + func (r *API) Patch(path string, handle http.Handler) + func (r *API) Post(path string, handle http.Handler) + func (r *API) Put(path string, handle http.Handler) + func (r *API) Router() http.Handler + func (r *API) Use(mw ...Middleware) + type Config struct + ProblemLogFunc func(ctx context.Context, p *problem.Problem) + RouteLogFunc func(ctx context.Context, route string, params map[string]string) + func GetDefaultConfig() *Config + type ContextUnmarshaler = func(ctx context.Context, data []byte, v interface{}) error + type DecoderConstraint interface + type DecoderFactory = func(io.Reader) interface + type Empty struct + type Handle func(ctx context.Context, request T) (O, error) + type Handler interface + func E(err error) Handler + func H(handle Handle[T, O]) Handler + type Headerer interface + Header func() http.Header + type Middleware func(http.Handler) http.Handler + type Problemer interface + Problem func() problem.Problem + type RequestParser = func(r *http.Request, v interface{}) error + type Router interface + Delete func(path string, handle http.Handler) + Get func(path string, handle http.Handler) + Group func(path string) Router + Handle func(method, path string, handle http.Handler) + HandleFunc func(method, path string, handle http.HandlerFunc) + Post func(path string, handle http.Handler) + Put func(path string, handle http.Handler) + Use func(mw ...Middleware) + type StatusCoder interface + StatusCode func() int + type Unmarshaler = func(data []byte, v interface{}) error