slack

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// Invoker is the command invoker
	Invoker invoker.Invoker
	// HTTPClient is the http client used to send the message
	HTTPClient *http.Client

	// Command is the filesystem path of the command to execute
	Command string
	// Timeout is the timeout for the command handler
	Timeout time.Duration
	// VerificationToken is the token used to verify the request
	VerificationToken string
	// contains filtered or unexported fields
}

Handler is the structure representing the slack slash command handler

func New

func New(invoker invoker.Invoker, httpClient *http.Client, logger *logrus.Logger, command string, timeout time.Duration, verificationToken string) *Handler

New returns a new Handler

func (*Handler) Handler

func (h *Handler) Handler() func(c echo.Context) error

Handle is the function that handles the slack slash command

Jump to

Keyboard shortcuts

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