conf

package
v4.1.21 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2025 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

package conf enumerates the configuration options for the global query service

Index

Constants

View Source
const (
	LogLevel    = loggingKey + ".level"
	LogEncoding = loggingKey + ".encoding"

	ProfilingEnabled = profilingKey + ".enabled"

	HostsResolverType   = hostsResolverKey + ".type"
	HostsResolverConfig = hostsResolverKey + ".config"

	QuerierType          = querierKey + ".type"
	QuerierConfig        = querierKey + ".config"
	QuerierMaxConcurrent = querierKey + ".max_concurrent"

	ServerAddr                = serverKey + ".addr"
	ServerShutdownGracePeriod = serverKey + ".shutdowngraceperiod"

	OpenAPISpecOutfile = openapiKey + ".spec-outfile"
)

Definitions for command line parameters / arguments

View Source
const (
	DefaultLogLevel    = "info"
	DefaultLogEncoding = "logfmt"

	DefaultHostsResolverType = "string"

	DefaultHostsQuerierType = "api"

	DefaultServerAddr                = "localhost:8145"
	DefaultServerShutdownGracePeriod = 30 * time.Second
)

Global defaults for command line parameters / arguments

View Source
const (
	// ServiceName is the name of the service as it will show up in telemetry such as metrics, logs, traces, etc.
	ServiceName = "global_query"
)

Variables

This section is empty.

Functions

func RegisterFlags added in v4.1.18

func RegisterFlags(cmd *cobra.Command, cfgFile *string) error

RegisterFlags registers all command line flags for the configuration

Types

This section is empty.

Jump to

Keyboard shortcuts

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