controller

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller is used to manage and drive processor.

func New

func New(evtC <-chan config.Event) (*Controller, error)

New creates a controller with given event channel.

func (*Controller) DrainListeners

func (c *Controller) DrainListeners()

DrainListeners drains all processor listener.

func (*Controller) GetAllProcs

func (c *Controller) GetAllProcs() []proc.Proc

GetAllProcessors return all registered processors.

func (*Controller) GetProc

func (c *Controller) GetProc(name string) (proc.Proc, bool)

GetProc returns the specified processor.

func (*Controller) Start

func (c *Controller) Start() error

Start starts the controller.

func (*Controller) Stop

func (c *Controller) Stop()

Stop stops the controller.

Jump to

Keyboard shortcuts

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