config

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init added in v0.5.0

func Init(configFile string) error

Types

type Config added in v0.4.1

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    providers.Config    `mapstructure:"providers" yaml:"providers"`
	Receivers    receivers.Config    `mapstructure:"receivers" yaml:"receivers"`
	Notification notification.Config `mapstructure:"notification" yaml:"notification"`
}

Config contains the application configuration

func Load added in v0.5.0

func Load(configFile string) (Config, error)

Load returns application configuration

type Log added in v0.5.0

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