[feature] Initial commit
This commit is contained in:
31
pangolin/resource.go
Normal file
31
pangolin/resource.go
Normal file
@@ -0,0 +1,31 @@
|
||||
package pangolin
|
||||
|
||||
type Resource struct {
|
||||
ID int `json:"resourceId"`
|
||||
NiceID string `json:"niceId"`
|
||||
Name string `json:"name"`
|
||||
SSL bool `json:"ssl"`
|
||||
FullDomain string `json:"fullDomain"`
|
||||
PasswordID *int `json:"passwordId"`
|
||||
PincodeID *int `json:"pincodeId"`
|
||||
Whitelist bool `json:"whitelist"`
|
||||
HTTP bool `json:"http"`
|
||||
Protocol string `json:"protocol"`
|
||||
Enabled bool `json:"enabled"`
|
||||
DomainID string `json:"domainId"`
|
||||
Targets []ResourceTarget `json:"targets"`
|
||||
}
|
||||
|
||||
type ResourceTarget struct {
|
||||
ID int `json:"targetId"`
|
||||
ResourceID int `json:"resourceId"`
|
||||
IP string `json:"ip"`
|
||||
Port int `json:"port"`
|
||||
Enabled bool `json:"enabled"`
|
||||
HealthStatus string `json:"healthStatus"`
|
||||
HcEnabled bool `json:"hcEnabled"`
|
||||
}
|
||||
|
||||
type ResourceResponse struct {
|
||||
Resources []Resource `json:"resources"`
|
||||
}
|
||||
Reference in New Issue
Block a user