Documentation
¶
Index ¶
Constants ¶
View Source
const (
ProviderTypeSlack = "slack"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface {
Notify([]domain.Notification) []error
}
type Config ¶
type Config struct {
Provider string `mapstructure:"provider" validate:"omitempty,oneof=slack"`
// slack
AccessToken string `mapstructure:"access_token" validate:"required_without=Workspaces"`
Workspaces []slack.SlackWorkspace `mapstructure:"workspaces" validate:"required_without=AccessToken,dive"`
// custom messages
Messages domain.NotificationMessages
}
Click to show internal directories.
Click to hide internal directories.