Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Failover

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

    Failover type

    func New

    func New(cfg *config.Config) *Failover

      New return failover

      func (*Failover) Name

      func (f *Failover) Name() string

        Name return middleware name

        func (*Failover) ServeDNS

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

          ServeDNS implements the Handle interface.

          type ResponseWriter

          type ResponseWriter struct {
          	middleware.ResponseWriter
          	// contains filtered or unexported fields
          }

            ResponseWriter implement of ctx.ResponseWriter

            func (*ResponseWriter) WriteMsg

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

              WriteMsg implements the ctx.ResponseWriter interface

              Source Files