Versions in this module Expand all Collapse all v0 v0.1.4 Jul 3, 2026 v0.1.3 Apr 21, 2026 v0.1.2 Apr 19, 2026 v0.1.1 Apr 19, 2026 v0.1.0 Apr 19, 2026 Changes in this version + func AutoSummary(method, path string) string + func AutoTags(path string) []string + func HandleAction[T any](h ActionFunc[T], opts ...HandleOption) gin.HandlerFunc + func HandleList[T any](lister QueryLister[T], opts ...HandleOption) gin.HandlerFunc + func HandleRequest[T any, R any](h HandlerFunc[T, R], opts ...HandleOption) gin.HandlerFunc + func IndexRoutes(engine *gin.Engine) + func WriteResponse(c *gin.Context, code int, data any, err error) + type ActionFunc func(ctx context.Context, req *T) error + func ValidatedAction[T any](h ActionFunc[T], validators ...validate.Func[T]) ActionFunc[T] + type Binder interface + Bind func(c *gin.Context, target any) error + Tag func() string + type ErrorResponse struct + Code int + Message string + Metadata map[string]any + Reason string + RequestID string + type HandleOption func(*handleConfig) + func WithBinders(binders ...Binder) HandleOption + func WithMaxBodySize(n int64) HandleOption + func WithPublic() HandleOption + func WithSuccessCode(code int) HandleOption + func WithSummary(s string) HandleOption + func WithTags(tags ...string) HandleOption + type HandlerFunc func(ctx context.Context, req *T) (R, error) + func Validated[T any, R any](h HandlerFunc[T, R], validators ...validate.Func[T]) HandlerFunc[T, R] + type HandlerMeta struct + Code int + IsList bool + Public bool + ReqType reflect.Type + RespType reflect.Type + Summary string + Tags []string + func LookupMeta(fn gin.HandlerFunc) *HandlerMeta + func LookupRoute(method, path string) *HandlerMeta + type ListResult struct + HasMore bool + Items []T + Page int + Size int + Total int64 + type QueryLister interface + ListFromQuery func(ctx context.Context, query url.Values) ([]T, int64, error) Other modules containing this package github.com/zynthara/chok/v2