gateway

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gateway

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

Gateway stores all runtime configuration of a plugin

func NewGateway

func NewGateway(opts Opts) *Gateway

func (*Gateway) A

func (gw *Gateway) A(state request.Request, results []net.IP, ttl endpoint.TTL) (records []dns.RR)

A generates dns.RR for A record

func (*Gateway) Name

func (gw *Gateway) Name() string

Name implements the Handler interface.

func (*Gateway) ServeDNS

func (gw *Gateway) ServeDNS(_ context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)

ServeDNS implements the plugin.Handle interface.

func (*Gateway) TXT

func (gw *Gateway) TXT(state request.Request, results []string, ttl endpoint.TTL) (records []dns.RR)

TXT generates dns.RR for TXT record

type Opts

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

func NewGatewayOpts

func NewGatewayOpts(annotation, apex string, ttlLow, ttlHigh uint32, zones []string) Opts

Jump to

Keyboard shortcuts

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