Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Gobal *gobalContent
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { // 端口号 Port string // 服务状态 State ServerState // contains filtered or unexported fields }
func (*Server) ServerStartedListener ¶
func (s *Server) ServerStartedListener(listener ServerStartedListener) *Server
ServerStartedListener 设置服务启动后的监听程序
type ServerStartedListener ¶
type ServerStartedListener func(serv *Server)
ServerStartedListener 服务启动后调用的监听程序
type ServerState ¶
type ServerState int
ServerState 服务状态
const ( // ServerStarting 服务启动中 ServerStarting ServerState = 1 // ServerStarted 服务已启动 ServerStarted ServerState = 2 // ServerFailed 服务启动失败 ServerFailed ServerState = 3 )
Click to show internal directories.
Click to hide internal directories.