command

package
v0.0.0-...-295118f Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandExecutor

type CommandExecutor interface {
	Execute(ctx context.Context, api *slack.Client, command *slack.SlashCommand, w http.ResponseWriter) error
}

func NewCommandExecutor

func NewCommandExecutor(s slack.SlashCommand) (CommandExecutor, error)

type EchoCommand

type EchoCommand struct {
}

func (*EchoCommand) Execute

func (e *EchoCommand) Execute(ctx context.Context, api *slack.Client, command *slack.SlashCommand, w http.ResponseWriter) error

type StChannel

type StChannel struct {
}

func (*StChannel) Execute

func (t *StChannel) Execute(ctx context.Context, api *slack.Client, command *slack.SlashCommand, w http.ResponseWriter) error

type StSettings

type StSettings struct {
}

func (*StSettings) Execute

func (t *StSettings) Execute(ctx context.Context, api *slack.Client, command *slack.SlashCommand, w http.ResponseWriter) error

type StToken

type StToken struct {
}

func (*StToken) Execute

func (t *StToken) Execute(ctx context.Context, api *slack.Client, command *slack.SlashCommand, w http.ResponseWriter) error

type TrackCommand

type TrackCommand struct {
	From string `mapstructure:"from"`
	To   string `mapstructure:"to"`
}

func (*TrackCommand) Execute

func (t *TrackCommand) Execute(ctx context.Context, api *slack.Client, command *slack.SlashCommand, w http.ResponseWriter) error

Jump to

Keyboard shortcuts

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