config

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: May 16, 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 Config

type Config struct {
	Logging struct {
		Level     string `env:"LOG_LEVEL,default=info"`
		Formatter string `env:"LOG_FORMATTER,default=json"`
	}
	CollectionInterval string `env:"COLLECT_INTERVAL,default=1h"`
	UploadInventory    bool   `env:"UPLOAD_INVENTORY,default=true"`
	Impersonate        string `env:"IMPERSONATE"`
	ServerAPIEndpoint  string `env:"SERVER_API_ENDPOINT,default=http://localhost:8086"`
	HTTPPort           string `env:"HTTP_PORT,default=8087"`
	HTTPPortMeta       string `env:"HTTP_PORT_META,default=8088"`
	TLSCrt             string `env:"TLS_CRT,default=/etc/certificates/tls.crt"`
	TLSKey             string `env:"TLS_KEY,default=/etc/certificates/tls.key"`
	AuthEnabled        bool   `env:"AUTH_ENABLED,default=true"`
	Debug              bool   `env:"DEBUG,default=false"`
	Extras             env.EnvSet
}

func NewConfig

func NewConfig() Config

Jump to

Keyboard shortcuts

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