app

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: GPL-2.0 Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseProcessor

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

func (*BaseProcessor) Dependencies

func (r *BaseProcessor) Dependencies() []string

func (*BaseProcessor) Init

func (r *BaseProcessor) Init() error

func (*BaseProcessor) Name

func (r *BaseProcessor) Name() string

func (*BaseProcessor) Next

func (r *BaseProcessor) Next() (next Processor, ok bool)

func (*BaseProcessor) OnDeviceDown

func (r *BaseProcessor) OnDeviceDown(finder network.Finder, device *network.Device) error

func (*BaseProcessor) OnDeviceUp

func (r *BaseProcessor) OnDeviceUp(finder network.Finder, device *network.Device) error

func (*BaseProcessor) OnFlowRemoved

func (r *BaseProcessor) OnFlowRemoved(finder network.Finder, flow openflow.FlowRemoved) error

func (*BaseProcessor) OnPacketIn

func (r *BaseProcessor) OnPacketIn(finder network.Finder, ingress *network.Port, eth *protocol.Ethernet) error

func (*BaseProcessor) OnPortDown

func (r *BaseProcessor) OnPortDown(finder network.Finder, port *network.Port) error

func (*BaseProcessor) OnPortUp

func (r *BaseProcessor) OnPortUp(finder network.Finder, port *network.Port) error

func (*BaseProcessor) OnTopologyChange

func (r *BaseProcessor) OnTopologyChange(finder network.Finder) error

func (*BaseProcessor) PacketOut

func (r *BaseProcessor) PacketOut(egress *network.Port, packet []byte) error

func (*BaseProcessor) SetNext

func (r *BaseProcessor) SetNext(next Processor)

type Processor

type Processor interface {
	Dependencies() []string
	fmt.Stringer
	Init() error
	// Name returns the application name that is globally unique
	Name() string
	network.EventListener
	Next() (next Processor, ok bool)
	SetNext(Processor)
}

Processor should prepare to be executed by multiple goroutines simultaneously.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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