Documentation ¶
Index ¶
- func NewSlackInput(msg *slackevents.MessageEvent, text string) *cmd.CommandInput
- func NewSlackInputFromAppMention(msg *slackevents.AppMentionEvent, text string) *cmd.CommandInput
- func SlackListener(smc *socketmode.Client, commandQueue chan *cmd.CommandInput, cfg Config)
- func SlackWriter(smc *socketmode.Client, outputQueue chan *cmd.CommandOutput)
- type Config
- type ReplyConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSlackInput ¶
func NewSlackInput(msg *slackevents.MessageEvent, text string) *cmd.CommandInput
NewSlackInput はSlackの入力を元にpubsub.Inputを返す
func NewSlackInputFromAppMention ¶
func NewSlackInputFromAppMention(msg *slackevents.AppMentionEvent, text string) *cmd.CommandInput
NewSlackInputFromAppMention はAppMentionEventを元にpubsub.Inputを返す
func SlackListener ¶
func SlackListener(smc *socketmode.Client, commandQueue chan *cmd.CommandInput, cfg Config)
SlackListener はSocket Modeでメッセージ監視し、コマンドをcommandQueueに投げます。
func SlackWriter ¶
func SlackWriter(smc *socketmode.Client, outputQueue chan *cmd.CommandOutput)
SlackWriter はoutputQueueから来たコマンド実行結果をSlackに書き込みます
Types ¶
Click to show internal directories.
Click to hide internal directories.