Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NOOPNotifier ¶
type NOOPNotifier struct{}
NOOPNotifier is a notifier that doesn't perform any notifications.
func (*NOOPNotifier) NotifyStatusChange ¶
func (n *NOOPNotifier) NotifyStatusChange(featureName string, status bool, environmentName string) error
NotifyStatusChange doesn't perform any operation and always returns nil.
type Notifier ¶
type Notifier interface { // NotifyStatusChange notifies a change in the status of a flag. NotifyStatusChange(feature string, status bool, environment string) error }
Notifier describes a notification sender.
func NewSlackNotifier ¶
NewSlackNotifier creates a new SlackNotifier.
type SlackNotifier ¶
type SlackNotifier struct {
// contains filtered or unexported fields
}
SlackNotifier is a notifier that send messages to Slack.
func (*SlackNotifier) NotifyStatusChange ¶
func (n *SlackNotifier) NotifyStatusChange(feature string, status bool, environment string) error
NotifyStatusChange notifies a change in the status of a flag.
Click to show internal directories.
Click to hide internal directories.