Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mock ¶
Mock sender is used for testing procjon server.
func (*Mock) SendAvailability ¶
SendAvailability sends availability to Availability channel formatted as "service available", eg. "redis false". It also logs service and availability to testing.T.
func (*Mock) SendStatus ¶
SendStatus sends status to Status channel formatted as "service status", eg. "redis ok". It also logs service and status to testing.T.
type Slack ¶
type Slack struct {
Webhook string
}
Slack should be initialized with valid webhook for posting messages. See https://api.slack.com/messaging/webhooks for instructions on how to setup incoming webhooks.
func (*Slack) SendAvailability ¶
SendAvailability nicely formatted to Slack webhook.
func (*Slack) SendStatus ¶
SendStatus nicely formatted to Slack webhook.
Click to show internal directories.
Click to hide internal directories.