discovery

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDebugInfoProvider

func NewDebugInfoProvider(discoverer orchestrator.NodeDiscoverer) model.DebugInfoProvider

func NewFixedDiscoverer

func NewFixedDiscoverer(peerIDs ...models.NodeInfo) *fixedDiscoverer

Types

type Chain

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

func NewChain

func NewChain(ignoreErrors bool) *Chain

func (*Chain) Add

func (c *Chain) Add(discoverer ...orchestrator.NodeDiscoverer)

func (*Chain) ListNodes

func (c *Chain) ListNodes(ctx context.Context) ([]models.NodeInfo, error)

type StoreNodeDiscoverer

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

func NewStoreNodeDiscoverer

func NewStoreNodeDiscoverer(params StoreNodeDiscovererParams) *StoreNodeDiscoverer

func (*StoreNodeDiscoverer) ListNodes

func (d *StoreNodeDiscoverer) ListNodes(ctx context.Context) ([]models.NodeInfo, error)

ListNodes implements orchestrator.NodeDiscoverer

type StoreNodeDiscovererParams

type StoreNodeDiscovererParams struct {
	Store routing.NodeInfoStore
}

Jump to

Keyboard shortcuts

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