config

package
v0.0.0-...-2b425f6 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 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 {
	MailgunConfig Mailgun `mapstructure:"mailgun,omitempty"`
	SlackConfig   Slack   `mapstructure:"slack,omitempty"`
	CronConfig    Cron    `mapstructure:"cron,omitempty"`
}

func LoadConfig

func LoadConfig() Config

type Cron

type Cron struct {
	CheckPeriod string `yaml:"checkPeriod,omitempty"`
}

type Mailgun

type Mailgun struct {
	Domain                  string   `yaml:"domain,omitempty"`
	APIKey                  string   `yaml:"apiKey,omitempty"`
	IgnoreEventTypes        []string `yaml:"ignoreEventTypes,omitempty"`
	IgnoreRecipientKeywords []string `yaml:"ignoreRecipientKeywords,omitempty"`
	IgnoreSubjectKeywords   []string `yaml:"ignoreSubjectKeywords,omitempty"`
	BounceAlerts            []string `yaml:"bounceAlerts,omitempty"`
}

type Slack

type Slack struct {
	Username         string `yaml:"username,omitempty"`
	ChannelGeneral   string `yaml:"channelGeneral,omitempty"`
	ChannelEmergency string `yaml:"channelEmergency,omitempty"`
	Webhook          string `yaml:"webhook,omitempty"`
	IconUrl          string `yaml:"iconUrl,omitempty"`
	FooterText       string `yaml:"footerText,omitempty"`
}

Jump to

Keyboard shortcuts

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