Documentation
¶
Index ¶
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 AwsIncidentManagerConfig ¶
type AwsIncidentManagerConfig struct {
ResponsePlanArn string `mapstructure:"response_plan_arn"`
}
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"`
OtherPowerURL map[string]string `mapstructure:"other_power_url"` // 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"`
AwsIncidentManager AwsIncidentManagerConfig `mapstructure:"aws_incident_manager"`
}
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.