Documentation ¶
Index ¶
Constants ¶
View Source
const ( InitialReplyTimeout = 2 * time.Second MaxDelayedReplies = 5 DelayedReplyTimeout = 28 * time.Minute )
View Source
const ( ResponseTypeEphemeral = "ephemeral" ResponseTypeInChannel = "in_channel" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppOAuthCode ¶
type AppOAuthCode struct { Code string `json:"code"` ClientID string `json:"client_id"` ClientSecret string `json:"client_secret"` }
func (AppOAuthCode) GetToken ¶
func (c AppOAuthCode) GetToken() (*AppOAuthToken, error)
type AppOAuthToken ¶
type AppOAuthToken struct { AccessToken string `json:"access_token"` Scope string `json:"scope"` TeamName string `json:"team_name"` TeamID string `json:"team_id"` Bot BotOAuthToken `json:"bot"` }
type Attachment ¶
type BotOAuthToken ¶
type Command ¶
type Message ¶
type Message struct { Text string `json:"text"` ResponseType string `json:"response_type,omitempty"` Attachments []Attachment `json:"attachments,omitempty"` }
Click to show internal directories.
Click to hide internal directories.