-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
81 lines (72 loc) · 1.94 KB
/
Copy pathtypes.go
File metadata and controls
81 lines (72 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
package teamspeak
// TextMessage is an incoming notifytextmessage payload.
type TextMessage struct {
InvokerName string
InvokerUID string
Message string
InvokerGroups []string
TargetMode int
TargetID uint64
InvokerID uint16
}
// ClientMovedEvent is emitted when a client changes channel (notifyclientmoved).
type ClientMovedEvent struct {
InvokerName string
InvokerUID string
TargetChannelID uint64
ReasonID int
ID uint16
InvokerID uint16
}
// PokeEvent is emitted when this client is poked (notifyclientpoke).
type PokeEvent struct {
InvokerName string
InvokerUID string
Message string
InvokerID uint16
}
// ClientLeftViewEvent is emitted when a client leaves view (notifyclientleftview).
type ClientLeftViewEvent struct {
ReasonMsg string
ReasonID int
ID uint16
TargetID uint16
}
// ClientInfo holds fields from clientlist / notifycliententerview.
type ClientInfo struct {
Nickname string
UID string
ServerGroups []string
ChannelID uint64
Type int
ID uint16
}
// ChannelInfo is one row from channellist.
type ChannelInfo struct {
Name string
Description string
ID uint64
ParentID uint64
}
// FileUploadInfo represents the information received when an upload is initialized.
type FileUploadInfo struct {
FileTransferKey string
SeekPosition uint64
ClientFileTransferID uint16
ServerFileTransferID uint16
Port uint16
}
// FileDownloadInfo represents the information received when a download is initialized.
type FileDownloadInfo struct {
FileTransferKey string
Size uint64
ClientFileTransferID uint16
ServerFileTransferID uint16
Port uint16
}
// FileTransferStatusInfo represents status notifications for file transfers.
type FileTransferStatusInfo struct {
Message string
Status int
ClientFileTransferID uint16
}