control

package
v0.0.0-...-76dc376 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Control

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

Control is a component that monitors change on a types.Readable and Enable or Disable its target

func New

func New(controlHandler types.Readable, target types.Enablable) *Control

New creates a new Control component

func (*Control) SetPanicChan

func (c *Control) SetPanicChan(p chan interface{})

SetPanicChan sets the channel where panics will be sent

func (Control) Shutdown

func (c Control) Shutdown()

Shutdown sets all the state to down and notify the handlers

func (Control) Start

func (c Control) Start()

Start the event loop of the Control component

Jump to

Keyboard shortcuts

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