mock

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2018 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 Writer

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

Writer type

func NewWriter

func NewWriter(Net, 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) 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) Rcode

func (w *Writer) Rcode() int

Rcode return message response code

func (*Writer) RemoteAddr

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

RemoteAddr func

func (*Writer) Reset

func (w *Writer) Reset(writer 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