Documentation
¶
Overview ¶
Package slack is the gateway's Slack channel adapter. It uses Socket Mode (an outbound websocket, no public inbound URL needed) via the slack-go SDK, kept isolated to this package (guarded by TestVendorSDKsOnlyInTheirAdapters). The user creates a Slack app with an app-level token (xapp-…, Socket Mode) and a bot token (xoxb-…), storing them in the global .env as SLACK_APP_TOKEN and SLACK_BOT_TOKEN.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
Channel is a Slack Socket Mode connection.
func New ¶
New builds a Slack channel from an app-level token (Socket Mode) and a bot token (Web API for posting replies).
Click to show internal directories.
Click to hide internal directories.