Versions in this module Expand all Collapse all v0 v0.0.2 Jul 3, 2020 Changes in this version + type DataContextor interface + Get func(key string) (value interface{}, exists bool) + GetBool func(key string) (b bool) + GetDuration func(key string) (d zone.Duration) + GetFloat64 func(key string) (f64 float64) + GetInt func(key string) (i int) + GetInt64 func(key string) (i64 int64) + GetString func(key string) (s string) + GetStringMap func(key string) (sm map[string]interface{}) + GetStringMapString func(key string) (sms map[string]string) + GetStringMapStringSlice func(key string) (smss map[string][]string) + GetStringSlice func(key string) (ss []string) + GetTime func(key string) (t zone.Time) + MustGet func(key string) interface{} + Set func(key string, value interface{}) + type HttpContextor interface + Accepted func() []string + Deadline func() (deadline zone.Time, ok bool) + Done func() <-chan struct{} + Err func() error + Errors func() []*gin.Error + Keys func() map[string]interface{} + Params func() gin.Params + Request func() *http.Request + SetRequest func(r *http.Request) + SetWriter func(w gin.ResponseWriter) + Value func(key interface{}) interface{} + Writer func() gin.ResponseWriter + type LifeCycleContextor interface + Abort func() + AbortWithError func(code int, err error) *gin.Error + AbortWithStatus func(code int) + AbortWithStatusJSON func(code int, jsonObj interface{}) + Copy func() *gin.Context + Error func(err error) *gin.Error + Handler func() gin.HandlerFunc + HandlerName func() string + HandlerNames func() []string + IsAborted func() bool + Next func() + type RequestBindingContextor interface + Bind func(obj interface{}) error + BindJSON func(obj interface{}) error + BindQuery func(obj interface{}) error + BindUri func(obj interface{}) error + BindXML func(obj interface{}) error + BindYAML func(obj interface{}) error + MustBindWith func(obj interface{}, b binding.Binding) error + ShouldBind func(obj interface{}) error + ShouldBindBodyWith func(obj interface{}, bb binding.BindingBody) (err error) + ShouldBindJSON func(obj interface{}) error + ShouldBindQuery func(obj interface{}) error + ShouldBindUri func(obj interface{}) error + ShouldBindWith func(obj interface{}, b binding.Binding) error + ShouldBindXML func(obj interface{}) error + ShouldBindYAML func(obj interface{}) error + type RequestFileContextor interface + FormFile func(name string) (*multipart.FileHeader, error) + MultipartForm func() (*multipart.Form, error) + SaveUploadedFile func(file *multipart.FileHeader, dst string) error + type RequestHeaderContextor interface + ClientIP func() string + ContentType func() string + GetHeader func(key string) string + Header func(key, value string) + IsWebsocket func() bool + Status func(code int) + type RequestParamContextor interface + DefaultPostForm func(key, defaultValue string) string + DefaultQuery func(key, defaultValue string) string + GetPostForm func(key string) (string, bool) + GetPostFormArray func(key string) ([]string, bool) + GetPostFormMap func(key string) (map[string]string, bool) + GetQuery func(key string) (string, bool) + GetQueryArray func(key string) ([]string, bool) + GetQueryMap func(key string) (map[string]string, bool) + Param func(key string) string + PostForm func(key string) string + PostFormArray func(key string) []string + PostFormMap func(key string) map[string]string + Query func(key string) string + QueryArray func(key string) []string + QueryMap func(key string) map[string]string + type RequestRawContextor interface + GetRawData func() ([]byte, error) + type ResponseContextor interface + AsciiJSON func(code int, obj interface{}) + Cookie func(name string) (string, error) + Data func(code int, contentType string, data []byte) + DataFromReader func(code int, contentLength int64, contentType string, reader io.Reader, ...) + HTML func(code int, name string, obj interface{}) + IndentedJSON func(code int, obj interface{}) + JSON func(code int, obj interface{}) + JSONP func(code int, obj interface{}) + ProtoBuf func(code int, obj interface{}) + PureJSON func(code int, obj interface{}) + Redirect func(code int, location string) + Render func(code int, r render.Render) + SecureJSON func(code int, obj interface{}) + SetAccepted func(formats ...string) + SetCookie func(name, value string, maxAge int, path, domain string, secure, httpOnly bool) + String func(code int, format string, values ...interface{}) + XML func(code int, obj interface{}) + YAML func(code int, obj interface{}) + type ResponseFileContextor interface + File func(filepath string) + FileAttachment func(filepath, filename string) + type ResponseStreamContextor interface + Negotiate func(code int, config gin.Negotiate) + NegotiateFormat func(offered ...string) string + SSEvent func(name string, message interface{}) + Stream func(step func(w io.Writer) bool) bool