dns

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRecordPriority = 10
View Source
const DefaultRecordTTL = 300

Variables

View Source
var ErrDOInternal = fmt.Errorf("DigitalOcean internal error")

Functions

This section is empty.

Types

type Record

type Record struct {
	Name     string
	Data     string
	TTL      int
	Priority int
}

func NewRecord

func NewRecord(name, data string) *Record

func (*Record) DotCount

func (r *Record) DotCount() int

func (*Record) GetSub

func (r *Record) GetSub() string

func (*Record) GetTld

func (r *Record) GetTld() string

func (*Record) HasSub

func (r *Record) HasSub() bool

type Updater

type Updater interface {
	Pull(record *Record) error
	Get(record *Record) error
	Set(record *Record) error
	Has(record *Record) bool
}

func DefaultUpdater

func DefaultUpdater(cfg config.Config) (Updater, error)

Jump to

Keyboard shortcuts

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