domains

package
v0.0.0-...-c5940aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

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) GetExpiryDate

func (d Domain) GetExpiryDate() (expiryDate time.Time, err error)

func (Domain) GetExpiryDateString

func (d Domain) GetExpiryDateString() string

func (Domain) GetWhois

func (d Domain) GetWhois() whois.Whois

func (Domain) IsEqual

func (d Domain) IsEqual(d2 Domain) bool

Compare two main domains and return true is their are equals

func (Domain) PrintShort

func (d Domain) PrintShort()

Print a short view of a DomainName

func (Domain) StatusToString

func (d Domain) StatusToString() string

Return status as a string

func (Domain) StatusToStringColored

func (d Domain) StatusToStringColored() string

Return status as a string colored

func (*Domain) Update

func (d *Domain) Update() error

func (*Domain) UpdateStatus

func (d *Domain) UpdateStatus() error

Check if the DomainName is status and update the struct

func (*Domain) UpdateWhois

func (d *Domain) UpdateWhois() error

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

type TypoDomain struct {
	Domain
	Algorithm   string
	LegitDomain string
}

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 (tdl TypoList) FilterInExpiration(d int) TypoList

func (TypoList) GetUnfilledCopy

func (tdl TypoList) GetUnfilledCopy() TypoList

func (TypoList) Len

func (a TypoList) Len() int

func (TypoList) Less

func (a TypoList) Less(i, j int) bool

func (TypoList) Swap

func (a TypoList) Swap(i, j int)

func (TypoList) ToExpiryTable

func (tdl TypoList) ToExpiryTable() ([]string, [][]string)

func (TypoList) ToMap

func (tds TypoList) ToMap() map[string]TypoDomain

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL