controller

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: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	MaxPings = 3
)

Variables

This section is empty.

Functions

func RegisterNOMController

func RegisterNOMController(h bh.Hive)

Types

type Batch

type Batch struct {
	Adds []nom.AddFlowEntry // The flows to be added.
	Dels []nom.DelFlowEntry // The flows to be removed.
}

Batch represents a collection of flow entries to be added to and removed from the network. The controller ensures that these changes are either all applied or all failed.

type Consolidator

type Consolidator struct{}

func (Consolidator) Map

func (c Consolidator) Map(msg bh.Msg, ctx bh.MapContext) bh.MappedCells

func (Consolidator) Rcv

func (c Consolidator) Rcv(msg bh.Msg, ctx bh.RcvContext) error

type HealthChecker

type HealthChecker struct{}

func (HealthChecker) Map

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

func (HealthChecker) Rcv

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

type Poller

type Poller struct{}

func (Poller) Map

func (p Poller) Map(msg bh.Msg, ctx bh.MapContext) bh.MappedCells

func (Poller) Rcv

func (p Poller) 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