[feature] Initial commit

This commit is contained in:
2026-03-25 22:16:00 -04:00
parent 2814505fec
commit 7752d82001
10 changed files with 636 additions and 4 deletions

31
pangolin/resource.go Normal file
View 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"`
}