Documentation
¶
Overview ¶
Package slack is a Slack incoming-webhook sink. One webhook URL per channel — the publisher picks the right sink instance for the channel it wants to post to.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
WebhookURL string
HTTPClient *http.Client // optional; nil uses http.DefaultClient
}
Config holds the per-channel webhook URL.
type Recipient ¶
type Recipient struct{}
Recipient is unused but kept to satisfy the typed-recipient pattern; the channel is determined by the webhook URL itself. Callers may pass nil.
type Sink ¶
type Sink struct {
// contains filtered or unexported fields
}
Sink posts to the configured Slack webhook URL.
func (*Sink) DecodeRecipient ¶
DecodeRecipient is a no-op for slack — the channel is fixed by the webhook URL, so Recipient is always the zero value.
Click to show internal directories.
Click to hide internal directories.