Documentation
¶
Index ¶
- func LoadConfig(path string) error
- type AlertConfig
- type AwsIncidentManagerConfig
- type AzBusConfig
- type Config
- type EmailConfig
- type LarkConfig
- type MSTeamsConfig
- type OnCallConfig
- type PagerDutyConfig
- type ProxyConfig
- type PubSubConfig
- type QueueConfig
- type RedisConfig
- type SNSConfig
- type SQSConfig
- type SlackConfig
- type SlackMessageProperties
- type TelegramConfig
- type ViberConfig
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
Viber ViberConfig
Email EmailConfig
MSTeams MSTeamsConfig
Lark LarkConfig
}
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
Proxy ProxyConfig
Redis RedisConfig `mapstructure:"redis"`
}
type EmailConfig ¶
type LarkConfig ¶ added in v1.3.1
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
InitializedOnly bool `mapstructure:"initialized_only"` // Initialize infrastructure but don't enable by default
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 ProxyConfig ¶ added in v1.3.7
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 ¶
type SlackConfig struct {
Enable bool
Token string
ChannelID string `mapstructure:"channel_id"`
TemplatePath string `mapstructure:"template_path"`
MessageProperties SlackMessageProperties `mapstructure:"message_properties"`
}
type SlackMessageProperties ¶ added in v1.3.3
type TelegramConfig ¶
type ViberConfig ¶ added in v1.3.7
type ViberConfig struct {
Enable bool
APIType string `mapstructure:"api_type"` // "bot" or "channel" - defaults to "channel"
// Bot API configuration
BotToken string `mapstructure:"bot_token"`
UserID string `mapstructure:"user_id"`
TemplatePath string `mapstructure:"template_path"`
// Channel configuration for Channels Post API
ChannelID string `mapstructure:"channel_id"`
UseProxy bool `mapstructure:"use_proxy"`
}
Click to show internal directories.
Click to hide internal directories.