policy

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Policy

type Policy interface {
	// AssignSlave provide multiple strategies for num node elections, such as polling and randomization
	AssignSlave(num int, slaveAddrList []string) ([]string, error)
}

type RandomPolicy

type RandomPolicy struct {
}

func NewRandomPolicy

func NewRandomPolicy() *RandomPolicy

func (*RandomPolicy) AssignSlave

func (r *RandomPolicy) AssignSlave(num int, slaveAddrList []string) ([]string, error)

Jump to

Keyboard shortcuts

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