Documentation
¶
Overview ¶
Package webhook registers the inbound-only webhook channel.
Unlike the bot channels (telegram/feishu/…), the webhook channel has no long-running runtime: it is a plain channel type whose ingress is an HTTP endpoint (POST /webhooks/{id}) served by internal/server. This plugin exists only to provide the admin config schema + validation and to make "webhook" a selectable channel type; it registers no runtime, so ApplyChannel is a no-op for webhook instances.
Index ¶
Constants ¶
View Source
const PluginID = "channel/webhook"
Variables ¶
This section is empty.
Functions ¶
func DecodeConfig ¶
func DecodeConfig(raw map[string]any) (pkgchannel.WebhookConfig, error)
DecodeConfig parses the persisted webhook channel config.
func RedactConfig ¶
RedactConfig has nothing secret to hide (auth is via the caller's PAT, not a stored token), so it returns the config unchanged.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.