meta added
This commit is contained in:
parent
35758642b2
commit
21bc8700b6
|
@ -6,9 +6,10 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type Host struct {
|
type Host struct {
|
||||||
MetaIPType *meta.MetaIPType `json:"metaIPType,omitempty"`
|
MetaIPType *meta.MetaIPType `json:"metaIPType,omitempty"`
|
||||||
Address string `json:"address,omitempty"`
|
Address string `json:"address,omitempty"`
|
||||||
Mac string `json:"mac,omitempty"`
|
Mac string `json:"mac,omitempty"`
|
||||||
|
Meta map[string]string `json:"meta,omitempty"`
|
||||||
|
|
||||||
Zone *Zone `json:"zone,omitempty"`
|
Zone *Zone `json:"zone,omitempty"`
|
||||||
PortList []*Port `json:"portList,omitempty"`
|
PortList []*Port `json:"portList,omitempty"`
|
||||||
|
|
|
@ -9,9 +9,11 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type Port struct {
|
type Port struct {
|
||||||
MetaPortType *meta.MetaPortType `json:"metaPortType,omitempty"`
|
MetaPortType *meta.MetaPortType `json:"metaPortType,omitempty"`
|
||||||
PortNumber json.Number `json:"portNumber,omitempty"`
|
PortNumber json.Number `json:"portNumber,omitempty"`
|
||||||
DiscoveredDate *util.Timestamp `json:"discoveredDate,omitempty"`
|
Meta map[string]string `json:"meta,omitempty"`
|
||||||
|
|
||||||
|
DiscoveredDate *util.Timestamp `json:"discoveredDate,omitempty"`
|
||||||
|
|
||||||
Host *Host `json:"host,omitempty"`
|
Host *Host `json:"host,omitempty"`
|
||||||
ServiceList []*Service `json:"serviceList,omitempty"`
|
ServiceList []*Service `json:"serviceList,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@ type Service struct {
|
||||||
Key string `json:"key,omitempty"`
|
Key string `json:"key,omitempty"`
|
||||||
Name string `json:"name,omitempty"`
|
Name string `json:"name,omitempty"`
|
||||||
Description string `json:"description,omitempty"`
|
Description string `json:"description,omitempty"`
|
||||||
|
Meta map[string]string `json:"meta,omitempty"`
|
||||||
|
|
||||||
Port *Port `json:"port,omitempty"`
|
Port *Port `json:"port,omitempty"`
|
||||||
|
|
||||||
|
|
|
@ -8,11 +8,12 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type Zone struct {
|
type Zone struct {
|
||||||
Network string `json:"network,omitempty"`
|
Network string `json:"network,omitempty"`
|
||||||
Iface string `json:"iface,omitempty"`
|
Iface string `json:"iface,omitempty"`
|
||||||
MetaIPType *meta.MetaIPType `json:"metaIPType,omitempty"`
|
MetaIPType *meta.MetaIPType `json:"metaIPType,omitempty"`
|
||||||
Address string `json:"address,omitempty"`
|
Address string `json:"address,omitempty"`
|
||||||
Mac string `json:"mac,omitempty"`
|
Mac string `json:"mac,omitempty"`
|
||||||
|
Meta map[string]string `json:"meta,omitempty"`
|
||||||
|
|
||||||
DiscoveredDate *util.Timestamp `json:"discoveredDate,omitempty"`
|
DiscoveredDate *util.Timestamp `json:"discoveredDate,omitempty"`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user