Files
pangolin-sync/pangolin/resource.go
2026-03-25 22:16:00 -04:00

32 lines
1021 B
Go

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"`
}