Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier interface { Initialize(context.Context) error Configure(map[string]interface{}) error Notify(string) error }
Notifier interface is the interface that all notifiers has to implement
func FromString ¶
FromString returns a `Check` parsed by a string
type SlackNotifier ¶
type SlackNotifier struct {
// contains filtered or unexported fields
}
SlackNotifier holds the configuration for an instance of slack notifier
func (*SlackNotifier) Configure ¶
func (notifier *SlackNotifier) Configure(config map[string]interface{}) error
Configure configures the slack notifier, it creates a new slack client and finds the channel ID by the configured channel name. It also verifies that the auth token is correct
func (*SlackNotifier) Initialize ¶
func (notifier *SlackNotifier) Initialize(ctx context.Context) error
Initialize initializes the slack notifier
func (*SlackNotifier) Notify ¶
func (notifier *SlackNotifier) Notify(msg string) error
Notify notifies tha slack channel with the given message
Click to show internal directories.
Click to hide internal directories.