Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
LoadConfig reads encrypted configuration from file or environment variables. SOPS guide: https://blog.gitguardian.com/a-comprehensive-guide-to-sops/
Types ¶
type Config ¶
type Config struct { V *viper.Viper L *logrus.Logger AmbariOpgenieMapping map[int]string AlertClient *alert.Client }
A Config specifies the configuration for alerts.
func (*Config) ConfigLogger ¶
func (c *Config) ConfigLogger()
ConfigLogger configures the Logrus logger (timestamp+loglevel).
Click to show internal directories.
Click to hide internal directories.