dns

package
v0.0.0-...-6b39e2e Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const HealthCheckPluginName = "healthcheck"

HealthCheckPluginName is the name of the health check plugin needed to implement the Handler interface

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheckPlugin

type HealthCheckPlugin struct {
	Next plugin.Handler
}

HealthCheckPlugin is a CoreDNS plugin that emulate various email authentication states.

func (HealthCheckPlugin) Name

func (hc HealthCheckPlugin) Name() string

Name implements the Handler interface.

func (HealthCheckPlugin) ServeDNS

func (hc HealthCheckPlugin) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)

ServeDNS retrieves the health check configuration for the requested message and returns an appropriate response.

Jump to

Keyboard shortcuts

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