Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerSet ¶ added in v0.0.14
type ServerSet struct {
Port int
Name string
RegisterFunc func(*gin.Engine)
EnableGinLog bool
SetGinMode string
GinEngine *gin.Engine
HttpSrv *http.Server
EngineWithDefault bool // 是否使用默认的 gin.Default() 拥有默认的日志
BeforeStartFunc func(*gin.Engine) //启动前执行
AfterStartFunc func(*gin.Engine) //启动后执行
BeforeStopFunc func(*gin.Engine) //启动后执行
AfterStopFunc func() //关闭后执行
}
func (*ServerSet) StartSever ¶ added in v0.0.15
StartSever 启动服务
func (*ServerSet) StopServer ¶ added in v0.0.15
func (set *ServerSet) StopServer()
StopServer 监听关闭服务
Click to show internal directories.
Click to hide internal directories.