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
Label() string
Run(wg *sync.WaitGroup)
Command(int)
Subscribe(int, string) *Subscription
UnSubscribe(int)
Subscriptions() []*Subscription
}
IF Interface
type Subscription ¶
type Subscription struct {
ID int `json:"id,omitempty"`
Type string `json:"type,omitempty"`
Label string `json:"label,omitempty"`
Channel chan interface{} `json:"-"`
Next *Subscription `json:"-"`
}
Subscription to a message 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.