Documentation
¶
Index ¶
- Constants
- func GetTraceContext(ctx *gin.Context) context.Context
- func InitTrans(locale string, validate binding.StructValidator) (err error)
- func NewServer(options server.Options, routerProvider func(engine *gin.Engine), ...) server.Server
- func ProxyService(serviceName, path string, ctx *gin.Context, timeout time.Duration) error
- type Server
Constants ¶
View Source
const DefaultMaxRequestBodySize = 104857600 // 100MB
Variables ¶
This section is empty.
Functions ¶
func InitTrans ¶ added in v0.6.21
func InitTrans(locale string, validate binding.StructValidator) (err error)
InitTrans 初始化翻译器
Types ¶
Click to show internal directories.
Click to hide internal directories.