model/discovery/Zone.go
crusader c920ee3c3f ing
2018-09-11 16:11:02 +09:00

23 lines
670 B
Go

package discovery
import (
"sync"
"git.loafle.net/overflow/model/meta"
"git.loafle.net/overflow/model/util"
)
type Zone struct {
Network string `json:"network,omitempty"`
Iface string `json:"iface,omitempty"`
MetaIPType *meta.MetaIPType `json:"metaIPType,omitempty"`
Address string `json:"address,omitempty"`
Mac string `json:"mac,omitempty"`
Meta map[string]map[string]string `json:"meta,omitempty"`
DiscoveredBy []string `json:"discoveredBy,omitempty"`
DiscoveredDate *util.Timestamp `json:"discoveredDate,omitempty"`
mtx sync.RWMutex `json:"-"`
}