stateful

package
v2.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Feb 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 {
	Response *dns.Msg
}

Writer is a stateful writer with the Response field set when WriteMsg is called. Only the WriteMsg method is implemented, calls to the other methods will panic.

func NewWriter

func NewWriter() *Writer

NewWriter creates a new stateful writer.

func (*Writer) Close

func (w *Writer) Close() error

Close will panic if called.

func (*Writer) Hijack

func (w *Writer) Hijack()

Hijack will panic if called.

func (*Writer) LocalAddr

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

LocalAddr will panic if called.

func (*Writer) RemoteAddr

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

RemoteAddr will panic if called.

func (*Writer) TsigStatus

func (w *Writer) TsigStatus() error

TsigStatus will panic if called.

func (*Writer) TsigTimersOnly

func (w *Writer) TsigTimersOnly(bool)

TsigTimersOnly will panic if called.

func (*Writer) Write

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

Write will panic if called.

func (*Writer) WriteMsg

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

WriteMsg sets the Response field of the Writer to the given response message and always returns a nil error.

Jump to

Keyboard shortcuts

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