utils

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureLeadingPeriod

func EnsureLeadingPeriod(name string) string

func EnsureTrailingPeriod

func EnsureTrailingPeriod(name string) string

Types

type DNSRequest added in v0.4.9

type DNSRequest struct {
	*dns.Msg
	// contains filtered or unexported fields
}

func NewRequest added in v0.4.9

func NewRequest(msg *dns.Msg, ctx context.Context) *DNSRequest

func (*DNSRequest) Context added in v0.4.9

func (r *DNSRequest) Context() context.Context

type FakeDNSWriter

type FakeDNSWriter struct {
	// contains filtered or unexported fields
}

func NewFakeDNSWriter

func NewFakeDNSWriter(w dns.ResponseWriter) *FakeDNSWriter

func (*FakeDNSWriter) Close

func (fd *FakeDNSWriter) Close() error

func (*FakeDNSWriter) Hijack

func (fd *FakeDNSWriter) Hijack()

func (*FakeDNSWriter) LocalAddr

func (fd *FakeDNSWriter) LocalAddr() net.Addr

func (*FakeDNSWriter) Msg

func (fd *FakeDNSWriter) Msg() *dns.Msg

func (*FakeDNSWriter) RemoteAddr

func (fd *FakeDNSWriter) RemoteAddr() net.Addr

func (*FakeDNSWriter) TsigStatus

func (fd *FakeDNSWriter) TsigStatus() error

func (*FakeDNSWriter) TsigTimersOnly

func (fd *FakeDNSWriter) TsigTimersOnly(v bool)

func (*FakeDNSWriter) Write

func (fd *FakeDNSWriter) Write([]byte) (int, error)

func (*FakeDNSWriter) WriteMsg

func (fd *FakeDNSWriter) WriteMsg(msg *dns.Msg) error

Jump to

Keyboard shortcuts

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