discovery

package
v0.0.0-...-94d2ec4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	StrategyPort       = "port"
	StrategyKubernetes = "kubernetes"
)

Variables

This section is empty.

Functions

func NewKubernetesDiscovery

func NewKubernetesDiscovery(namespace string, service string, nodeAddress string, nodeID string, r *raft.Raft) *kubernetesDiscovery

func NewKubernetesDiscoveryWithClient

func NewKubernetesDiscoveryWithClient(clientset *fake.Clientset, namespace string, service string) *kubernetesDiscovery

func NewPortDiscovery

func NewPortDiscovery(minPort, maxPort int, host, memberAddress, serverId string, raft *raft.Raft) *portDiscovery

Types

type Discovery

type Discovery interface {
	Discover() error
}

func Get

func Get(nodeConfig *node.Config, raft *raft.Raft) Discovery

type Strategy

type Strategy string

Jump to

Keyboard shortcuts

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