Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Host = "127.0.0.1:8383/"
Functions ¶
This section is empty.
Types ¶
type OraclePool ¶
type OraclePool struct { Connections map[string]*SafeConnection SubscribeChan chan *Messages.SubscribeMsg UnsubscribeChan chan *Messages.UnsubscribeMsg Subscribers map[int][]*Messages.SubscribeMsg // contains filtered or unexported fields }
func NewOraclePool ¶
func NewOraclePool() *OraclePool
func (*OraclePool) IsSubscribed ¶
func (pool *OraclePool) IsSubscribed(id int) bool
func (*OraclePool) Subscribe ¶
func (pool *OraclePool) Subscribe(msg *Messages.SubscribeMsg)
func (*OraclePool) Unsubscribe ¶
func (pool *OraclePool) Unsubscribe(msg *Messages.UnsubscribeMsg)
Click to show internal directories.
Click to hide internal directories.