serviceconfig

package
v0.48.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ShutdownTimeoutDefault is the default value for HTTP service timeout.
	ShutdownTimeoutDefault = 30 * time.Second
	// ProfilerAddressDefault is the default value for profiler HTTP service endpoint.
	ProfilerAddressDefault = "localhost:6060"
	// MetricsAddressDefault is the default value for metrics HTTP service endpoint.
	MetricsAddressDefault = "localhost:9090"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Enabled         bool          `mapstructure:"enabled"`
	Address         string        `mapstructure:"address"`
	ShutdownTimeout time.Duration `mapstructure:"shutdown_timeout"`
}

Service contains configuration for the HTTP service.

func (*Service) Normalize

func (p *Service) Normalize(addrDefault string)

Normalize sets default values for Service fields if they are not set.

Jump to

Keyboard shortcuts

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