Documentation
¶
Index ¶
Constants ¶
View Source
const ( Connect = iota Disconnect Terminate Logon Logoff )
Commands to a worker
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IF ¶
type IF interface {
ID() (int, error)
Label() (string, error)
Run(wg *sync.WaitGroup)
Command(int)
Subscribe(int, string) *Subscription
UnSubscribe(int)
}
IF Interface
type Subscription ¶
type Subscription struct {
ID int
Type string
Label string
Channel chan interface{}
Next *Subscription
}
Subscription to a messahe on a channel
func NewSubscription ¶
func NewSubscription(sID int, sType string, label string) *Subscription
NewSubscription create a new subscription
Click to show internal directories.
Click to hide internal directories.