components

package
v0.0.0-...-67faadc Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor interface {
	Data() string
	Ready() <-chan struct{}
}

type ProcessorController

type ProcessorController struct {
	Processor Processor
}

func (*ProcessorController) Get

func (c *ProcessorController) Get() Processor

func (*ProcessorController) Init

func (c *ProcessorController) Init() error

func (*ProcessorController) Set

type Worker

type Worker interface {
	DoWork()
	Status() string
}

type WorkerPool

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

func (*WorkerPool) Init

func (s *WorkerPool) Init() error

func (*WorkerPool) Register

func (wp *WorkerPool) Register(w Worker)

func (*WorkerPool) Status

func (wp *WorkerPool) Status() []string

Jump to

Keyboard shortcuts

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