sdns: github.com/semihalev/sdns/mock Index | Files

package mock

import "github.com/semihalev/sdns/mock"

Index

Package Files

writer.go

type Writer Uses

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

Writer type

func NewWriter Uses

func NewWriter(proto, addr string) *Writer

NewWriter return writer

func (*Writer) Close Uses

func (w *Writer) Close() error

Close func

func (*Writer) Hijack Uses

func (w *Writer) Hijack()

Hijack func

func (*Writer) Internal Uses

func (w *Writer) Internal() bool

Internal func

func (*Writer) LocalAddr Uses

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

LocalAddr func

func (*Writer) Msg Uses

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

Msg return current dns message

func (*Writer) Proto Uses

func (w *Writer) Proto() string

Proto func

func (*Writer) Rcode Uses

func (w *Writer) Rcode() int

Rcode return message response code

func (*Writer) RemoteAddr Uses

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

RemoteAddr func

func (*Writer) RemoteIP Uses

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

RemoteIP func

func (*Writer) Reset Uses

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

Reset func

func (*Writer) TsigStatus Uses

func (w *Writer) TsigStatus() error

TsigStatus func

func (*Writer) TsigTimersOnly Uses

func (w *Writer) TsigTimersOnly(ok bool)

TsigTimersOnly func

func (*Writer) Write Uses

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

Write func

func (*Writer) WriteMsg Uses

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

WriteMsg func

func (*Writer) Written Uses

func (w *Writer) Written() bool

Written func

Package mock imports 2 packages (graph) and is imported by 2 packages. Updated 2020-08-10. Refresh now. Tools for package owners.