Documentation
¶
Index ¶
Constants ¶
View Source
const MaxIDSequence = 10
MaxIDSequence max srcid sequence
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IDStack ¶
type IDStack struct {
// contains filtered or unexported fields
}
IDStack store srcIDs,max
type Session ¶
type Session struct {
IP net.IP
Port string
SrcID int32 //module id
MQ queue.Queue
SessionID string
Done chan *Session
Request proto.Message
Response proto.Message
Die chan struct{} // session die signal, will be triggered by others
// contains filtered or unexported fields
}
Session connection identify
func CreateSession ¶
CreateSession from session pool
type SessionPool ¶
SessionPool mamager session objests
Click to show internal directories.
Click to hide internal directories.