-
Notifications
You must be signed in to change notification settings - Fork 2
/
dto.go
104 lines (86 loc) · 2.42 KB
/
dto.go
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
package kookvoice
type gatewayResp struct {
Code int `json:"code"`
Message string `json:"message"`
Data gatewayRespData `json:"data"`
}
type gatewayRespData struct {
GatewayUrl string `json:"gateway_url"`
}
type firstShakeReq struct {
Request bool `json:"request"`
Id int `json:"id"`
Method string `json:"method"`
Data firstShakeReqData `json:"data"`
}
type firstShakeReqData struct {
}
type secondShakeReq struct {
Request bool `json:"request"`
Id int `json:"id"`
Method string `json:"method"`
Data secondShakeReqData `json:"data"`
}
type secondShakeReqData struct {
DisplayName string `json:"displayName"`
}
type BaseShakeReq struct {
Request bool `json:"request"`
Id int `json:"id"`
Method string `json:"method"`
}
type thirdShakeReq struct {
Request bool `json:"request"`
Id int `json:"id"`
Method string `json:"method"`
Data thirdShakeReqData `json:"data"`
}
type thirdShakeReqData struct {
Comedia bool `json:"comedia"`
RtcpMux bool `json:"rtcpMux"`
Type string `json:"type"`
}
type thirdShakeResp struct {
Response bool `json:"response"`
Id int `json:"id"`
Ok bool `json:"ok"`
Data thirdShakeRespData
}
type thirdShakeRespData struct {
Id string `json:"id"`
Ip string `json:"ip"`
Port int `json:"port"`
RtcpPort int `json:"rtcpPort"`
}
type fourthShakeReq struct {
Request bool `json:"request"`
Id int `json:"id"`
Method string `json:"method"`
Data fourthShakeReqData `json:"data"`
}
type fourthShakeReqData struct {
AppData appData `json:"appData"`
Kind string `json:"kind"`
PeerId string `json:"peerId"`
RtpParameters rtpParameters `json:"rtpParameters"`
TransportId string `json:"transportId"`
}
type appData struct {
}
type rtpParameters struct {
Codecs []codec `json:"codecs"`
Encodings []encoding `json:"encodings"`
}
type codec struct {
Channels int `json:"channels"`
ClockRate int `json:"clockRate"`
MimeType string `json:"mimeType"`
Parameters parameters `json:"parameters"`
PayloadType int `json:"payloadType"`
}
type parameters struct {
SpropStereo int `json:"sprop-stereo"`
}
type encoding struct {
Ssrc int `json:"ssrc"`
}