meta added

This commit is contained in:
crusader 2018-08-28 19:42:07 +09:00
parent 35758642b2
commit 21bc8700b6
4 changed files with 16 additions and 11 deletions

View File

@ -9,6 +9,7 @@ type Host struct {
MetaIPType *meta.MetaIPType `json:"metaIPType,omitempty"`
Address string `json:"address,omitempty"`
Mac string `json:"mac,omitempty"`
Meta map[string]string `json:"meta,omitempty"`
Zone *Zone `json:"zone,omitempty"`
PortList []*Port `json:"portList,omitempty"`

View File

@ -11,6 +11,8 @@ import (
type Port struct {
MetaPortType *meta.MetaPortType `json:"metaPortType,omitempty"`
PortNumber json.Number `json:"portNumber,omitempty"`
Meta map[string]string `json:"meta,omitempty"`
DiscoveredDate *util.Timestamp `json:"discoveredDate,omitempty"`
Host *Host `json:"host,omitempty"`

View File

@ -10,6 +10,7 @@ type Service struct {
Key string `json:"key,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Meta map[string]string `json:"meta,omitempty"`
Port *Port `json:"port,omitempty"`

View File

@ -13,6 +13,7 @@ type Zone struct {
MetaIPType *meta.MetaIPType `json:"metaIPType,omitempty"`
Address string `json:"address,omitempty"`
Mac string `json:"mac,omitempty"`
Meta map[string]string `json:"meta,omitempty"`
DiscoveredDate *util.Timestamp `json:"discoveredDate,omitempty"`