command

package
Version: v0.0.0-...-d462298 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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 {
	SL          sl.SL
	ConfigStore config.Store
	Context     *plugin.Context
	Args        *model.CommandArgs
	ChannelID   string
	// contains filtered or unexported fields
}

Command handles commands

func (*Command) Handle

func (c *Command) Handle() (out md.MD, err error)

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