Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PFBlock indicates push block info (JSON format) message to online // list when a block added to chain. PFBlock uint32 = 1 << iota // PFRawBlock indicates push RAW block message to online list when a // block added to chain. PFRawBlock // PFBlockTxs indicates push block transactions info (JSON format) message // to online list when a block added to chain. PFBlockTxs // PFBlockTxs indicates push new transaction info (JSON format) message to // online list when a transaction added to mempool. PFNewTx )
Variables ¶
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until either UseLogger or SetLogWriter are called.
Types ¶
type Server ¶
func (*Server) GetSessionList ¶
func (s *Server) GetSessionList() *SessionList
type SessionList ¶
func (*SessionList) CloseSession ¶
func (sl *SessionList) CloseSession(session *Session)
func (*SessionList) ForEach ¶
func (sl *SessionList) ForEach(closure func(*Session))
func (*SessionList) NewSession ¶
func (sl *SessionList) NewSession(conn *websocket.Conn) *Session
Click to show internal directories.
Click to hide internal directories.