service_discovery

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

View Source
const ServiceDiscoveryDummy = "dummy"
View Source
const ServiceDiscoveryPodSinglePort = "pod-single-port"
View Source
const ServiceDiscoveryServiceSinglePort = "service-single-port"

Variables

This section is empty.

Functions

func RegisterSDManagerInitializers added in v0.4.0

func RegisterSDManagerInitializers(name string, initFunc InitFunc)

Types

type DummyServiceDiscoveryManager

type DummyServiceDiscoveryManager struct{}

func (DummyServiceDiscoveryManager) GetEndpoints

func (d DummyServiceDiscoveryManager) GetEndpoints() ([]string, error)

func (DummyServiceDiscoveryManager) Name added in v0.4.0

func (DummyServiceDiscoveryManager) Run

type InitFunc added in v0.4.0

type ServiceDiscoveryManager

type ServiceDiscoveryManager interface {
	Name() string
	Run() error

	// GetEndpoints get all endpoints list in the format `host:port`,
	// different implementations may have each individual explanations
	// for what the returned value represents for.
	GetEndpoints() ([]string, error)
}

ServiceDiscoveryManager is used to discover all available endpoints.

func GetSDManager added in v0.4.0

GetSDManager return an implementation for ServiceDiscoveryManager based on the given parameters

func NewPodSinglePortSDManager added in v0.4.0

func NewPodSinglePortSDManager(ctx context.Context, agentCtx *katalystbase.GenericContext,
	conf *generic.ServiceDiscoveryConf,
) (ServiceDiscoveryManager, error)

func NewServiceSinglePortSDManager added in v0.4.0

func NewServiceSinglePortSDManager(ctx context.Context, agentCtx *katalystbase.GenericContext,
	conf *generic.ServiceDiscoveryConf,
) (ServiceDiscoveryManager, error)

Jump to

Keyboard shortcuts

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