configuration

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthConfiguration

type HealthConfiguration struct {
	Addr string `yaml:"addr" default:":8888" help:"health server address"`
	Path string `yaml:"path" default:"/healthz" help:"health server path"`
}

func (HealthConfiguration) Run

func (c HealthConfiguration) Run(ctx context.Context, probes health.Probes, logger *slog.Logger) error

type LogConfiguration

type LogConfiguration struct {
	Format string `yaml:"format" default:"json" help:"log format. Valid values are json and text"`
	Level  string `yaml:"level" default:"info" help:"log level. Valid values are debug, info, warn, error"`
}

func (LogConfiguration) Logger

func (c LogConfiguration) Logger(w io.Writer) *slog.Logger

type PrometheusConfiguration

type PrometheusConfiguration struct {
	Addr string `yaml:"addr" default:":9100" help:"prometheus server address"`
	Path string `yaml:"path" default:"/metrics" help:"prometheus server path"`
}

func (PrometheusConfiguration) Run

Jump to

Keyboard shortcuts

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