rrtype

package
v0.0.0-...-7ab9190 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type A

type A struct {
	IP IPv4 `json:"ip"`
	RR
}

func (A) MarshalText

func (rr A) MarshalText() ([]byte, error)

type AAAA

type AAAA struct {
	IP IPv6 `json:"ip"`
	RR
}

func (AAAA) MarshalText

func (rr AAAA) MarshalText() ([]byte, error)

type IPv4

type IPv4 []byte

func (IPv4) MarshalText

func (ip IPv4) MarshalText() ([]byte, error)

func (IPv4) String

func (ip IPv4) String() string

func (*IPv4) UnmarshalText

func (ip *IPv4) UnmarshalText(s []byte) error

type IPv6

type IPv6 []byte

func (IPv6) MarshalText

func (ip IPv6) MarshalText() ([]byte, error)

func (IPv6) String

func (ip IPv6) String() string

func (*IPv6) UnmarshalText

func (ip *IPv6) UnmarshalText(s []byte) error

type MX

type MX struct {
	Distance uint64 `json:"distance,omitempty"`
	Host     string `json:"host,omitempty"`
	RR
}

func (MX) MarshalText

func (rr MX) MarshalText() ([]byte, error)

type NS

type NS struct {
	Host string `json:"host,omitempty"`
	RR
}

func (NS) MarshalText

func (rr NS) MarshalText() ([]byte, error)

type RR

type RR struct {
	Ttl       uint64         `json:"ttl,omitempty"`
	Timestamp djbunix.Tai64N `json:"timestamp,omitempty"`
	Lo        [2]byte        `json:"lo,omitempty"`
}

func (RR) MarshalText

func (rr RR) MarshalText() ([]byte, error)

type SOA

type SOA struct {
	Mname string `json:"mname,omitempty"`
	Rname string `json:"rname,omitempty"`
	Ser   string `json:"ser,omitempty"`
	Ref   string `json:"ref,omitempty"`
	Ret   string `json:"ret,omitempty"`
	Exp   string `json:"exp,omitempty"`
	Min   string `json:"min,omitempty"`
	RR
}

func (SOA) MarshalText

func (rr SOA) MarshalText() ([]byte, error)

type TXT

type TXT struct {
	Value string `json:"value,omitempty"`
	RR
}

func (TXT) MarshalText

func (rr TXT) MarshalText() ([]byte, error)

Jump to

Keyboard shortcuts

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