cadet

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetZoneAndRecord

func GetZoneAndRecord(zones []string, qname string) (string, string)

Types

type Plugin

type Plugin struct {
	Next plugin.Handler
	// contains filtered or unexported fields
}

func NewPlugin

func NewPlugin(cfg *PluginConfig) (*Plugin, error)

func (*Plugin) Name

func (plug *Plugin) Name() string

func (*Plugin) Ready

func (plug *Plugin) Ready() bool

func (*Plugin) ServeDNS

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

type PluginConfig

type PluginConfig struct {
	ProxyService string
	Consul       *config.ConsulConfig
}

func DefaultPluginConfig

func DefaultPluginConfig() *PluginConfig

func ParseConfig

func ParseConfig(c *caddy.Controller) (*PluginConfig, error)

type Zone

type Zone map[string]*ZoneEntry

type ZoneEntry

type ZoneEntry struct {
	ServiceID string
	Policy    acl.Policy
	Endpoints service.EndpointList
}

type ZoneMap

type ZoneMap map[string]Zone

Jump to

Keyboard shortcuts

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