ing
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
||||
type Infra struct {
|
||||
ID json.Number `json:"id,Number,omitempty"`
|
||||
MetaInfraType *meta.MetaInfraType `json:"type,omitempty"`
|
||||
CreateDate util.Timestamp `json:"createDate,omitempty"`
|
||||
CreateDate *util.Timestamp `json:"createDate,omitempty"`
|
||||
Probe *probe.Probe `json:"probe,omitempty"`
|
||||
Target *target.Target `json:"target,omitempty"`
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
|
||||
type InfraHost struct {
|
||||
Infra
|
||||
InfraOS *InfraOS `json:"os,omitempty"`
|
||||
IP string `json:"ip,omitempty"`
|
||||
Mac string `json:"mac,omitempty"`
|
||||
CreateDate util.Timestamp `json:"createDate,omitempty"`
|
||||
InfraOS *InfraOS `json:"os,omitempty"`
|
||||
IP string `json:"ip,omitempty"`
|
||||
Mac string `json:"mac,omitempty"`
|
||||
CreateDate *util.Timestamp `json:"createDate,omitempty"`
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ import "git.loafle.net/overflow/commons-go/core/util"
|
||||
|
||||
type InfraMachine struct {
|
||||
Infra
|
||||
Meta string `json:"meta,omitempty"`
|
||||
CreateDate util.Timestamp `json:"createDate,omitempty"`
|
||||
Meta string `json:"meta,omitempty"`
|
||||
CreateDate *util.Timestamp `json:"createDate,omitempty"`
|
||||
}
|
||||
|
||||
@@ -9,6 +9,6 @@ type InfraOS struct {
|
||||
Infra
|
||||
InfraMachine *InfraMachine `json:"machine,omitempty"`
|
||||
Meta string `json:"meta,omitempty"`
|
||||
CreateDate util.Timestamp `json:"createDate,omitempty"`
|
||||
CreateDate *util.Timestamp `json:"createDate,omitempty"`
|
||||
MetaInfraVendor *meta.MetaInfraVendor `json:"vendor,omitempty"`
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import "git.loafle.net/overflow/commons-go/core/util"
|
||||
|
||||
type InfraOSApplication struct {
|
||||
Infra
|
||||
InfraOS *InfraOS `json:"os,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
CreateDate util.Timestamp `json:"createDate,omitempty"`
|
||||
InfraOS *InfraOS `json:"os,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
CreateDate *util.Timestamp `json:"createDate,omitempty"`
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
|
||||
type InfraOSDaemon struct {
|
||||
Infra
|
||||
InfraOS *InfraOS `json:"os,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
CreateDate util.Timestamp `json:"createDate,omitempty"`
|
||||
InfraOS *InfraOS `json:"os,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
CreateDate *util.Timestamp `json:"createDate,omitempty"`
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
type InfraOSPort struct {
|
||||
Infra
|
||||
InfraOS *InfraOS `json:"os,omitempty"`
|
||||
CreateDate util.Timestamp `json:"createDate,omitempty"`
|
||||
CreateDate *util.Timestamp `json:"createDate,omitempty"`
|
||||
Port json.Number `json:"port,omitempty"`
|
||||
PortType string `json:"portType,omitempty"`
|
||||
MetaInfraVendor *meta.MetaInfraVendor `json:"vendor,omitempty"`
|
||||
|
||||
@@ -13,6 +13,6 @@ type InfraServiceApplication struct {
|
||||
PortType string `json:"portType,omitempty"`
|
||||
Port json.Number `json:"port,omitempty"`
|
||||
MetaInfraVendor *meta.MetaInfraVendor `json:"vendor,omitempty"`
|
||||
CreateDate util.Timestamp `json:"createDate,omitempty"`
|
||||
CreateDate *util.Timestamp `json:"createDate,omitempty"`
|
||||
TLSType bool `json:"tlsType,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user