Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlackWebhookChannel ¶
type SlackWebhookChannel struct {
*channels.BaseChannel
// contains filtered or unexported fields
}
SlackWebhookChannel is an output-only channel that sends messages to Slack via Incoming Webhooks using Block Kit formatting.
func NewSlackWebhookChannel ¶
func NewSlackWebhookChannel( bc *config.Channel, cfg *config.SlackWebhookSettings, bus *bus.MessageBus, ) (*SlackWebhookChannel, error)
NewSlackWebhookChannel creates a new Slack webhook channel.
func (*SlackWebhookChannel) Send ¶
func (c *SlackWebhookChannel) Send(ctx context.Context, msg bus.OutboundMessage) ([]string, error)
Send delivers a message to the specified Slack webhook target.
Click to show internal directories.
Click to hide internal directories.