Documentation ¶
Index ¶
- Constants
- type Networker
- func (w *Networker) Command(c int)
- func (w *Networker) Data(d []byte)
- func (w *Networker) Disconnect()
- func (w *Networker) ID() int
- func (w *Networker) Label() string
- func (w *Networker) Run(wg *sync.WaitGroup, term *chan int)
- func (w *Networker) Subscribe(id int, sType string, label string) *worker.Subscription
- func (w *Networker) Subscriptions() []*worker.Subscription
- func (w *Networker) Terminate()
- func (w *Networker) UnSubscribe(id int, sType string)
Constants ¶
View Source
const ( SubscriptionTypeConection = "connection" Connected = "connected" Disconnected = "disconnected" )
SubscriptionTypeConection for use by other go routines
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Networker ¶
Networker network worker
func NewNetworker ¶
NewNetworker create a new Networker
func (*Networker) Subscriptions ¶ added in v0.2.0
func (w *Networker) Subscriptions() []*worker.Subscription
Subscriptions return a copy of current scubscriptions
func (*Networker) UnSubscribe ¶
UnSubscribe from this worker
Click to show internal directories.
Click to hide internal directories.