discovery

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulRegistrator

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

ConsulRegistrator is a helper struct that handles Consul service registration

func NewConsulRegistrator

func NewConsulRegistrator(cfg *config.Config) (*ConsulRegistrator, error)

NewConsulRegistrator is a constructor function for building a new ConsulRegistrator

func (*ConsulRegistrator) RegisterConsul

func (r *ConsulRegistrator) RegisterConsul() error

RegisterConsul registers the exporter instance at Consul

func (*ConsulRegistrator) UnregisterConsul

func (r *ConsulRegistrator) UnregisterConsul() error

UnregisterConsul deregisters the exporter from Consul again

Jump to

Keyboard shortcuts

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