Help us shape the future of Go! Take the 2026 Go Developer Survey

adapter

package
v0.313.5 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 12 Imported by: 106

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

Adapter runs an unknown service discovery implementation and converts its target groups to JSON and writes to a file for file_sd.

func NewAdapter

func NewAdapter(ctx context.Context, file, name string, d discovery.Discoverer, logger *slog.Logger, sdMetrics *discovery.SDMetrics, registerer prometheus.Registerer) *Adapter

NewAdapter creates a new instance of Adapter.

func (*Adapter) Run

func (a *Adapter) Run()

Run starts a Discovery Manager and the custom service discovery implementation.

Jump to

Keyboard shortcuts

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