This commit is contained in:
crusader 2017-12-04 19:42:13 +09:00
parent 9bc4c88c22
commit 2095385d61
7 changed files with 12 additions and 13 deletions

1
modules/config/config.go Normal file
View File

@ -0,0 +1 @@
package config

View File

@ -1,6 +1,5 @@
package model package model
type DiscoveryService struct { type DiscoveryService struct {
IncludeServices []string `json:"includeServices,omitempty"` IncludeServices []string `json:"includeServices,omitempty"`
} }

View File

@ -7,11 +7,11 @@ import (
) )
type Service struct { type Service struct {
Port *Port `json:"port,omitempty"` Port *Port `json:"port,omitempty"`
ID json.Number `json:"id,Number,omitempty"` ID json.Number `json:"id,Number,omitempty"`
CryptoType string `json:"cryptoType,omitempty"` CryptoType string `json:"cryptoType,omitempty"`
ServiceName string `json:"serviceName,omitempty"` ServiceName string `json:"serviceName,omitempty"`
DiscoveredDate util.Timestamp `json:"discoveredDate,omitempty"` DiscoveredDate util.Timestamp `json:"discoveredDate,omitempty"`
} }

View File

@ -8,11 +8,11 @@ import (
) )
type Zone struct { type Zone struct {
ID json.Number `json:"id,Number,omitempty"` ID json.Number `json:"id,Number,omitempty"`
Network string `json:"network,omitempty"` Network string `json:"network,omitempty"`
IP string `json:"ip,omitempty"` IP string `json:"ip,omitempty"`
Iface string `json:"iface,omitempty"` Iface string `json:"iface,omitempty"`
Mac string `json:"mac,omitempty"` Mac string `json:"mac,omitempty"`
DiscoveredDate util.Timestamp `json:"discoveredDate,omitempty"` DiscoveredDate util.Timestamp `json:"discoveredDate,omitempty"`

View File

@ -19,4 +19,3 @@ type NoAuthProbe struct {
Domain *domain.DomainMember `json:"domain,omitempty"` Domain *domain.DomainMember `json:"domain,omitempty"`
Probe *probe.Probe `json:"probe,omitempty"` Probe *probe.Probe `json:"probe,omitempty"`
} }