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

texts

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TextMessageWorker

type TextMessageWorker struct {
	sync.Mutex
	// contains filtered or unexported fields
}

TextMessageWorker stream worker

func NewTextMessageWorker

func NewTextMessageWorker(workers *worker.Workers, id int, label string) *TextMessageWorker

NewTextMessageWorker create a new TextMessageWorker

func (*TextMessageWorker) Command

func (w *TextMessageWorker) Command(c int)

Command sent to this worker

func (*TextMessageWorker) ID added in v0.2.0

func (w *TextMessageWorker) ID() int

ID return label of worker

func (*TextMessageWorker) Label added in v0.2.0

func (w *TextMessageWorker) Label() string

Label return label of worker

func (*TextMessageWorker) Run

func (w *TextMessageWorker) Run(wg *sync.WaitGroup, term *chan int)

Run is main function of this worker

func (*TextMessageWorker) Subscriptions added in v0.2.0

func (w *TextMessageWorker) Subscriptions() []*worker.Subscription

Subscriptions return a copy of current scubscriptions

func (*TextMessageWorker) Terminate

func (w *TextMessageWorker) Terminate()

Terminate the worker

func (*TextMessageWorker) TextMessageEvent added in v0.2.0

func (w *TextMessageWorker) TextMessageEvent(message []byte)

TextMessageEvent -- obvious

Jump to

Keyboard shortcuts

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