Versions in this module Expand all Collapse all v0 v0.0.1 Aug 4, 2025 Changes in this version + var ErrUnauthorized = fmt.Errorf("unauthorized") + func GetSlashCommand(c *gin.Context) (slack.SlashCommand, bool) + func Middleware(secret string, optFns ...Option) gin.HandlerFunc + type Logger interface + ErrorContext func(ctx context.Context, msg string, args ...any) + InfoContext func(ctx context.Context, msg string, args ...any) + WarnContext func(ctx context.Context, msg string, args ...any) + type Option func(*Options) + func WithCommand(command string) Option + func WithLogger(l Logger) Option + func WithVerifier(v Verifier) Option + type Options struct + Command string + Logger Logger + Verifier Verifier + type SlackVerifier struct + func NewVerifier(secret string) *SlackVerifier + func (s *SlackVerifier) Verify(req *http.Request) (slack.SlashCommand, error) + type Verifier interface + Verify func(*http.Request) (slack.SlashCommand, error)