commons-go/model/discovery/Zone.go
crusader f547c15d95 ing
2018-05-11 11:24:21 +09:00

22 lines
501 B
Go

package discovery
import (
"encoding/json"
"sync"
"git.loafle.net/overflow/commons-go/core/util"
)
type Zone struct {
ID json.Number `json:"id,Number,omitempty"`
Network string `json:"network,omitempty"`
IPV4 string `json:"ipv4,omitempty"`
IPV6 string `json:"ipv6,omitempty"`
Iface string `json:"iface,omitempty"`
Mac string `json:"mac,omitempty"`
DiscoveredDate *util.Timestamp `json:"discoveredDate,omitempty"`
mtx sync.RWMutex `json:"-"`
}