pdns

package
v0.0.0-...-caa851c Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KIND_AXFR = "AXFR"
	KIND_Q    = "Q"
	KIND_PING = "PING"
)

Variables

View Source
var (
	GREETING_ABI_V2 = []byte("HELO\t2")
	GREETING_REPLY  = "OK\tpowerdns-consul\n"
	END_REPLY       = "END\n"
	FAIL_REPLY      = "FAIL\n"
	PONG_REPLY      = "PONG\n"
)

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Lookup func(request *Request) (responses []*Response, err error)
}

func (*Handler) Handle

func (h *Handler) Handle(in chan []byte, out chan []byte)

type Request

type Request struct {
	Kind     string
	Qname    string
	Qclass   string
	Qtype    string
	Id       string
	RemoteIp string
	LocalIp  string
}

type Response

type Response struct {
	Qname   string
	Qclass  string
	Qtype   string
	Ttl     string
	Id      string
	Content string
}

Jump to

Keyboard shortcuts

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