Documentation ¶ Index ¶ func DelSession(id string) func GetStream(id string) (*mux.Stream, error) func PanicHandler() func RunKCP(port int) func RunTCP(port int) func RunTLS(port int) func SetSession(id string, session *Session) type Session func GetSession(id string) (*Session, error) func (sess *Session) Task() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DelSession ¶ func DelSession(id string) func GetStream ¶ func GetStream(id string) (*mux.Stream, error) func PanicHandler ¶ func PanicHandler() :TODO 恢复的没有用,为什么会panic,为什么恢复没用 func RunKCP ¶ func RunKCP(port int) func RunTCP ¶ func RunTCP(port int) func RunTLS ¶ func RunTLS(port int) func SetSession ¶ func SetSession(id string, session *Session) Types ¶ type Session ¶ type Session struct { Id string Conn *net.Conn Ssession *mux.Session WorkConn chan net.Conn } func GetSession ¶ func GetSession(id string) (*Session, error) func (*Session) Task ¶ func (sess *Session) Task() :TODO 存活检测 Source Files ¶ View all Source files listenerHdl.go servKcpLogin.go servTcpLogin.go servTlsLogin.go sessionStorage.go sessionrHdl.go Click to show internal directories. Click to hide internal directories.