config

package
v0.0.0-...-f24f028 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceConfig

type ServiceConfig struct {
	Threshold     int           `envconfig:"X_OBSERVABILITY_THRESH" default:"100"`
	MaxInputValue int           `envconfig:"X_MAX_INPUT_VALUE" default:"130"`
	Duration      time.Duration `envconfig:"X_OBSERVABILITY_DUR" default:"30s"`

	TracerURI   string `envconfig:"X_OBSERVABILITY_TRACER_URI" default:"localhost:4317"`
	MetricsPort int    `enconfig:"X_OBSERVABILITY_METRICS_PORT" default:"13090"`
}

func NewServiceConfig

func NewServiceConfig() (*ServiceConfig, error)

Jump to

Keyboard shortcuts

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