command

package
v0.0.0-...-c05ea37 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	Handle(args *model.CommandArgs) (*model.CommandResponse, error)
	// contains filtered or unexported methods
}

func NewCommandHandler

func NewCommandHandler(client *pluginapi.Client) Command

Register all your slash commands in the NewCommandHandler function.

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func (*Handler) Handle

func (c *Handler) Handle(args *model.CommandArgs) (*model.CommandResponse, error)

ExecuteCommand hook calls this method to execute the commands that were registered in the NewCommandHandler function.

Directories

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

Jump to

Keyboard shortcuts

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