Help us shape the future of Go! Take the 2026 Go Developer Survey

worker

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2019 License: MIT Imports: 1 Imported by: 0

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

type Workers

type Workers []interface{}

Workers object

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL