21 lines
532 B
Go
Raw Normal View History

2018-04-26 16:37:59 +09:00
package discovery
2018-04-12 18:38:04 +09:00
import (
2018-06-12 18:18:11 +09:00
"sync"
2018-06-12 22:13:22 +09:00
"git.loafle.net/overflow/commons-go/core/util"
"git.loafle.net/overflow/commons-go/model/meta"
2018-04-12 18:38:04 +09:00
)
type Zone struct {
2018-06-12 22:13:22 +09:00
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"`
2018-04-12 18:38:04 +09:00
2018-05-11 11:24:21 +09:00
DiscoveredDate *util.Timestamp `json:"discoveredDate,omitempty"`
2018-04-12 18:38:04 +09:00
mtx sync.RWMutex `json:"-"`
}