Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSlackClient ¶
func NewSlackClient(notifications *SlackNotifications) *slackClient
Types ¶
type SlackClient ¶
type SlackClient interface {
// Use repo-specific channel, if exists
NotifyForRepo(ctx context.Context, repo, message string)
// Use default channel
Notify(ctx context.Context, message string)
}
type SlackNotifications ¶
type SlackNotifications struct {
DefaultUrl string `yaml:"default_url" json:"defaultUrl"`
RepoUrls map[string]string `yaml:"repo_urls" json:"repoUrls"`
}
Click to show internal directories.
Click to hide internal directories.