command

package
v0.0.0-...-d1f9358 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSlashCommand

func GetSlashCommand() *model.Command

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

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL