Documentation
¶
Index ¶
- func SliceHasResult(s []*Result, r *Result) bool
- type FQDNData
- type Result
- func (result *Result) BeforeCreate(tx *gorm.DB) (err error)
- func (result Result) Clone() *Result
- func (result Result) Equal(r1 Result) bool
- func (result Result) GetCompHash() string
- func (result Result) GetHash() string
- func (result Result) MarshalJSON() ([]byte, error)
- func (result Result) String() string
- func (*Result) TableName() string
- func (result Result) ToFqdn() *FQDNData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SliceHasResult ¶
Types ¶
type FQDNData ¶ added in v0.1.15
type FQDNData struct {
ID uint `json:"id" gorm:"primarykey"`
Hash string `gorm:"column:hash;index:,unique;"`
FQDN string `gorm:"column:fqdn"`
Source string `gorm:"column:source"`
ProbedAt time.Time `gorm:"column:probed_at"`
}
func (*FQDNData) BeforeCreate ¶ added in v0.1.15
type Result ¶
type Result struct {
ID uint `json:"id" gorm:"primarykey"`
TestId string `gorm:"column:test_id"`
Hash string `gorm:"column:hash;index:,unique;"`
FQDN string `gorm:"column:fqdn"`
RType string `gorm:"column:result_type"`
IPv4 string `gorm:"column:ipv4"`
IPv6 string `gorm:"column:ipv6"`
Target string `gorm:"column:target"`
Ptr string `gorm:"column:ptr"`
Txt string `gorm:"column:txt"`
CloudProduct string `gorm:"column:cloud_product"`
SaaSProduct string `gorm:"column:saas_product"`
Datacenter string `gorm:"column:datacenter"`
ProbedAt time.Time `gorm:"column:probed_at"`
DC bool `gorm:"column:dc"`
GC bool `gorm:"column:gc"`
Exists bool `gorm:"column:exists"`
// Failed flag set if the result should be considered failed
Failed bool `gorm:"column:failed" gorm:"index:idx_exists"`
FailedReason string `gorm:"column:failed_reason"`
}
Result is a github.com/helviojunior/enumdnsenumdns result
func (*Result) BeforeCreate ¶ added in v0.1.15
func (Result) GetCompHash ¶ added in v0.1.8
func (Result) MarshalJSON ¶
Custom Marshaller for Result
Click to show internal directories.
Click to hide internal directories.