Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlackEvent ¶
type SlackEvent struct { EnvelopeId string `json:"envelope_id"` Type string `json:"type"` AcceptsResponsePayload bool `json:"accepts_response_payload"` Payload struct { ApiAppID string `json:"api_app_id"` EventID string `json:"event_id"` EventTime int `json:"event_time"` Token string `json:"token"` TeamID string `json:"team_id"` Type string `json:"type"` IsExtSharedChannel bool `json:"is_ext_shared_channel"` Event struct { Type string `json:"type"` Channel struct { ID string `json:"id"` IsChannel bool `json:"is_channel"` IsMPIM bool `json:"is_mpim"` Name string `json:"name"` NameNormalized string `json:"name_normalized"` Created int `json:"created"` } `json:"channel"` } `json:"event"` Authorizations []struct { EnterpriseID string `json:"enterprise_id"` TeamID string `json:"team_id"` UserID string `json:"user_id"` IsBot bool `json:"is_bot"` IsEnterpriseInstall bool `json:"is_enterprise_install"` } `json:"authorizations"` } `json:"payload"` RetryAttempt int `json:"retry_attempt"` RetryReason string `json:"retry_reason"` }
type SlackEventAcknowledge ¶
type SlackEventAcknowledge struct {
EnvelopeId string `json:"envelope_id"`
}
type SlackOpenSocketResponse ¶
type SlackSocketDisconnect ¶
type SlackSocketHello ¶
type SlackSocketHello struct { Type string `json:"type"` NumConnections int `json:"num_connections"` DebugInfo struct { Host string `json:"host"` BuildNumber int `json:"build_number"` ApproximateConnectionTime int `json:"approximate_connection_time"` } `json:"debug_info"` ConnectionInfo struct { AppID string `json:"app_id"` } `json:"connection_info"` }
type SlackSocketMessage ¶
type SlackSocketMessage struct {
Type string `json:"type"`
}
type SlackWorker ¶
type SlackWorker struct {
// contains filtered or unexported fields
}
func NewSlackWorker ¶
func NewSlackWorker() (*SlackWorker, error)
func (*SlackWorker) DoWork ¶
func (worker *SlackWorker) DoWork()
Click to show internal directories.
Click to hide internal directories.