Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discovery ¶
type Discovery struct {
// contains filtered or unexported fields
}
Discovery implements the TargetProvider interface for discovering targets from Zookeeper.
func NewDiscovery ¶
func NewDiscovery( srvs []string, timeout time.Duration, paths []string, pf func(data []byte, path string) (model.LabelSet, error), ) *Discovery
NewDiscovery returns a new discovery along Zookeeper parses with the given parse function.
func NewNerveDiscovery ¶
func NewNerveDiscovery(conf *config.NerveSDConfig) *Discovery
NewNerveDiscovery returns a new Discovery for the given Nerve config.
func NewServersetDiscovery ¶
func NewServersetDiscovery(conf *config.ServersetSDConfig) *Discovery
NewServersetDiscovery returns a new Discovery for the given serverset config.
Click to show internal directories.
Click to hide internal directories.