sdns: Index | Files

package failover

import ""


Package Files


type Failover Uses

type Failover struct {
    // contains filtered or unexported fields

Failover type

func New Uses

func New(cfg *config.Config) *Failover

New return failover

func (*Failover) Name Uses

func (f *Failover) Name() string

Name return middleware name

func (*Failover) ServeDNS Uses

func (f *Failover) ServeDNS(ctx context.Context, ch *middleware.Chain)

ServeDNS implements the Handle interface.

type ResponseWriter Uses

type ResponseWriter struct {
    // contains filtered or unexported fields

ResponseWriter implement of ctx.ResponseWriter

func (*ResponseWriter) WriteMsg Uses

func (w *ResponseWriter) WriteMsg(m *dns.Msg) error

WriteMsg implements the ctx.ResponseWriter interface

Package failover imports 8 packages (graph) and is imported by 1 packages. Updated 2020-10-28. Refresh now. Tools for package owners.