forked from vultr/govultr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathip.go
More file actions
24 lines (21 loc) · 612 Bytes
/
Copy pathip.go
File metadata and controls
24 lines (21 loc) · 612 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package govultr
// IPv4 struct
type IPv4 struct {
IP string `json:"ip,omitempty"`
Netmask string `json:"netmask,omitempty"`
Gateway string `json:"gateway,omitempty"`
Type string `json:"type,omitempty"`
Reverse string `json:"reverse,omitempty"`
}
// IPv6 struct
type IPv6 struct {
IP string `json:"ip,omitempty"`
Network string `json:"network,omitempty"`
NetworkSize int `json:"network_size,omitempty"`
Type string `json:"type,omitempty"`
}
type ipBase struct {
IPv4s []IPv4 `json:"ipv4s,omitempty"`
IPv6s []IPv6 `json:"ipv6s,omitempty"`
Meta *Meta `json:"meta"`
}