webhook

package
v0.60.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

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

func RedactConfig(raw map[string]any) map[string]any

RedactConfig has nothing secret to hide (auth is via the caller's PAT, not a stored token), so it returns the config unchanged.

func Validate

func Validate(raw map[string]any) error

Validate is the plugin host validation hook.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL