Versions in this module Expand all Collapse all v0 v0.2.0 Aug 30, 2026 Changes in this version + var ErrNotFound = errors.New("not found") + func BadRequest(msg string) error + func BindFail(status int) (int, int) + func CheckHandler(fn any) error + func CheckTarget(t reflect.Type, v reflect.Value) any + func Conflict(msg string) error + func DefaultErrorMapper(err error) (httpStatus, bizCode int) + func Forbidden(msg string) error + func Framework(ctx context.Context) any + func FuncName(fn any) string + func HasParamBinder(t reflect.Type) bool + func Internal(msg string) error + func IsBodyMethod(method string) bool + func NewStatusError(status int, msg string) error + func NewValue(t reflect.Type) reflect.Value + func NotFound(msg string) error + func RegisterParamBinder[T any](fn func(src []string) (T, error)) + func ResolveError(mapError func(err error) (httpStatus, bizCode int), err error) (int, int, string) + func ResolveErrorStatus(err error) (status, code int, msg string, ok bool) + func SetRaw(f reflect.Value, raw, name string) error + func SetRawBasic(f reflect.Value, raw, name string) error + func SetSliceValue(f reflect.Value, vals []string, name string) error + func TagValue(ft reflect.StructField, key string) (string, bool) + func TransformIn(ctx context.Context, v any) error + func TransformOut(ctx context.Context, v reflect.Value) (reflect.Value, error) + func Unauthorized(msg string) error + func WithCause(statusErr error, cause error) error + func WithFramework(ctx context.Context, fw any) context.Context + type AdaptHandler = func(context.Context, Q, B) (R, error) + type Empty any + type FieldMeta struct + Children []FieldMeta + Def string + Form string + Header string + Index int + Kind reflect.Kind + Path string + Query string + func ParseFields(t reflect.Type) []FieldMeta + type FileStream struct + ContentType string + Name string + Reader io.Reader + Size int64 + type Group struct + Children []*Group + Description string + Middlewares []any + Prefix string + Routes []Route + Tags []string + type InTransformer interface + InTransform func(context.Context) error + type NoReq any + type OutTransformer interface + OutTransform func(context.Context) error + type ParamBinder func(src []string) (any, error) + func BinderFor(t reflect.Type) (ParamBinder, bool) + type Response struct + Cookies []*http.Cookie + Data R + Headers map[string]string + Status int + func (r Response[R]) ResponseCookies() []*http.Cookie + func (r Response[R]) ResponseData() any + func (r Response[R]) ResponseHeaders() map[string]string + func (r Response[R]) ResponseStatus() int + type ResponseWrapper interface + ResponseCookies func() []*http.Cookie + ResponseData func() any + ResponseHeaders func() map[string]string + ResponseStatus func() int + type Route struct + DefaultStatusCode int + Deprecated bool + Description string + Envelope response.Envelope + Handler any + Method string + Path string + Summary string + Tags []string + func New[Q, B, R any](m RouteMeta[Q, B, R]) Route + type RouteMeta struct + DefaultStatusCode int + Deprecated bool + Description string + Envelope response.Envelope + Handler AdaptHandler[Q, B, R] + Method string + Path string + Summary string + Tags []string + type Server interface + Mount func(g any, groups []*Group) + type StatusCoder interface + StatusCode func() int + type StatusError struct + Code int + Err error + Msg string + Status int + func (e *StatusError) Error() string + func (e *StatusError) StatusCode() int + func (e *StatusError) Unwrap() error Other modules containing this package github.com/EdSan845D/oapi-hinge/contract