slackbot

package module
v0.0.0-...-9cf8194 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 10 Imported by: 0

README

slackbot

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionID

type ActionID string

type BlockID

type BlockID string

type BotToken

type BotToken string

type CallbackID

type CallbackID string

func GetCallbackID

func GetCallbackID(message slack.InteractionCallback) CallbackID

type CreateInteractionsHandlerOption

type CreateInteractionsHandlerOption interface {
	Apply(InteractionCallbackFunctionMap)
}

type InteractionCallbackFunction

type InteractionCallbackFunction func(m *slack.InteractionCallback) error

type InteractionCallbackFunctionMap

type InteractionCallbackFunctionMap map[slack.InteractionType][]InteractionCallbackFunction

type InteractionFunctionBlockActionsStruct

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

func InteractionFunctionBlockActions

func InteractionFunctionBlockActions(
	f ...InteractionCallbackFunction,
) InteractionFunctionBlockActionsStruct

InteractionFunctionBlockActions set callback functions for BlockActions.

func (InteractionFunctionBlockActionsStruct) Apply

type InteractionFunctionBlockSuggestionStruct

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

func InteractionFunctionBlockSuggestion

func InteractionFunctionBlockSuggestion(
	f ...InteractionCallbackFunction,
) InteractionFunctionBlockSuggestionStruct

InteractionFunctionBlockSuggestion set callback functions for BlockSuggestion.

func (InteractionFunctionBlockSuggestionStruct) Apply

type InteractionFunctionDialogCancellationStruct

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

func InteractionFunctionDialogCancellation

func InteractionFunctionDialogCancellation(
	f ...InteractionCallbackFunction,
) InteractionFunctionDialogCancellationStruct

InteractionFunctionDialogCancellation set callback functions for DialogCancellation.

func (InteractionFunctionDialogCancellationStruct) Apply

type InteractionFunctionDialogSubmissionStruct

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

func InteractionFunctionDialogSubmission

func InteractionFunctionDialogSubmission(
	f ...InteractionCallbackFunction,
) InteractionFunctionDialogSubmissionStruct

InteractionFunctionDialogSubmission set callback functions for DialogSubmission.

func (InteractionFunctionDialogSubmissionStruct) Apply

type InteractionFunctionDialogSuggestionStruct

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

func InteractionFunctionDialogSuggestion

func InteractionFunctionDialogSuggestion(
	f ...InteractionCallbackFunction,
) InteractionFunctionDialogSuggestionStruct

InteractionFunctionDialogSuggestion set callback functions for DialogSuggestion.

func (InteractionFunctionDialogSuggestionStruct) Apply

type InteractionFunctionInteractionMessageStruct

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

func InteractionFunctionInteractionMessage

func InteractionFunctionInteractionMessage(
	f ...InteractionCallbackFunction,
) InteractionFunctionInteractionMessageStruct

InteractionFunctionInteractionMessage set callback functions for InteractionMessage.

func (InteractionFunctionInteractionMessageStruct) Apply

type InteractionFunctionMessageActionStruct

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

func InteractionFunctionMessageAction

func InteractionFunctionMessageAction(
	f ...InteractionCallbackFunction,
) InteractionFunctionMessageActionStruct

InteractionFunctionMessageAction set callback functions for MessageAction.

func (InteractionFunctionMessageActionStruct) Apply

type InteractionFunctionShortcutStruct

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

func InteractionFunctionShortcut

func InteractionFunctionShortcut(
	f ...InteractionCallbackFunction,
) InteractionFunctionShortcutStruct

InteractionFunctionShortcut set callback functions for Shortcut.

func (InteractionFunctionShortcutStruct) Apply

type InteractionFunctionViewClosedStruct

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

func InteractionFunctionViewClosed

func InteractionFunctionViewClosed(
	f ...InteractionCallbackFunction,
) InteractionFunctionViewClosedStruct

InteractionFunctionViewClosed set callback functions for ViewClosed.

func (InteractionFunctionViewClosedStruct) Apply

type InteractionFunctionViewSubmissionStruct

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

func InteractionFunctionViewSubmission

func InteractionFunctionViewSubmission(
	f ...InteractionCallbackFunction,
) InteractionFunctionViewSubmissionStruct

InteractionFunctionViewSubmission set callback functions for ViewSubmission.

func (InteractionFunctionViewSubmissionStruct) Apply

type InteractionFunctionWorkflowStepEditStruct

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

func InteractionFunctionWorkflowStepEdit

func InteractionFunctionWorkflowStepEdit(
	f ...InteractionCallbackFunction,
) InteractionFunctionWorkflowStepEditStruct

InteractionFunctionWorkflowStepEdit set callback functions for WorkflowStepEdit.

func (InteractionFunctionWorkflowStepEditStruct) Apply

type InteractionsHandler

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

func CreateInteractionsHandler

func CreateInteractionsHandler(options ...CreateInteractionsHandlerOption) *InteractionsHandler

func (*InteractionsHandler) ServeHTTP

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

type Middleware

type Middleware = func(next http.Handler) http.Handler

func NewSecretsVerifierMiddleware

func NewSecretsVerifierMiddleware(secret SigningSecret) Middleware

type SecretsVerifierMiddleware

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

func (*SecretsVerifierMiddleware) ServeHTTP

type SigningSecret

type SigningSecret string

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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