dns

package
v0.0.0-...-694aa1c Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MPL-2.0 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

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

type TCPReader

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

func NewTCPReader

func NewTCPReader(reader buf.Reader) *TCPReader

func (*TCPReader) Close

func (r *TCPReader) Close() error

func (*TCPReader) Interrupt

func (r *TCPReader) Interrupt()

func (*TCPReader) ReadMessage

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

type TCPWriter

type TCPWriter struct {
	buf.Writer
}

func (*TCPWriter) WriteMessage

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

type UDPWriter struct {
	buf.Writer
}

func (*UDPWriter) WriteMessage

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