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: 0

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