overflow_commons_go/modules/discovery/model/Zone.go
crusader a0c0fefa8d ing
2017-12-04 15:30:56 +09:00

21 lines
503 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:"-"`
}