Documentation ¶
Index ¶
- func Convert(handler http.HandlerFunc) gin.HandlerFunc
- func Converts(handlers []http.HandlerFunc) []gin.HandlerFunc
- func Debug(r *gin.Engine)
- func FromStdWithNext(h func(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)) gin.HandlerFunc
- func OpenApi(mux *gin.Engine, filePath string)
- func RespErr(ctx *gin.Context, err error)
- func RespErrMsg(ctx *gin.Context, msg string)
- func RespErrRep(ctx *gin.Context, rep *errorcode.ErrRep)
- func RespErrcode(ctx *gin.Context, code errorcode.ErrCode)
- func Response(ctx *gin.Context, code errorcode.ErrCode, msg string, data interface{})
- func Wrap(handler interface{}) gin.HandlerFunc
- type Config
- type ExportService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶ added in v1.3.0
func Convert(handler http.HandlerFunc) gin.HandlerFunc
func Converts ¶ added in v1.3.0
func Converts(handlers []http.HandlerFunc) []gin.HandlerFunc
func FromStdWithNext ¶ added in v1.3.0
func FromStdWithNext(h func(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)) gin.HandlerFunc
func RespErrMsg ¶ added in v1.3.0
func Wrap ¶ added in v1.3.0
func Wrap(handler interface{}) gin.HandlerFunc
Wrap converts native http.Handler & http.HandlerFunc to gin.HandlerFunc.
Supported form types:
.Wrap(h http.Handler) .Wrap(func(w http.ResponseWriter, r *http.Request)) .Wrap(func(w http.ResponseWriter, r *http.Request, next http.HandlerFunc))
Types ¶
type ExportService ¶ added in v1.3.0
type ExportService struct{}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.