utils

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: GPL-3.0 Imports: 4 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 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