discovery

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: EPL-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 Component

type Component struct {
	Logger        *zap.Logger
	HTTPDiscovery []*dhttp.HTTPDiscovery

	Prometheus *prometheus.Prometheus
	// contains filtered or unexported fields
}

Component contains all service discovery instances

func New

func New(logger *zap.Logger, config Configuration, promComponent *prometheus.Prometheus, healthcheck *healthcheck.Component) (*Component, error)

New creates the main component from its configuration

func (*Component) Start

func (c *Component) Start() error

Start start all discovery mechanisms

func (*Component) Stop

func (c *Component) Stop() error

Stop stop all discovery mechanisms

type Configuration

type Configuration struct {
	HTTP []http.Configuration
}

Configuration the service discovery mechanisms configuration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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