Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PostLock sync.RWMutex
PostLock is the complement for the global PostMap to ensure concurrent access doesn't race
View Source
var PostMap map[string]string
PostMap is a global map to handle callbacks depending on the provided user This mapping stores off the userID to reply to
Functions ¶
This section is empty.
Types ¶
type Slack ¶
type Slack struct { Name string Token string User string UserID string Logger *log.Logger Client *slack.Client }
Slack is the primary struct for our slackbot
func (*Slack) NewHandler ¶
NewHandler instantiaties the web handler for listening on the API
Click to show internal directories.
Click to hide internal directories.