config

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(configFile string) error

Types

type Config

type Config struct {
	DB           db.Config           `mapstructure:"db"`
	Telemetry    telemetry.Config    `mapstructure:"telemetry" yaml:"telemetry"`
	Service      server.Config       `mapstructure:"service" yaml:"service"`
	Log          Log                 `mapstructure:"log" yaml:"log"`
	Providers    plugins.Config      `mapstructure:"providers" yaml:"providers"`
	Receivers    receivers.Config    `mapstructure:"receivers" yaml:"receivers"`
	Notification notification.Config `mapstructure:"notification" yaml:"notification"`
	Alert        alert.Config        `mapstructure:"alert" yaml:"alert"`
}

Config contains the application configuration

func Load

func Load(configFile string) (Config, error)

Load returns application configuration

type Log

type Log struct {
	Level         string `mapstructure:"level" yaml:"level" default:"info"`
	GCPCompatible bool   `mapstructure:"gcp_compatible" yaml:"gcp_compatible" default:"true"`
}

Jump to

Keyboard shortcuts

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