Documentation
¶
Index ¶
- func LoadConfig(path string) error
- type AlertConfig
- type AwsIncidentManagerConfig
- type AzBusConfig
- type Config
- type EmailConfig
- type MSTeamsConfig
- type OnCallConfig
- type PagerDutyConfig
- type PubSubConfig
- type QueueConfig
- type RedisConfig
- type SNSConfig
- type SQSConfig
- type SlackConfig
- type TelegramConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
Types ¶
type AlertConfig ¶
type AlertConfig struct {
DebugBody bool `mapstructure:"debug_body"`
Slack SlackConfig
Telegram TelegramConfig
Email EmailConfig
MSTeams MSTeamsConfig
}
type AzBusConfig ¶
type AzBusConfig struct {
Enable bool `mapstructure:"enable"`
}
type Config ¶
type Config struct {
Name string
Host string
Port int
PublicHost string `mapstructure:"public_host"`
Alert AlertConfig
Queue QueueConfig
OnCall OnCallConfig
Redis RedisConfig `mapstructure:"redis"`
}
type EmailConfig ¶
type MSTeamsConfig ¶
type MSTeamsConfig struct {
Enable bool
TemplatePath string `mapstructure:"template_path"`
OtherPowerURLs map[string]string `mapstructure:"other_power_urls"` // Optional alternative Power Automate URLs
// Power Automate Workflow URL for Teams integration
PowerAutomateURL string `mapstructure:"power_automate_url"`
}
type OnCallConfig ¶
type OnCallConfig struct {
Enable bool
WaitMinutes int `mapstructure:"wait_minutes"`
Provider string `mapstructure:"provider"` // "aws_incident_manager" or "pagerduty"
AwsIncidentManager AwsIncidentManagerConfig `mapstructure:"aws_incident_manager"`
PagerDuty PagerDutyConfig `mapstructure:"pagerduty"`
}
type PagerDutyConfig ¶ added in v1.3.0
type PubSubConfig ¶
type PubSubConfig struct {
Enable bool `mapstructure:"enable"`
}
type QueueConfig ¶
type QueueConfig struct {
Enable bool `mapstructure:"enable"`
DebugBody bool `mapstructure:"debug_body"`
SNS SNSConfig `mapstructure:"sns"`
SQS SQSConfig `mapstructure:"sqs"`
PubSub PubSubConfig `mapstructure:"pubsub"`
AzBus AzBusConfig `mapstructure:"azbus"`
}
type RedisConfig ¶
type SlackConfig ¶
Click to show internal directories.
Click to hide internal directories.