Versions in this module Expand all Collapse all v0 v0.7.2 Apr 16, 2020 v0.7.1 Apr 9, 2020 Changes in this version + const MAX_SESSION_COUNT + const SESSION_TIMEOUT + type Session struct + TxHashArr []TxHashInfo + func (self *Session) AppendTxHash(txhash string) + func (self *Session) Close() + func (self *Session) GetSessionId() string + func (self *Session) RemoveTimeoverTxHashes() (remove []TxHashInfo) + func (self *Session) Send(data []byte) error + func (self *Session) SessionTimeoverCheck() bool + func (self *Session) UpdateActiveTime() + type SessionList struct + func NewSessionList() *SessionList + func (self *SessionList) CloseSession(session *Session) + func (self *SessionList) ForEachSession(visit func(*Session)) + func (self *SessionList) GetSessionById(sessionId string) *Session + func (self *SessionList) GetSessionCount() int + func (self *SessionList) NewSession(wsConn *websocket.Conn) (session *Session, err error) + type TxHashInfo struct + StartTime int64 + TxHash string