mock

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 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

Close func

func (*Writer) Hijack

func (w *Writer) Hijack()

Hijack func

func (*Writer) Internal added in v0.3.1

func (w *Writer) Internal() bool

Internal func

func (*Writer) LocalAddr

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

LocalAddr func

func (*Writer) Msg

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

Msg return current dns message

func (*Writer) Proto added in v0.2.4

func (w *Writer) Proto() string

Proto func

func (*Writer) Rcode

func (w *Writer) Rcode() int

Rcode return message response code

func (*Writer) RemoteAddr

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

RemoteAddr func

func (*Writer) RemoteIP added in v0.2.5

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

RemoteIP func

func (*Writer) Reset

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

Reset func

func (*Writer) TsigStatus

func (w *Writer) TsigStatus() error

TsigStatus func

func (*Writer) TsigTimersOnly

func (w *Writer) TsigTimersOnly(ok bool)

TsigTimersOnly func

func (*Writer) Write

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

Write func

func (*Writer) WriteMsg

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

WriteMsg func

func (*Writer) Written

func (w *Writer) Written() bool

Written func

Jump to

Keyboard shortcuts

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