Documentation
¶
Index ¶
- func ContentType(subtype string) string
- func Error(ctx *gin.Context, err error)
- func FromGinContext(ctx context.Context) (c *gin.Context, ok bool)
- func Middlewares(m ...middleware.Middleware) gin.HandlerFunc
- func NewGinContext(ctx context.Context, c *gin.Context) context.Context
- func Success(ctx *gin.Context, data interface{})
- func Validate(in interface{}) error
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContentType ¶
ContentType returns the content-type with base prefix.
func FromGinContext ¶
FromGinContext returns the gin.Context value stored in ctx, if any.
func Middlewares ¶
func Middlewares(m ...middleware.Middleware) gin.HandlerFunc
Middlewares return middlewares wrapper
func NewGinContext ¶
NewGinContext returns a new Context that carries gin.Context value.
Types ¶
Click to show internal directories.
Click to hide internal directories.