|
@@ -28,11 +28,13 @@ type Metric struct {
|
|
|
|
|
|
// IDandAddr - struct to hold ID and primary Address
|
|
// IDandAddr - struct to hold ID and primary Address
|
|
type IDandAddr struct {
|
|
type IDandAddr struct {
|
|
- ID string `json:"id" bson:"id" yaml:"id"`
|
|
|
|
- Address string `json:"address" bson:"address" yaml:"address"`
|
|
|
|
- Name string `json:"name" bson:"name" yaml:"name"`
|
|
|
|
- IsServer string `json:"isserver" bson:"isserver" yaml:"isserver" validate:"checkyesorno"`
|
|
|
|
- Network string `json:"network" bson:"network" yaml:"network" validate:"network"`
|
|
|
|
|
|
+ ID string `json:"id" bson:"id" yaml:"id"`
|
|
|
|
+ Address string `json:"address" bson:"address" yaml:"address"`
|
|
|
|
+ Name string `json:"name" bson:"name" yaml:"name"`
|
|
|
|
+ IsServer string `json:"isserver" bson:"isserver" yaml:"isserver" validate:"checkyesorno"`
|
|
|
|
+ Network string `json:"network" bson:"network" yaml:"network" validate:"network"`
|
|
|
|
+ Interfaces []Iface `json:"interfaces" yaml:"interfaces"`
|
|
|
|
+ ProxyListenPort int `json:"proxy_listen_port" yaml:"proxy_listen_port"`
|
|
}
|
|
}
|
|
|
|
|
|
// PeerMap - peer map for ids and addresses in metrics
|
|
// PeerMap - peer map for ids and addresses in metrics
|