This commit is contained in:
crusader
2018-06-12 22:13:22 +09:00
parent c68381575d
commit ab936be303
50 changed files with 274 additions and 329 deletions

View File

@@ -7,8 +7,8 @@ import (
)
type Connection struct {
IP string `json:"ip,omitempty"`
Port json.Number `json:"port,Number,omitempty"`
MetaPortType *meta.MetaPortType `json:"metaPortType,omitempty"`
SSL bool `json:"ssl,omitempty"`
IP string `json:"ip,omitempty"`
Port json.Number `json:"port,Number,omitempty"`
MetaPortType *meta.MetaPortType `json:"metaPortType,omitempty"`
MetaCryptoType *meta.MetaCryptoType `json:"metaCryptoType,omitempty"`
}

View File

@@ -1,7 +1,7 @@
package sensorconfig
type Item struct {
Keys []Keys `json:"keys,omitempty"`
Keys []*Keys `json:"keys,omitempty"`
QueryInfo *QueryInfo `json:"queryInfo,omitempty"`
MappingInfo *MappingInfo `json:"mappingInfo,omitempty"`
}

View File

@@ -8,5 +8,5 @@ type SensorConfig struct {
Target *Target `json:"target,omitempty"`
Schedule *Schedule `json:"schedule,omitempty"`
Crawler *Crawler `json:"crawler,omitempty"`
Items []Item `json:"items,omitempty"`
Items []*Item `json:"items,omitempty"`
}