Versions in this module Expand all Collapse all v14 v14.0.1 Nov 13, 2026 v14.0.0 Nov 12, 2026 Changes in this version + func ConvertPathParamValue[Param any](value any) (Param, bool) + func CreateBy[Context ContextType, Param ParamType, Request RequestType, ...](fn ParameterizedFunc[Context, Param, Request, Response], options ...Option) router.Controller + func Create[Context ContextType, Request RequestType, Response ResponseType](fn Func[Context, Request, Response], options ...Option) router.Controller + func DeleteBy[Context ContextType, Param ParamType, Request RequestType](fn ParameterizedFunc[Context, Param, Request, bool], options ...Option) router.Controller + func Delete[Context ContextType, RequestOrParam RequestType | ParamType](fn Func[Context, RequestOrParam, bool], options ...Option) router.Controller + func ExecuteRequestHandlers[Request RequestType](ctx *context.Context, handlers ...DirectRequestDecoder) error + func GetBy[Context ContextType, Param ParamType, Request RequestType, ...](fn ParameterizedFunc[Context, Param, Request, Response], options ...Option) router.Controller + func Get[Context ContextType, Param ParamType, Response ResponseType](fn Func[Context, Param, Response], options ...Option) router.Controller + func HandlerByColumns[Context ContextType, Param ParamType, Request RequestType, ...](fn func(Context, Param, Request, ...string) (*Response, bool, error), ...) context.Handler + func HandlerBy[Context ContextType, Param ParamType, Request RequestType, ...](fn ParameterizedFunc[Context, Param, Request, Response], options ...Option) context.Handler + func Handler[Context ContextType, Request RequestType, Response ResponseType](fn Func[Context, Request, Response], options ...Option) context.Handler + func IndexHandler[Context ContextType, Response ResponseType](fn ActionFunc[Context, Response], options ...Option) context.Handler + func Index[Context ContextType, Response ResponseType](fn ActionFunc[Context, Response], options ...Option) router.Controller + func JobHandler[Context ContextType, Request RequestType](fn JobFunc[Context, Request], options ...Option) context.Handler + func Job[Context ContextType, Request RequestType](fn JobFunc[Context, Request], options ...Option) router.Controller + func ListByHandler[Context ContextType, Param ParamType, Filter FilterType, Response ResponseType, ...](fn ParameterizedListFunc[Context, Param, Filter, Response, Total], ...) context.Handler + func ListBy[Context ContextType, Param ParamType, Filter FilterType, Response ResponseType, ...](fn ParameterizedListFunc[Context, Param, Filter, Response, Total], ...) router.Controller + func ListHandler[Context ContextType, Filter FilterType, Response ResponseType, Total CountType](fn ListFunc[Context, Filter, Response, Total], options ...Option) context.Handler + func ListMethodBy[Context ContextType, Param ParamType, Filter FilterType, Response ResponseType, ...](method string, ...) router.Controller + func ListMethod[Context ContextType, Filter FilterType, Response ResponseType, Total CountType](method string, fn ListFunc[Context, Filter, Response, Total], ...) router.Controller + func List[Context ContextType, Filter FilterType, Response ResponseType, Total CountType](fn ListFunc[Context, Filter, Response, Total], options ...Option) router.Controller + func MethodBy[Context ContextType, Param ParamType, Request RequestType, ...](method string, fn ParameterizedFunc[Context, Param, Request, Response], ...) router.Controller + func Method[Context ContextType, Request RequestType | ParamType, Response ResponseType](method string, fn Func[Context, Request, Response], options ...Option) router.Controller + func ResponseHandler[Response ResponseType](response Response, options ...Option) context.Handler + func SetParamDecoder[Param ParamType](ctx *context.Context, paramDecoder RequestDecoder[Param]) error + func SetParam[Param any](ctx *context.Context, request Param) + func SetRequestDecoder[Request any](ctx *context.Context, requestDecoder RequestDecoder[Request]) error + func SetRequest[Request any](ctx *context.Context, request Request) + func UpdateBy[Context ContextType, Param ParamType, Request RequestType](fn ParameterizedFunc[Context, Param, Request, bool], options ...Option) router.Controller + func UpdatePartial[Context ContextType, ID IDType, Request RequestType, Response ResponseType](fn func(Context, ID, Request, ...string) (*Response, bool, error), ...) router.Controller + func Update[Context ContextType, RequestOrParam RequestType | ParamType](fn Func[Context, RequestOrParam, bool], options ...Option) router.Controller + type ActionFunc func(ctx Context) (Response, error) + type ContextType interface + type CountType = context.CountType + type DirectRequestDecoder interface + DecodeRequest func(*context.Context) error + type FilterType any + type Func func(ctx Context, req Request) (Response, error) + type IDType = context.IDType + type JobFunc func(ctx Context, req Request) error + type ListFunc func(ctx Context, filter Filter, limit int, offset int) ([]Response, Total, error) + type Option = func(*Options) + var NoOption Option = func(opts *Options) { ... } + func WithMiddleware(handlers ...context.Handler) Option + func WithOptions(prepared *Options) Option + func WithPagination(paginationOptions ...context.PaginationOption) Option + func WithParamDecoderFunc[Param ParamType](fn RequestDecoderFunc[Param]) Option + func WithParamDecoder[Param any](paramDecoder RequestDecoder[Param]) Option + func WithPathDecoder[Param any](paramName string) Option + func WithPathParameter[Param any](paramName string) Option + func WithRequestDecoderFunc[Request RequestType](fn RequestDecoderFunc[Request]) Option + func WithRequestDecoder[Request any](requestDecoder RequestDecoder[Request]) Option + func WithRequestOptions(options ...RequestOption) Option + func WithStatusCode(statusCode int) Option + type Options struct + func NewOptions() *Options + func (opts *Options) Pagination() []context.PaginationOption + func (opts *Options) SetDefaultRequestOptions(options ...RequestOption) + func (opts *Options) WithMiddleware(handlers ...context.Handler) *Options + func (opts *Options) WithPagination(paginationOptions ...context.PaginationOption) *Options + func (opts *Options) WithParamDecoderFunc[Param ParamType](fn RequestDecoderFunc[Param]) *Options + func (opts *Options) WithParamDecoder[Param any](paramDecoder RequestDecoder[Param]) *Options + func (opts *Options) WithPathDecoder[Param any](paramName string) *Options + func (opts *Options) WithPathParameter[Param any](paramName string) *Options + func (opts *Options) WithRequestDecoderFunc[Request RequestType](fn RequestDecoderFunc[Request]) *Options + func (opts *Options) WithRequestDecoder[Request any](requestDecoder RequestDecoder[Request]) *Options + func (opts *Options) WithStatusCode(statusCode int) *Options + type ParamType interface + type ParameterizedFunc func(ctx Context, param Param, req Request) (Response, error) + type ParameterizedListFunc func(ctx Context, param Param, filter Filter, limit int, offset int) ([]Response, Total, error) + type PathParamDecoder struct + func NewPathParamDecoder[Param ParamType](paramName string) *PathParamDecoder[Param] + func (p *PathParamDecoder[Param]) DecodeRequest(ctx *context.Context, req *Param) error + func (p *PathParamDecoder[Param]) String() string + type Renderer = context.Renderer + type RequestDecoder interface + DecodeRequest func(ctx *context.Context, req *RequestOrParam) error + func DefaultParamDecoder[Param any]() RequestDecoder[Param] + func DefaultRequestDecoder[Request any]() RequestDecoder[Request] + func NewFormDecoder[RequestOrParam any]() RequestDecoder[RequestOrParam] + func NewHeaderDecoder[RequestOrParam any]() RequestDecoder[RequestOrParam] + func NewJSONDecoder[RequestOrParam any]() RequestDecoder[RequestOrParam] + func NewPathParamsDecoder[RequestOrParam any]() RequestDecoder[RequestOrParam] + func NewQueryDecoder[RequestOrParam any]() RequestDecoder[RequestOrParam] + func NewURLDecoder[RequestOrParam any]() RequestDecoder[RequestOrParam] + func NewUserDecoder() RequestDecoder[context.User] + func NewValueDecoder[RequestOrParam any](value RequestOrParam) RequestDecoder[RequestOrParam] + func NewZeroValueDecoder[RequestOrParam any]() RequestDecoder[RequestOrParam] + func Transformer[From any, To RequestType](fn func(From) (To, error)) RequestDecoder[To] + type RequestDecoderFunc func(ctx *context.Context, req *RequestOrParam) error + func (fn RequestDecoderFunc[Request]) DecodeRequest(ctx *context.Context, req *Request) error + type RequestOption = func(*context.Context) error + type RequestType any + type ResponseType any + type RouteParam struct + Name string + Type string + func ResolveRouteParam[T ParamType](relPath string) (*RouteParam[T], bool) + func (id *RouteParam[T]) Path() string + func (id *RouteParam[T]) Value(ctx *context.Context) T + type ViewBuilder struct + func View() *ViewBuilder + func (v *ViewBuilder) Data(data any) *ViewBuilder + func (v *ViewBuilder) Layout(layout string) *ViewBuilder + func (v *ViewBuilder) Name(name string) *ViewBuilder + func (v *ViewBuilder) Render(ctx *context.Context) error + func (v *ViewBuilder) StatusCode(code int) *ViewBuilder