slack

package
v0.0.0-...-7b1381d Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg *Config, conn *grpc.ClientConn) http.Handler

New returns a mux that serve slack interactive commands at `/interactive` and slash commands at `/slashcommand`. The mux performs slack signing verification per https://api.slack.com/authentication/verifying-requests-from-slack

Types

type Config

type Config struct {
	// Oauth token issued by slack
	Token string
	// SigningSecret issued by slack for verification of incoming messages
	SigningSecret string
	// ClientID / ClientSecret for internal comms with Rver
	ClientID, ClientSecret string
}

Config encapsulates all of the slack concerns; all arguments are required

Jump to

Keyboard shortcuts

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