switching

package
v0.0.0-...-8b36eab Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2016 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHub

func RegisterHub(h bh.Hive, opts ...bh.AppOption)

RegisterHub registers the hub application on the given hive with the provided options.

func RegisterSwitch

func RegisterSwitch(h bh.Hive, opts ...bh.AppOption)

RegisterSwitch registers the learning switch application on the given hive with the provided options.

Types

type Hub

type Hub struct{}

func (Hub) Map

func (h Hub) Map(msg bh.Msg, ctx bh.MapContext) bh.MappedCells

func (Hub) Rcv

func (h Hub) Rcv(msg bh.Msg, ctx bh.RcvContext) error

type LearningSwitch

type LearningSwitch struct {
	Hub
}

func (LearningSwitch) Rcv

func (h LearningSwitch) Rcv(msg bh.Msg, ctx bh.RcvContext) error

Jump to

Keyboard shortcuts

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