regatta

package module
v0.0.0-...-92e4c56 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: MIT Imports: 19 Imported by: 0

README

regatta CoreDNS plugin

Name

regatta - enables serving zone data from Regatta distributed data store

Description

The regatta plugin is used for serving zone data from Regatta distributed data store

Syntax

regatta [ZONES...] {
  fallthrough [ZONES...]
}
  • fallthrough If zone matches but no record can be generated, pass request to the next plugin

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Key

func Key(s string) string

Key converts a domain name to a key in Regatta.

Types

type Regatta

type Regatta struct {
	Next  plugin.Handler
	Zones []string

	Upstream *upstream.Upstream
	Fall     fall.F
	// contains filtered or unexported fields
}

Regatta is a plugin that serves zone data from Regatta data store.

func (*Regatta) IsNameError

func (r *Regatta) IsNameError(err error) bool

func (*Regatta) Lookup

func (r *Regatta) Lookup(ctx context.Context, state request.Request, name string, typ uint16) (*dns.Msg, error)

func (*Regatta) MinTTL

func (r *Regatta) MinTTL(_ request.Request) uint32

func (*Regatta) Name

func (r *Regatta) Name() string

func (*Regatta) Records

func (r *Regatta) Records(ctx context.Context, state request.Request, _ bool) ([]msg.Service, error)

func (*Regatta) Reverse

func (r *Regatta) Reverse(ctx context.Context, state request.Request, exact bool, opt plugin.Options) ([]msg.Service, error)

func (*Regatta) Serial

func (r *Regatta) Serial(_ request.Request) uint32

func (*Regatta) ServeDNS

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

func (*Regatta) Services

func (r *Regatta) Services(ctx context.Context, state request.Request, exact bool, _ plugin.Options) ([]msg.Service, error)

Jump to

Keyboard shortcuts

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