This repository has been archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
results.go
78 lines (69 loc) · 2.63 KB
/
results.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
/*
Copyright (c) Huawei Technologies Co., Ltd. 2021. All rights reserved.
*/
package premium_domains
type CreatePremiumHostRst struct {
Id string `json:"id"`
PolicyId string `json:"policyid"`
HostName string `json:"hostname"`
DomainId string `json:"domainid"`
ProjectId string `json:"projectid"`
Protocol string `json:"protocol"`
}
type PremiumHost struct {
Id string `json:"id"`
PolicyId string `json:"policyid"`
HostName string `json:"hostname"`
DomainId string `json:"domainid"`
ProjectId string `json:"project_id"`
AccessCode string `json:"access_code"`
Protocol string `json:"protocol"`
Servers []Server `json:"server"`
CertificateId string `json:"certificateid"`
CertificateName string `json:"certificatename"`
Tls string `json:"tls"`
Cipher string `json:"cipher"`
Proxy bool `json:"proxy"`
Locked int `json:"locked"`
ProtectStatus int `json:"protect_status"`
AccessStatus int `json:"access_status"`
Timestamp int64 `json:"timestamp"`
BlockPage DomainBlockPage `json:"block_page"`
Extend map[string]string `json:"extend"`
TrafficMark DomainTrafficMark `json:"traffic_mark"`
Flag map[string]string `json:"flag"`
Mode string `json:"mode"`
PoolIds []string `json:"pool_ids"`
}
type SimplePremiumHost struct {
Id string `json:"id"`
Hostname string `json:"hostname"`
PolicyId string `json:"policyid"`
ProtectStatus int `json:"protect_status"`
AccessStatus int `json:"access_status"`
Flag map[string]string `json:"flag"`
Mode string `json:"mode"`
PoolIds []string `json:"pool_ids"`
}
type DomainBlockPage struct {
Template string `json:"template"`
CustomPage DomainCustomPage `json:"custom_page"`
RedirectUrl string `json:"redirect_url"`
}
type DomainCustomPage struct {
StatusCode string `json:"status_code"`
ContentType string `json:"content_type"`
Content string `json:"content"`
}
type DomainTrafficMark struct {
Sip []string `json:"sip"`
Cookie string `json:"cookie"`
Params string `json:"params"`
}
type PremiumHostList struct {
Total int `json:"total"`
Items []SimplePremiumHost `json:"items"`
}
type PremiumHostProtectStatus struct {
KeepPolicy bool
}