Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeOctetStream = "application/octet-stream" TypeForm = "application/x-www-form-urlencoded" TypeJson = "application/json" TypeXml = "application/xml" TypeJpg = "image/jpeg" TypePng = "image/png" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Addr string `json:"addr" yaml:"addr" toml:"addr"` // addr, default :2233 ReadTimeout xtime.Duration `json:"read_timeout" yaml:"read_timeout" toml:"read_timeout"` // read_timeout, default 60s WriteTimeout xtime.Duration `json:"write_timeout" yaml:"write_timeout" toml:"write_timeout"` // write_timeout, default 60s Debug bool `json:"debug" yaml:"debug" toml:"debug"` // is show log Limiter *limiter.Config `json:"limiter" yaml:"limiter" toml:"limiter"` // interface limit }
type GinEngine ¶
type GinEngine struct { Gin *gin.Engine IgnoreReleaseLog bool // contains filtered or unexported fields }
func (*GinEngine) AddExitHook ¶
添加 GinServer 进程退出时钩子函数
func (*GinEngine) AddShutdownHook ¶
添加 GinServer 服务关闭时的钩子函数
Click to show internal directories.
Click to hide internal directories.