discovery

package
v0.0.0-...-d5dbc52 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discover

type Discover interface {
	Find(name string) []string
	Watch(name string) chan []string
}

func NewDiscover

func NewDiscover(conf *DiscoverConfig) Discover

func NewEtcdDiscover

func NewEtcdDiscover(hosts string) (Discover, error)

type DiscoverConfig

type DiscoverConfig struct {
	Name  string `yaml:"name"`
	Hosts string `yaml:"hosts"`
}

type EtcdDiscover

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

func (*EtcdDiscover) Find

func (cli *EtcdDiscover) Find(name string) []string

func (*EtcdDiscover) Watch

func (cli *EtcdDiscover) Watch(name string) chan []string

Jump to

Keyboard shortcuts

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