Documentation
¶
Overview ¶
Package slack implements the Slack platform integration.
Index ¶
- Constants
- func NewDriver(_ *config.Type, _ store.Adapter) protocol.Driver
- type Action
- func (*Action) CreateChannel(_ protocol.Request) protocol.Response
- func (a *Action) DeleteMessage(req protocol.Request) protocol.Response
- func (*Action) GetChannelInfo(_ protocol.Request) protocol.Response
- func (*Action) GetChannelList(_ protocol.Request) protocol.Response
- func (*Action) GetLatestEvents(_ protocol.Request) protocol.Response
- func (*Action) GetStatus(_ protocol.Request) protocol.Response
- func (*Action) GetSupportedActions(_ protocol.Request) protocol.Response
- func (*Action) GetUserInfo(_ protocol.Request) protocol.Response
- func (*Action) GetVersion(_ protocol.Request) protocol.Response
- func (*Action) RegisterChannels(_ protocol.Request) protocol.Response
- func (*Action) RegisterSlashCommands(_ protocol.Request) protocol.Response
- func (a *Action) SendMessage(req protocol.Request) protocol.Response
- func (a *Action) SendStatusMessage(channel, statusText string) (string, error)
- func (a *Action) UpdateMessage(req protocol.Request) protocol.Response
- type ActionCardDef
- type Adapter
- type ButtonDef
- type Driver
- type FormFieldDef
Constants ¶
View Source
const ID = "slack"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
type Action struct {
// contains filtered or unexported fields
}
func (*Action) DeleteMessage ¶ added in v0.92.0
DeleteMessage deletes an existing message.
func (*Action) GetLatestEvents ¶
func (*Action) GetSupportedActions ¶
func (*Action) RegisterChannels ¶
func (*Action) RegisterSlashCommands ¶
func (*Action) SendStatusMessage ¶ added in v0.92.0
SendStatusMessage posts a temporary status/thinking indicator and returns the message timestamp so it can later be updated with the final result.
type ActionCardDef ¶ added in v0.92.0
type ActionCardDef struct {
Title string
Description string
Fields map[string]string // key-value fields displayed in the card
ImageURL string // optional thumbnail
Buttons []ButtonDef
}
ActionCardDef describes a rich action card.
type ButtonDef ¶ added in v0.92.0
type ButtonDef struct {
Text string
ActionID string
Value string
Style slack.Style // slack.StylePrimary or slack.StyleDanger
URL string
Confirm *slack.ConfirmationBlockObject
}
ButtonDef describes a button for actionButtons.
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func (*Driver) WebSocketClient ¶
func (d *Driver) WebSocketClient()
func (*Driver) WebSocketServer ¶
func (*Driver) WebSocketServer()
Click to show internal directories.
Click to hide internal directories.