middleware

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Subcommands subcommands = map[string]string{}
)

Functions

func MiddlewareSet

MiddlewareSet gather Middlewares and return SocketmodeHandlerFunc

Types

type Command

type Command struct {
	Prefixes []string
	URL      string
}

func RegisterCommand

func RegisterCommand(prefixes ...string) *Command

func (Command) WithURL

func (m Command) WithURL(url string) *Command

type Middleware

type Middleware interface {
	Handle(next socketmode.SocketmodeHandlerFunc) socketmode.SocketmodeHandlerFunc
}

Jump to

Keyboard shortcuts

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