commons-go/discovery/model/Zone.go
crusader 796da7bbfe ing
2018-04-12 18:38:04 +09:00

21 lines
449 B
Go

package model
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"`
IP string `json:"ip,omitempty"`
Iface string `json:"iface,omitempty"`
Mac string `json:"mac,omitempty"`
DiscoveredDate util.Timestamp `json:"discoveredDate,omitempty"`
mtx sync.RWMutex `json:"-"`
}