diff --git a/pkg/services/hostinger_service.go b/pkg/services/hostinger_service.go index 7b128cd..57e30a8 100644 --- a/pkg/services/hostinger_service.go +++ b/pkg/services/hostinger_service.go @@ -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. diff --git a/resources/views/hostinger.html b/resources/views/hostinger.html index 7f16134..09be58f 100644 --- a/resources/views/hostinger.html +++ b/resources/views/hostinger.html @@ -67,7 +67,7 @@ x-text="v.state">