Documentation
¶
Overview ¶
Package slacknotify provides Slack webhook integration for workflows. It lets workflows send Slack messages via incoming webhooks, and exposes HTTP CRUD routes for managing Slack configs (tenant-scoped).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
SlackSigningSecret string `json:"slack_signing_secret,omitempty"`
}
Config holds optional configuration for the slack-notify plugin.
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin implements Slack webhook message sending for workflows.
func (*Plugin) Info ¶
func (p *Plugin) Info() plugin.PluginInfo
Info returns plugin metadata for discovery and documentation.
func (*Plugin) Init ¶
Init initializes the plugin with the given environment. It creates an HTTP client with a 10-second timeout for Slack webhook requests.
func (*Plugin) Migrations ¶
Migrations returns the database schema for Slack config storage. Tables are idempotent (IF NOT EXISTS) and safe to run multiple times.
func (*Plugin) RegisterHostFunctions ¶
func (p *Plugin) RegisterHostFunctions(scope plugin.FuncRegistry) error
RegisterHostFunctions registers workflow-callable functions on the scoped function registry. The plugin name is implicit -- each plugin gets its own scope, so function names need not be globally unique.