Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseCommandLine ¶
func ParseCommandLine(ctx context.Context, group string, cmd *slack.SlashCommand) (interface{}, error)
ParseCommandLine pareses the command line and executes the appropriate handlers
func RegisterCmdHandler ¶
func RegisterCmdHandler(cmd, subcmd string, h CommandFunc)
RegisterCmdHandler adds a slash-cmd handler
func SlackCmdLnkk ¶
func SlackCmdLnkk(c *gin.Context, cmd *slack.SlashCommand) (*slack.SectionBlocks, error)
SlackCmdLnkk handles the /lnkk group of commands
Types ¶
type CommandFunc ¶
type CommandFunc func(ctx context.Context, cmd *slack.SlashCommand, cmdLn []string) (interface{}, error)
CommandFunc handles a command
Click to show internal directories.
Click to hide internal directories.