Documentation ¶
Index ¶
- type Domain
- func (d Domain) GetExpiryDate() (expiryDate time.Time, err error)
- func (d Domain) GetExpiryDateString() string
- func (d Domain) GetWhois() whois.Whois
- func (d Domain) IsEqual(d2 Domain) bool
- func (d Domain) PrintShort()
- func (d Domain) StatusToString() string
- func (d Domain) StatusToStringColored() string
- func (d *Domain) Update() error
- func (d *Domain) UpdateStatus() error
- func (d *Domain) UpdateWhois() error
- type LegitDomain
- type LegitList
- type TypoDomain
- type TypoList
- func (tdl TypoList) FilterInExpiration(d int) TypoList
- func (tdl TypoList) GetUnfilledCopy() TypoList
- func (a TypoList) Len() int
- func (a TypoList) Less(i, j int) bool
- func (a TypoList) Swap(i, j int)
- func (tdl TypoList) ToExpiryTable() ([]string, [][]string)
- func (tds TypoList) ToMap() map[string]TypoDomain
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Domain ¶
type Domain struct { gorm.Model Name string Status int dns.Dns whois.Whois ErrorWhois string ErrorStatus string TimeWhois string TimeStatus string Ignore bool Extra string }
func (Domain) GetExpiryDateString ¶
func (Domain) StatusToStringColored ¶
Return status as a string colored
func (*Domain) UpdateStatus ¶
Check if the DomainName is status and update the struct
func (*Domain) UpdateWhois ¶
Update all the value about whois of a main DomainName
type LegitDomain ¶
type LegitDomain struct {
Domain
}
func NewLegitDomain ¶
func NewLegitDomain(nameMainDomain string) LegitDomain
Make a new main-DomainName
func (LegitDomain) IsEqual ¶
func (d LegitDomain) IsEqual(d2 LegitDomain) bool
Compare two main domains and return true is their are equals
type LegitList ¶
type LegitList []LegitDomain
func (LegitList) ToMap ¶
func (ds LegitList) ToMap() map[string]LegitDomain
type TypoDomain ¶
func NewTypoDomain ¶
func NewTypoDomain(nameTypoDomain string, mainDomain string, algorithm string) TypoDomain
Make a new typo-DomainName
func (TypoDomain) IsChanged ¶
func (td TypoDomain) IsChanged() (bool, TypoDomain)
Check if the typodomain is changed and return new typodomain updated
func (TypoDomain) IsEqual ¶
func (td TypoDomain) IsEqual(td2 TypoDomain) bool
Compare two main domains and return true is they are equals
func (TypoDomain) IsReliableAboutPrev ¶
func (tdNew TypoDomain) IsReliableAboutPrev(tdOld TypoDomain) (reliability bool)
func (TypoDomain) PrintShort ¶
func (td TypoDomain) PrintShort()
Print a short view of a typo-DomainName
func (TypoDomain) PrintShortDebug ¶
func (td TypoDomain) PrintShortDebug()
Print a short view of a typo-DomainName
type TypoList ¶
type TypoList []TypoDomain
func (TypoList) FilterInExpiration ¶
func (TypoList) GetUnfilledCopy ¶
func (TypoList) ToExpiryTable ¶
func (TypoList) ToMap ¶
func (tds TypoList) ToMap() map[string]TypoDomain
Click to show internal directories.
Click to hide internal directories.