Documentation ¶
Index ¶
- func FindChannelMentions(msg string) []string
- func FindEscapedUserAndChannelMentions(msg string) map[string][]string
- func FindUserMentions(msg string) []string
- func GetChannelInfo(channelId string) (*slack.Channel, error)
- func GetUserInfo(userId string) (*slack.User, error)
- func HandleChallengeEvent(body []byte) (string, error)
- func HandleSlashCommand(message string, userId string, db *sql.DB) (string, error)
- func LookupUserAndChannelNames(escapedUsers []string, escapedChannels []string) (map[string]string, error)
- func PostAckToSlack(channelID string, message string) error
- func UnescapeChannelId(escapedChannel string) string
- func UnescapeUserAndChannelMentions(msg string, userAndChannelNames map[string]string) string
- func UnescapeUserId(escapedUser string) string
- func ValidateRequestSignature(headers http.Header, body []byte, secret string) error
- func ValidateVerificationToken(requestToken string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindChannelMentions ¶
func FindUserMentions ¶
func HandleChallengeEvent ¶
func HandleSlashCommand ¶
func PostAckToSlack ¶
func UnescapeChannelId ¶
func UnescapeUserId ¶
func ValidateVerificationToken ¶
support for verification tokens is deprecated in Slack, but it's a quick way to add authorization
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.