Versions in this module Expand all Collapse all v1 v1.3.0 Jul 14, 2023 Changes in this version + func SetLog(l logger.Logger) v1.2.0 Mar 14, 2023 v1.1.0 Nov 29, 2022 Changes in this version + func LimiterMiddleware(limit int) gin.HandlerFunc + func SetDefaultErrorCode(code int) error + func TimeoutMiddleware(millSecond int) gin.HandlerFunc + type AsciiJSON = render.AsciiJSON + type Data = render.Data + type GinError struct + Code int + Msg string + func NewGinError(code int, msg string) GinError + func (e GinError) Error() string + type GinHandler func(c *gin.Context) Render + type GinOption func(*gin.Engine) + func WithContextWithFallback(fallback bool) GinOption + func WithForwardedByClientIP(forwarded bool) GinOption + func WithHandleMethoNotAllowed(allowed bool) GinOption + func WithMaxMultipartMemory(memory int64) GinOption + func WithRedirectFixedPath(redirect bool) GinOption + func WithRedirectTrailingSlash(redirect bool) GinOption + func WithRemoteIPHeaders(headers []string) GinOption + func WithRemoveExtraSlash(remove bool) GinOption + func WithTrustedPlatform(trusted string) GinOption + func WithUnescapePathValues(unescape bool) GinOption + func WithUseH2C(h2c bool) GinOption + func WithUseRawPath(rawPath bool) GinOption + type GinRouters interface + Handle func(method, path string, handler GinHandler) GinRouters + Use func(handler ...gin.HandlerFunc) GinRouters + type HTML = render.HTML + type HTMLDebug = render.HTMLDebug + type HTMLProduction = render.HTMLProduction + type IndentedJSON = render.IndentedJSON + type JSON = render.JSON + type JsonpJSON = render.JsonpJSON + type Reader = render.Reader + type Redirect = render.Redirect + type Render = render.Render + func Error(err error) Render + func ResponseData(code int, msg string, data interface{}) Render + func Success(data interface{}) Render + type Response struct + Code int + Data interface{} + Msg string + Timestamp int64 + type SecureJSON = render.SecureJSON + type String = render.String + type XML = render.XML + type YAML = render.YAML + type ZeroGinRouter interface + Group func(path string) ZeroGinRouter + Handler func() http.Handler + func NewZeroGinRouter(opts ...GinOption) ZeroGinRouter