Documentation
¶
Index ¶
- Variables
- type Domain
- func (d *Domain) CheckNotifications(ctx context.Context, i integration.Integrations) error
- func (d Domain) Log() *slog.Logger
- func (d *Domain) NotifyStatusChange(ctx context.Context, integrations integration.Integrations) error
- func (d *Domain) NotifyThreshold(ctx context.Context, integrations integration.Integrations) error
- func (d *Domain) Run(ctx context.Context, integrations integration.Integrations) error
- func (d Domain) Whois() (whoisparser.WhoisInfo, error)
- type Domains
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoExpiration = errors.New("could not find expiration date")
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
// contains filtered or unexported fields
}
func (*Domain) CheckNotifications ¶
func (d *Domain) CheckNotifications(ctx context.Context, i integration.Integrations) error
func (*Domain) NotifyStatusChange ¶
func (d *Domain) NotifyStatusChange(ctx context.Context, integrations integration.Integrations) error
func (*Domain) NotifyThreshold ¶
func (d *Domain) NotifyThreshold(ctx context.Context, integrations integration.Integrations) error
func (*Domain) Run ¶
func (d *Domain) Run(ctx context.Context, integrations integration.Integrations) error
Click to show internal directories.
Click to hide internal directories.