domain

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 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 {
	Name               string
	CurrWhois          whoisparser.WhoisInfo
	PrevWhois          *whoisparser.WhoisInfo
	ExpiresAt          time.Time
	TimeLeft           time.Duration
	TriggeredThreshold int
}

func (*Domain) CheckNotifications

func (d *Domain) CheckNotifications() error

func (Domain) Log

func (d Domain) Log() *log.Entry

func (*Domain) NotifyStatusChange

func (d *Domain) NotifyStatusChange() error

func (*Domain) NotifyThreshold

func (d *Domain) NotifyThreshold() error

func (*Domain) Run

func (d *Domain) Run() (err error)

func (Domain) Whois

func (d Domain) Whois() (whoisparser.WhoisInfo, error)

type Domains

type Domains struct {
	Sleep   time.Duration
	Domains []*Domain
}

func (*Domains) Add

func (d *Domains) Add(domain Domain)

func (Domains) Tick

func (d Domains) Tick()

Jump to

Keyboard shortcuts

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