vswitch

package
v0.0.0-...-0172ae5 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PortIdentifier

type PortIdentifier uint64

type VSwitch

type VSwitch struct {
	sync.Mutex

	Name         string
	IdleDuration time.Duration
	// contains filtered or unexported fields
}

func New

func New(name string, idleDuration time.Duration) (*VSwitch, error)

func (*VSwitch) AddPort

func (s *VSwitch) AddPort(receiveChan chan<- []byte, sendChan <-chan []byte) PortIdentifier

func (*VSwitch) RemovePort

func (s *VSwitch) RemovePort(ID PortIdentifier) bool

func (*VSwitch) Start

func (s *VSwitch) Start()

func (*VSwitch) Stop

func (s *VSwitch) Stop()

func (*VSwitch) StopAndRemovePorts

func (s *VSwitch) StopAndRemovePorts()

Jump to

Keyboard shortcuts

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