up
This commit is contained in:
@@ -70,18 +70,25 @@ func (c *HostingerClient) get(path string, dest interface{}) error {
|
||||
|
||||
// ─── Tipos de respuesta ──────────────────────────────────────────────────────
|
||||
|
||||
// HostingerIPAddress representa una dirección IP de un VPS (IPv4 o IPv6).
|
||||
type HostingerIPAddress struct {
|
||||
ID int `json:"id"`
|
||||
Address string `json:"address"`
|
||||
PTR string `json:"ptr"`
|
||||
}
|
||||
|
||||
// HostingerVPS representa una máquina virtual VPS.
|
||||
type HostingerVPS struct {
|
||||
ID int `json:"id"`
|
||||
Hostname string `json:"hostname"`
|
||||
State string `json:"state"`
|
||||
Plan string `json:"plan"`
|
||||
DataCenter string `json:"data_center"`
|
||||
CPU int `json:"cpus"`
|
||||
RAMBytes int64 `json:"ram"`
|
||||
DiskBytes int64 `json:"disk"`
|
||||
IPV4 []string `json:"ipv4"`
|
||||
IPV6 []string `json:"ipv6"`
|
||||
ID int `json:"id"`
|
||||
Hostname string `json:"hostname"`
|
||||
State string `json:"state"`
|
||||
Plan string `json:"plan"`
|
||||
DataCenter string `json:"data_center"`
|
||||
CPU int `json:"cpus"`
|
||||
RAMBytes int64 `json:"memory"`
|
||||
DiskBytes int64 `json:"disk"`
|
||||
IPV4 []HostingerIPAddress `json:"ipv4"`
|
||||
IPV6 []HostingerIPAddress `json:"ipv6"`
|
||||
}
|
||||
|
||||
// HostingerDomain representa un dominio en el portafolio.
|
||||
|
||||
Reference in New Issue
Block a user