handler

package
v0.0.0-...-ab3fbb8 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallbackHandler

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

func NewCallbackHandler

func NewCallbackHandler(cfg *CallbackHandlerConfig) (*CallbackHandler, error)

func (*CallbackHandler) ServeHTTP

func (h *CallbackHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type IndexHandler

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

func NewIndexHandler

func NewIndexHandler(cfg *IndexHandlerConfig) (*IndexHandler, error)

func (*IndexHandler) ServeHTTP

func (h *IndexHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type NotifyHandler

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

func NewNotifyHandler

func NewNotifyHandler(cfg *NotifyHandlerConfig) (*NotifyHandler, error)

func (*NotifyHandler) ServeHTTP

func (h *NotifyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type SlashCommandHandler

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

func NewSlashCommandHandler

func NewSlashCommandHandler(cfg *SlashCommandHandlerConfig) (*SlashCommandHandler, error)

func (*SlashCommandHandler) Handle

func (h *SlashCommandHandler) Handle(ctx context.Context, slash *slack.SlashCommand) (string, error)

type SlashHandler

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

func NewSlashHandler

func NewSlashHandler(cfg *SlashHandlerConfig) (*SlashHandler, error)

func (*SlashHandler) ServeHTTP

func (h *SlashHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type SlashHandlerConfig

type SlashHandlerConfig struct {
	repository.SlackSigningSecretGetter
	service.LambdaInvoker
	SlashFunctionName string
}

Jump to

Keyboard shortcuts

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