mock

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

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

Writer type.

func NewWriter

func NewWriter(proto, addr string) *Writer

NewWriter return writer.

func (*Writer) Close

func (w *Writer) Close() error

(*Writer).Close close func.

func (*Writer) Hijack

func (w *Writer) Hijack()

(*Writer).Hijack hijack func.

func (*Writer) Internal added in v0.3.1

func (w *Writer) Internal() bool

(*Writer).Internal internal func.

func (*Writer) LocalAddr

func (w *Writer) LocalAddr() net.Addr

(*Writer).LocalAddr localAddr func.

func (*Writer) Msg

func (w *Writer) Msg() *dns.Msg

(*Writer).Msg msg return current dns message.

func (*Writer) Proto added in v0.2.4

func (w *Writer) Proto() string

(*Writer).Proto proto func.

func (*Writer) Rcode

func (w *Writer) Rcode() int

(*Writer).Rcode rcode return message response code.

func (*Writer) RemoteAddr

func (w *Writer) RemoteAddr() net.Addr

(*Writer).RemoteAddr remoteAddr func.

func (*Writer) RemoteIP added in v0.2.5

func (w *Writer) RemoteIP() net.IP

(*Writer).RemoteIP remoteIP func.

func (*Writer) Reset

func (w *Writer) Reset(rw dns.ResponseWriter)

(*Writer).Reset reset func.

func (*Writer) TsigStatus

func (w *Writer) TsigStatus() error

(*Writer).TsigStatus tsigStatus func.

func (*Writer) TsigTimersOnly

func (w *Writer) TsigTimersOnly(ok bool)

(*Writer).TsigTimersOnly tsigTimersOnly func.

func (*Writer) Write

func (w *Writer) Write(b []byte) (int, error)

(*Writer).Write write func.

func (*Writer) WriteMsg

func (w *Writer) WriteMsg(msg *dns.Msg) error

(*Writer).WriteMsg writeMsg func.

func (*Writer) Written

func (w *Writer) Written() bool

(*Writer).Written written func.

Jump to

Keyboard shortcuts

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