mirror of
https://github.com/42wim/matterbridge.git
synced 2025-01-22 14:59:09 -08:00
31 lines
602 B
Go
31 lines
602 B
Go
package socketmode
|
|
|
|
import "encoding/json"
|
|
|
|
// Event is the event sent to the consumer of Client
|
|
type Event struct {
|
|
Type EventType
|
|
Data interface{}
|
|
|
|
// Request is the json-decoded raw WebSocket message that is received via the Slack Socket Mode
|
|
// WebSocket connection.
|
|
Request *Request
|
|
}
|
|
|
|
type ErrorBadMessage struct {
|
|
Cause error
|
|
Message json.RawMessage
|
|
}
|
|
|
|
type ErrorWriteFailed struct {
|
|
Cause error
|
|
Response *Response
|
|
}
|
|
|
|
type errorRequestedDisconnect struct {
|
|
}
|
|
|
|
func (e errorRequestedDisconnect) Error() string {
|
|
return "disconnection requested: Slack requested us to disconnect"
|
|
}
|