server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package server implements a health, readiness, and metrics server for the reflector.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsServer

type MetricsServer interface {
	Run(context.Context) error
}

MetricsServer is a server interface which allows for prometheus to scrape metrics from the reflector.

func NewMetricsServer

func NewMetricsServer(logger zerolog.Logger, address string) MetricsServer

NewMetricsServer creates a new server for serving metrics

Jump to

Keyboard shortcuts

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