app

package
v0.0.0-...-f610513 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterfaceStatistic

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

type RouteSwitcher

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

func NewRouteSwitcher

func NewRouteSwitcher(config *options.RouteSwitcherConfig) (*RouteSwitcher, error)

func (*RouteSwitcher) MonitorInterface

func (rs *RouteSwitcher) MonitorInterface(statistic *InterfaceStatistic, targets []net.IP, stopCh <-chan struct{}, wg *sync.WaitGroup) error

func (*RouteSwitcher) Run

func (rs *RouteSwitcher) Run() error

func (*RouteSwitcher) SwitchInterfaces

func (rs *RouteSwitcher) SwitchInterfaces(stopCh <-chan struct{}, wg *sync.WaitGroup) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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