speakerlist

package
v0.14.5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpeakerList

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

SpeakerList represents a list of healthy speakers.

func New

func New(logger log.Logger, nodeName, bindAddr, bindPort, secret, namespace, labels string, WANNetwork bool, stopCh chan struct{}) (*SpeakerList, error)

New creates a new SpeakerList and returns a pointer to it.

func (*SpeakerList) Rejoin

func (sl *SpeakerList) Rejoin()

Rejoin initiates a discovery and joins all the speakers to the memberlist cluster.

func (*SpeakerList) Start

func (sl *SpeakerList) Start(client *k8s.Client)

Start initializes the SpeakerList. This functions must be called before using other SpeakerList methods.

func (*SpeakerList) Stop

func (sl *SpeakerList) Stop()

Stop stops the SpeakerList.

func (*SpeakerList) UsableSpeakers

func (sl *SpeakerList) UsableSpeakers() map[string]bool

UsableSpeakers returns a map of usable speaker nodes.

Jump to

Keyboard shortcuts

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