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

images

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageInfo

type ImageInfo struct {
	Channel   string
	From      string
	For       string
	MessageID int
	Type      string
	Height    int
	Width     int
	Source    string
	// contains filtered or unexported fields
}

ImageInfo persists image information

type ImageWorker

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

ImageWorker stream worker

func NewImageWorker

func NewImageWorker(workers *worker.Workers, id int, label string) *ImageWorker

NewImageWorker create a new ImageWorker

func (*ImageWorker) Command

func (w *ImageWorker) Command(c int)

Command sent to this worker

func (*ImageWorker) ID added in v0.2.0

func (w *ImageWorker) ID() int

ID return label of worker

func (*ImageWorker) Label added in v0.2.0

func (w *ImageWorker) Label() string

Label return label of worker

func (*ImageWorker) Run

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

Run is main function of this worker

func (*ImageWorker) Subscriptions added in v0.2.0

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

Subscriptions return a copy of current scubscriptions

func (*ImageWorker) Terminate

func (w *ImageWorker) Terminate()

Terminate the worker

Jump to

Keyboard shortcuts

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