19 lines
546 B
Go
19 lines
546 B
Go
package model
|
|
|
|
import (
|
|
"encoding/json"
|
|
|
|
util "git.loafle.net/overflow/overflow_commons_go/util"
|
|
)
|
|
|
|
type Host struct {
|
|
ID json.Number `json:"id,Number,omitempty"`
|
|
IP int64 `json:"ip,omitempty"`
|
|
Mac int64 `json:"mac,omitempty"`
|
|
CreateDate util.Timestamp `json:"createDate,omitempty"`
|
|
UpdateDate util.Timestamp `json:"updateDate,omitempty"`
|
|
Os string `json:"os,omitempty"`
|
|
Target bool `json:"target,omitempty"`
|
|
Ports []*Port `json:"ports,omitempty"`
|
|
}
|