Documentation
¶
Overview ¶
Package slack is a Cloud Function which receives a query from a Slack command and responds with the KG API result.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type DetailedDesc ¶
type EntitySearchResult ¶
type EntitySearchResult struct {
Name string `json:"name"`
Description string `json:"description"`
DetailedDesc DetailedDesc `json:"detailedDescription"`
URL string `json:"url"`
Image Image
}
type ItemList ¶
type ItemList struct {
Items []ItemListElement `json:"itemListElement"`
}
type ItemListElement ¶
type ItemListElement struct {
Result EntitySearchResult `json:"result"`
}
type Message ¶
type Message struct {
ResponseType string `json:"response_type"`
Text string `json:"text"`
Attachments []Attachment `json:"attachments"`
}
Message is the a Slack message event. see https://api.slack.com/docs/message-formatting
Click to show internal directories.
Click to hide internal directories.