2017-12-04 06:30:56 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
|
|
|
"sync"
|
|
|
|
|
|
|
|
"git.loafle.net/overflow/overflow_commons_go/util"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Zone struct {
|
2017-12-04 10:42:13 +00:00
|
|
|
ID json.Number `json:"id,Number,omitempty"`
|
|
|
|
Network string `json:"network,omitempty"`
|
|
|
|
IP string `json:"ip,omitempty"`
|
|
|
|
Iface string `json:"iface,omitempty"`
|
|
|
|
Mac string `json:"mac,omitempty"`
|
2017-12-04 06:30:56 +00:00
|
|
|
|
|
|
|
DiscoveredDate util.Timestamp `json:"discoveredDate,omitempty"`
|
|
|
|
|
|
|
|
mtx sync.RWMutex `json:"-"`
|
|
|
|
}
|