plugin

package
v0.0.0-...-e7404de Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(c *caddy.Controller) error

Types

type Config

type Config struct {
	Forest     *forest
	ChinaDns   string
	ForeignDns string
}

func NewConfig

func NewConfig() Config

type Handler

type Handler struct {
	dns.Client
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(cfg Config) *Handler

func (*Handler) Name

func (h *Handler) Name() string

func (*Handler) ServeDNS

func (h *Handler) ServeDNS(ctx context.Context, rw dns.ResponseWriter, msg *dns.Msg) (int, error)

Jump to

Keyboard shortcuts

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