speaker

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSpeaker

func RegisterSpeaker(name string, s Speaker) error

func UnRegisterSpeaker

func UnRegisterSpeaker(name string)

Types

type Fake

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

func NewFake

func NewFake() *Fake

func (*Fake) DelBalancer

func (f *Fake) DelBalancer(ip string) error

func (*Fake) Equal

func (f *Fake) Equal(ip string, nexthops []string) bool

func (*Fake) SetBalancer

func (f *Fake) SetBalancer(ip string, nexthops []corev1.Node) error

func (*Fake) Start

func (f *Fake) Start(stopCh <-chan struct{}) error

type Speaker

type Speaker interface {
	SetBalancer(ip string, nexthops []corev1.Node) error
	DelBalancer(ip string) error
	Start(stopCh <-chan struct{}) error
}

func GetSpeaker

func GetSpeaker(name string) Speaker

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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