Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSlashCommand ¶
GetSlashCommand returns command to register
Types ¶
type Handler ¶
type Handler interface {
Handle(args ...string) (*model.CommandResponse, error)
}
Handler returns API for interacting with plugin commands
func NewHandler ¶
func NewHandler(args *model.CommandArgs, a anonymous.Anonymous) Handler
NewHandler returns new Handler with given dependencies
type HandlerFunc ¶
type HandlerFunc func(args ...string) (*model.CommandResponse, error)
HandlerFunc command handler function type
type HandlerMap ¶
type HandlerMap struct {
// contains filtered or unexported fields
}
HandlerMap map of command handler functions
Click to show internal directories.
Click to hide internal directories.