Expand description
Slack plugin for autumn-web.
- Inbound: signature-checked Events API, slash commands, and interactivity
routes. Handlers by event type, command,
action_id, orcallback_id. - Outbound: a Web API client with retry rules, and
response_urlreplies. - Operations: health indicator, Prometheus metrics, drain on shutdown.
See the README for setup.
Re-exports§
pub use config::SlackConfig;
Modules§
- config
[slack]configuration.- payload
- Typed Slack payloads and replies.
- policy
- Pure policy core. Verified with Verus in
verus/policy.rs. - testing
- Helpers for app tests.
- transport
- HTTP transport. Only this module does network I/O.
Structs§
- Auth
Test - Result of
auth.test. - Message
Ref - Where a message is: channel and timestamp.
- Slack
Client - Slack Web API client. A clone shares one connection pool.
- Slack
Context - What a handler gets besides the payload.
- Slack
Health - Checks the bot token with
auth.test. - Slack
Metrics - Plugin metrics. Also a
MetricsSource. - Slack
Plugin - Slack plugin.
- Slack
Runtime - A started plugin.
- Verifier
- Checks Slack signatures. Holds the current and the previous secrets.
Enums§
- Slack
Error - Plugin and client errors. Messages never hold a token or a secret.
- Verify
Error - Why a request failed verification.
Constants§
- DEFAULT_
BASE_ PATH - Default base path of the Slack routes.
- PLUGIN_
NAME - Plugin name for duplicate detection.
- SIGNATURE_
HEADER - Header with the signature.
- TIMESTAMP_
HEADER - Header with the request timestamp (Unix seconds).
Type Aliases§
- Handler
Error - Error from a handler. Any error type converts with
?. - Handler
Result - Result of a handler.