records

package
v0.0.0-...-20ac110 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Record

type Record struct {
	Provider provider.Provider // fixed
	History  models.History    // past information
	Status   models.Status
	Message  string
	Time     time.Time
	LastBan  *time.Time // nil means no last ban
}

Record contains all the information to update and display a DNS record.

func New

func New(provider provider.Provider, events []models.HistoryEvent) Record

New returns a new Record with provider and some history.

func (*Record) HTML

func (r *Record) HTML(now time.Time) models.HTMLRow

func (*Record) String

func (r *Record) String() string

Jump to

Keyboard shortcuts

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