vinyl

package
v0.0.0-...-f8c9d21 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateRecord

func ValidateRecord(record *Record) error

Types

type InvalidRecordAddressError

type InvalidRecordAddressError struct {
	Address string
}

func (*InvalidRecordAddressError) Error

func (e *InvalidRecordAddressError) Error() string

type InvalidRecordDomainError

type InvalidRecordDomainError struct {
	Domain string
}

func (*InvalidRecordDomainError) Error

func (e *InvalidRecordDomainError) Error() string

type InvalidRecordTTLError

type InvalidRecordTTLError struct {
	TTL uint32
}

func (*InvalidRecordTTLError) Error

func (e *InvalidRecordTTLError) Error() string

type Record

type Record struct {
	Domain  string
	Address string
	TTL     uint32
}

func NewRecord

func NewRecord(domain string, address string, ttl uint32) (*Record, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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