Documentation
¶
Index ¶
- func ComputeSha256HMAC(message, key []byte) string
- func DecodePayloadBody(body []byte) ([]byte, error)
- func FindTemplate(templates *template.Template, args ...string) (*template.Template, []string)
- func GetAbsoluteFilePath(file string) string
- func ParseArgs(args []string) map[string]interface{}
- func SendResponseURL(url string, body []byte) (int, []byte, error)
- func StripSlackUsers(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeSha256HMAC ¶
func DecodePayloadBody ¶
func FindTemplate ¶
FindTemplate takes in arguments, attempts to find the associated template, and returns the args that followed the template. Example: input is 'describe mounts mount 123' and template 'describe_mounts.tpl' is found, that template is returned along with the left over arguments []string{ "mount", "123" }
func GetAbsoluteFilePath ¶
func SendResponseURL ¶
SendResponseURL sends the provided message as the POST body
func StripSlackUsers ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.