Debian Codegraph @

socketmode/event.go

raw symbols SCIP
1 package socketmode
2
3 import "encoding/json"
4
5 // Event is the event sent to the consumer of Client
6 type Event struct {
7 Type EventType
8 Data interface{}
9
10 // Request is the json-decoded raw WebSocket message that is received via the Slack Socket Mode
11 // WebSocket connection.
12 Request *Request
13 }
14
15 type ErrorBadMessage struct {
16 Cause error
17 Message json.RawMessage
18 }
19
20 type ErrorWriteFailed struct {
21 Cause error
22 Response *Response
23 }
24
25 type errorRequestedDisconnect struct {
26 }
27
28 func (e errorRequestedDisconnect) Error() string {
29 return "disconnection requested: Slack requested us to disconnect"
30 }