dns

package
v5.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 7 Imported by: 2

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