overflow_commons_go/modules/discovery/model/Zone.go

21 lines
503 B
Go
Raw Normal View History

2017-12-04 06:30:56 +00:00
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:"-"`
}