slack

package
v0.0.0-...-9ce0b8c Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateViewSubmitResponse

func CreateViewSubmitResponse(update *slack.ViewState) *slack.ViewSubmissionResponse

func DefaultHandler

func DefaultHandler(c echo.Context) error

func GetLists

func GetLists(slackCommand SlackCommand, log *zap.SugaredLogger, store store.MemoryStore) *slack.Msg

func HandleList

func HandleList(slackCommand SlackCommand, log *zap.SugaredLogger, store store.MemoryStore) *slack.Msg

func HoppaHandler

func HoppaHandler(c echo.Context) error

func InteractiveHandler

func InteractiveHandler(c echo.Context) error

func NewListView

func NewListView() *slack.ModalViewRequest

func SendCreateView

func SendCreateView(triggerId string, view *slack.ModalViewRequest, apiToken string) error

func SendListResponse

func SendListResponse(responseUrl string, list remember.MediaList, apiToken string, botId string) (*http.Response, error)

Types

type SlackCommand

type SlackCommand struct {
	Command       string
	Text          string
	TokenizedText []string
	UserId        string
	UserName      string
	Team          string
}

Jump to

Keyboard shortcuts

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