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
Click to show internal directories.
Click to hide internal directories.