overflow_commons_go/modules/discovery/model/Zone.go
crusader 2095385d61 ing
2017-12-04 19:42:13 +09:00

21 lines
453 B
Go

package model
import (
"encoding/json"
"sync"
"git.loafle.net/overflow/overflow_commons_go/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:"-"`
}