Documentation
¶
Overview ¶
Package slack provides a Herald driver for Slack chat delivery.
It supports two modes:
- Incoming webhook: set "webhook_url" credential
- Web API (chat.postMessage): set "bot_token" and "channel" credentials
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct{}
Driver delivers messages to Slack channels.
func (*Driver) Fields ¶
Fields describes what the Slack driver reads. It posts either through an incoming webhook or through the API with a bot token and a channel; the schema can't express "one of", so nothing is required here and Validate enforces the pairing.
func (*Driver) Send ¶
func (d *Driver) Send(ctx context.Context, msg *driver.OutboundMessage) (*driver.DeliveryResult, error)
Click to show internal directories.
Click to hide internal directories.