blob: 2ca27011dcd0d4ba287113d604db6461ff2ceba2 (
plain)
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
|
package models
type TLS struct {
Enabled bool `json:"enabled"`
ServerName string `json:"server_name,omitempty"`
}
type Transport struct {
Type string `json:"type,omitempty"`
Path string `json:"path,omitempty"`
}
type Server struct {
Tag string `json:"tag"`
Region string `json:"region"`
Type string `json:"type"` // socks, vless, shadowsocks
Server string `json:"server"`
ServerPort int `json:"server_port"`
UDPOverTCP bool `json:"udp_over_tcp,omitempty"`
UUID string `json:"uuid,omitempty"`
Method string `json:"method,omitempty"`
Password string `json:"password,omitempty"`
TLS *TLS `json:"tls,omitempty"`
Transport *Transport `json:"transport,omitempty"`
}
type ServersResponse struct {
Servers []Server `json:"servers"`
}
|