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
Click to show internal directories.
Click to hide internal directories.