Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*SlackOutput)
Option configures SlackOutput.
func WithEventTypes ¶
WithEventTypes sets the enabled event types.
func WithHTTPClient ¶
WithHTTPClient sets the HTTP client used to deliver messages.
func WithMaxRetries ¶
WithMaxRetries sets zero to three retries after the first delivery attempt.
func WithWebhookURLs ¶
WithWebhookURLs sets the Slack destinations. Each URL carries its own authentication secret.
type SlackOutput ¶
SlackOutput delivers selected Adder events to Slack incoming webhooks.
func New ¶
func New(options ...Option) *SlackOutput
New builds a Slack output. Plugin configuration validates URLs and event names.
func (*SlackOutput) Role ¶
func (s *SlackOutput) Role() plugin.PluginType
Role identifies this plugin as a pipeline output.
func (*SlackOutput) Start ¶
func (s *SlackOutput) Start() error
Start begins delivery using a background worker.
func (*SlackOutput) StartContext ¶
func (s *SlackOutput) StartContext(ctx context.Context) error
StartContext starts the output under ctx.
func (*SlackOutput) Stop ¶
func (s *SlackOutput) Stop() error
Stop waits for the delivery worker to exit.