dns

package
v4.14.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PackMessage

func PackMessage(msg *dnsmessage.Message) (*buf.Buffer, error)

Types

type MessageReader

type MessageReader interface {
	ReadMessage() (*buf.Buffer, error)
}

type MessageWriter added in v4.14.1

type MessageWriter interface {
	WriteMessage(msg *buf.Buffer) error
}

type TCPReader added in v4.14.1

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

func NewTCPReader added in v4.14.1

func NewTCPReader(reader buf.Reader) *TCPReader

func (*TCPReader) Close added in v4.14.1

func (r *TCPReader) Close() error

func (*TCPReader) Interrupt added in v4.14.1

func (r *TCPReader) Interrupt()

func (*TCPReader) ReadMessage added in v4.14.1

func (r *TCPReader) ReadMessage() (*buf.Buffer, error)

type TCPWriter added in v4.14.1

type TCPWriter struct {
	buf.Writer
}

func (*TCPWriter) WriteMessage added in v4.14.1

func (w *TCPWriter) WriteMessage(b *buf.Buffer) error

type UDPReader

type UDPReader struct {
	buf.Reader
	// contains filtered or unexported fields
}

func (*UDPReader) Close

func (r *UDPReader) Close() error

Close implements common.Closable.

func (*UDPReader) ReadMessage

func (r *UDPReader) ReadMessage() (*buf.Buffer, error)

ReadMessage implements MessageReader.

type UDPWriter added in v4.14.1

type UDPWriter struct {
	buf.Writer
}

func (*UDPWriter) WriteMessage added in v4.14.1

func (w *UDPWriter) WriteMessage(b *buf.Buffer) error

Jump to

Keyboard shortcuts

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