overflow_commons_go/modules/infra/model/Infra.go

19 lines
652 B
Go
Raw Normal View History

2017-11-08 09:50:44 +00:00
package model
import (
"encoding/json"
2017-12-01 06:04:31 +00:00
meta "git.loafle.net/overflow/overflow_commons_go/modules/meta/model"
2017-11-08 09:50:44 +00:00
probe "git.loafle.net/overflow/overflow_commons_go/modules/probe/model"
target "git.loafle.net/overflow/overflow_commons_go/modules/target/model"
2017-12-01 06:04:31 +00:00
util "git.loafle.net/overflow/overflow_commons_go/util"
2017-11-08 09:50:44 +00:00
)
type Infra struct {
2017-12-01 06:04:31 +00:00
ID json.Number `json:"id,Number,omitempty"`
MetaInfraType *meta.MetaInfraType `json:"type,omitempty"`
CreateDate util.Timestamp `json:"createDate,omitempty"`
Probe *probe.Probe `json:"probe,omitempty"`
Target *target.Target `json:"target,omitempty"`
}