command

package
v0.0.0-...-2cccd0f Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PostIDDoesNotExist = "PostIDDoesNotExist"
	PostIDExists       = "ID2"
	UserID             = "UserID"
)

Variables

This section is empty.

Functions

func Register

func Register(registerFunc RegisterFunc)

Register should be called by the plugin to register all necessary commands

Types

type Command

type Command struct {
	Context   *plugin.Context
	Args      *model.CommandArgs
	ChannelID string
	API       pluginapi.API
}

Handler handles commands

func (*Command) Handle

func (c *Command) Handle() string

Handle should be called by the plugin when a command invocation is received from the Mattermost server.

type RegisterFunc

type RegisterFunc func(*model.Command) error

RegisterFunc is a function that allows the runner to register commands with the mattermost server.

Jump to

Keyboard shortcuts

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