Debian Codegraph @

websocket_channels.go

raw symbols SCIP
1 package slack
2
3 // ChannelCreatedEvent represents the Channel created event
4 type ChannelCreatedEvent struct {
5 Type string `json:"type"`
6 Channel ChannelCreatedInfo `json:"channel"`
7 EventTimestamp string `json:"event_ts"`
8 }
9
10 // ChannelCreatedInfo represents the information associated with the Channel created event
11 type ChannelCreatedInfo struct {
12 ID string `json:"id"`
13 IsChannel bool `json:"is_channel"`
14 Name string `json:"name"`
15 Created int `json:"created"`
16 Creator string `json:"creator"`
17 }
18
19 // ChannelJoinedEvent represents the Channel joined event
20 type ChannelJoinedEvent struct {
21 Type string `json:"type"`
22 Channel Channel `json:"channel"`
23 }
24
25 // ChannelInfoEvent represents the Channel info event
26 type ChannelInfoEvent struct {
27 // channel_left
28 // channel_deleted
29 // channel_archive
30 // channel_unarchive
31 Type string `json:"type"`
32 Channel string `json:"channel"`
33 User string `json:"user,omitempty"`
34 Timestamp string `json:"ts,omitempty"`
35 }
36
37 // ChannelRenameEvent represents the Channel rename event
38 type ChannelRenameEvent struct {
39 Type string `json:"type"`
40 Channel ChannelRenameInfo `json:"channel"`
41 Timestamp string `json:"event_ts"`
42 }
43
44 // ChannelRenameInfo represents the information associated with a Channel rename event
45 type ChannelRenameInfo struct {
46 ID string `json:"id"`
47 Name string `json:"name"`
48 Created int `json:"created"`
49 }
50
51 // ChannelHistoryChangedEvent represents the Channel history changed event
52 type ChannelHistoryChangedEvent struct {
53 Type string `json:"type"`
54 Latest string `json:"latest"`
55 Timestamp string `json:"ts"`
56 EventTimestamp string `json:"event_ts"`
57 }
58
59 // ChannelMarkedEvent represents the Channel marked event
60 type ChannelMarkedEvent ChannelInfoEvent
61
62 // ChannelLeftEvent represents the Channel left event
63 type ChannelLeftEvent ChannelInfoEvent
64
65 // ChannelDeletedEvent represents the Channel deleted event
66 type ChannelDeletedEvent ChannelInfoEvent
67
68 // ChannelArchiveEvent represents the Channel archive event
69 type ChannelArchiveEvent ChannelInfoEvent
70
71 // ChannelUnarchiveEvent represents the Channel unarchive event
72 type ChannelUnarchiveEvent ChannelInfoEvent