record

package
v0.0.0-...-a41b718 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: MIT Imports: 3 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 {
	Msg      *dns.Msg
	Blocked  bool      `json:"blocked"`
	NoExpire bool      `json:"no_expire"`
	UpdateAt time.Time `json:"update_at"`
	ExpireAt time.Time `json:"expire_at"`
}

Record

func NewBlockedRecord

func NewBlockedRecord() *Record

func NewCustomRecord

func NewCustomRecord(msg *dns.Msg, ttl time.Duration) *Record

func NewRecord

func NewRecord(msg *dns.Msg, blocked bool, noexpire bool, ttl time.Duration) *Record

func NewResolvedRecord

func NewResolvedRecord(msg *dns.Msg, ttl time.Duration) *Record

func (*Record) Expired

func (r *Record) Expired() bool

Jump to

Keyboard shortcuts

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