config

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.4.1

type Config struct {
	DB            postgres.Config          `mapstructure:"db"`
	Cortex        cortex.Config            `mapstructure:"cortex"`
	NewRelic      telemetry.NewRelicConfig `mapstructure:"newrelic"`
	SirenService  server.Config            `mapstructure:"siren_service"`
	Log           LogConfig                `mapstructure:"log"`
	SlackApp      SlackApp                 `mapstructure:"slack_app"`
	EncryptionKey string                   `mapstructure:"encryption_key"`
}

Config contains the application configuration

func LoadConfig

func LoadConfig(configFile string) (Config, error)

LoadConfig returns application configuration

type LogConfig added in v0.4.1

type LogConfig struct {
	Level string `mapstructure:"level" default:"info"`
}

type SlackApp added in v0.4.1

type SlackApp struct {
	ClientID     string `mapstructure:"client_id"`
	ClientSecret string `mapstructure:"client_secret"`
}

Jump to

Keyboard shortcuts

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