Versions in this module Expand all Collapse all v1 v1.0.0 Aug 22, 2020 Changes in this version + var ErrType = reflect.TypeOf((*error)(nil)).Elem() + var GinContextType = reflect.TypeOf((*gin.Context)(nil)).Elem() + var HTTPRequestType = reflect.TypeOf((*http.Request)(nil)).Elem() + var HTTPResponseWriterType = reflect.TypeOf((*http.ResponseWriter)(nil)).Elem() + func AsError(t reflect.Type) bool + func BindSupport(arg ArgIn, argsIn []ArgIn, c *gin.Context) (reflect.Value, error) + func ContextKeyValuesSupport(arg ArgIn, argsIn []ArgIn, c *gin.Context) (reflect.Value, error) + func ConvertPtr(isPtr bool, v reflect.Value) reflect.Value + func DefaultSupport(v0 interface{}, vs []interface{}, g *gin.Context) (bool, error) + func DirectDealerSupport(v interface{}, vs []interface{}, c *gin.Context) (bool, error) + func ErrorSupport(v interface{}, vs []interface{}, c *gin.Context) (bool, error) + func GinContextSupport(arg ArgIn, argsIn []ArgIn, c *gin.Context) (reflect.Value, error) + func HTTPRequestSupport(arg ArgIn, argsIn []ArgIn, c *gin.Context) (reflect.Value, error) + func HTTPResponseWriterSupport(arg ArgIn, argsIn []ArgIn, c *gin.Context) (reflect.Value, error) + func ImplType(src, target reflect.Type) bool + func IsAdapterError(err error) bool + func IsError(t reflect.Type) bool + func NonPtrTypeOf(v interface{}) reflect.Type + func SinglePrimitiveValueSupport(arg ArgIn, argsIn []ArgIn, c *gin.Context) (reflect.Value, error) + type Adapter struct + InSupports []InSupport + OutSupports []OutSupport + func NewAdapter() *Adapter + func (a *Adapter) Adapt(relativePath string, argV interface{}) adapt.Handler + func (a *Adapter) AddInSupport(support InSupport) + func (a *Adapter) AddOutSupport(support OutSupport) + func (a *Adapter) After(after After) OptionFn + func (a *Adapter) Attr(k string, v interface{}) OptionFn + func (a *Adapter) AttrMap(attrs map[string]interface{}) OptionFn + func (a *Adapter) Before(before Before) OptionFn + func (a *Adapter) Default(relativePath string) adapt.Handler + func (a *Adapter) F(v interface{}, fns ...OptionFn) *anyF + type AdapterError struct + Context string + Err error + func (e *AdapterError) Error() string + type After interface + Do func(args []interface{}, results []interface{}) error + type AfterFn func(args []interface{}, results []interface{}) error + func (b AfterFn) Do(args []interface{}, results []interface{}) error + type ArgIn struct + Index int + Kind reflect.Kind + Ptr bool + Type reflect.Type + type Before interface + Do func(args []interface{}) error + type BeforeFn func(args []interface{}) error + func (b BeforeFn) Do(args []interface{}) error + type DirectDealer interface + Deal func(*gin.Context) + type DirectResponse struct + Code int + ContentType string + Error error + Header map[string]string + JSON interface{} + String string + func (d DirectResponse) Deal(c *gin.Context) + type DlFile struct + Content []byte + DiskFile string + Filename string + func (d DlFile) Deal(c *gin.Context) + type HTTPStatus int + func (h HTTPStatus) Deal(c *gin.Context) + type InSupport interface + Support func(argIn ArgIn, argsIn []ArgIn, c *gin.Context) (reflect.Value, error) + type InSupportFn func(argIn ArgIn, argsIn []ArgIn, c *gin.Context) (reflect.Value, error) + func (f InSupportFn) Support(argIn ArgIn, argsIn []ArgIn, c *gin.Context) (reflect.Value, error) + type Option struct + After After + Attrs map[string]interface{} + Before Before + type OptionFn func(*Option) + type OutSupport interface + Support func(v interface{}, vs []interface{}, c *gin.Context) (bool, error) + type OutSupportFn func(v interface{}, vs []interface{}, c *gin.Context) (bool, error) + func (o OutSupportFn) Support(v interface{}, vs []interface{}, c *gin.Context) (bool, error) + type Values []reflect.Value + func (v Values) Interface() []interface{}