Documentation
¶
Index ¶
Constants ¶
View Source
const (
ProviderTypeSlack = "slack"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Provider string `mapstructure:"provider" validate:"omitempty,oneof=slack"`
// slack
AccessToken string `mapstructure:"access_token" validate:"required_without=SlackConfig"`
SlackConfig SlackConfig `mapstructure:"slack_config" validate:"required_without=AccessToken,dive"`
TimeoutInSeconds int `mapstructure:"timeout_in_seconds"`
MaxRetryCount int `mapstructure:"max_retry_count"`
// custom messages
Messages domain.NotificationMessages
}
type SlackConfig ¶ added in v0.7.6
type SlackConfig map[string]interface{}
SlackConfig is a map of workspace name to config
func (SlackConfig) Decode ¶ added in v0.7.6
func (c SlackConfig) Decode(v interface{}) error
Click to show internal directories.
Click to hide internal directories.