proxy

package
v0.0.0-...-9109040 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const SERVERS = "SERVERS"

Variables

This section is empty.

Functions

func NewLocalDNSSolver

func NewLocalDNSSolver() *localDnsSolver

func NewRemoteDnsSolver

func NewRemoteDnsSolver() *remoteDnsSolver

Types

type CacheDnsSolver

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

func (CacheDnsSolver) Name

func (s CacheDnsSolver) Name() string

func (CacheDnsSolver) Solve

func (s CacheDnsSolver) Solve(ctx context.Context, question dns.Question) (*dns.Msg, error)

type CnameDnsSolverFactory

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

func NewCnameDnsSolverFactory

func NewCnameDnsSolverFactory(delegate DnsSolverFactory) CnameDnsSolverFactory

func (*CnameDnsSolverFactory) Solve

func (s *CnameDnsSolverFactory) Solve(ctx context.Context, question dns.Question, solvers []DnsSolver) (*dns.Msg, error)

type DefaultDnsSolverFactory

type DefaultDnsSolverFactory struct{}

func (*DefaultDnsSolverFactory) Solve

func (*DefaultDnsSolverFactory) Solve(ctx context.Context, question dns.Question, solvers []DnsSolver) (*dns.Msg, error)

type DnsSolver

type DnsSolver interface {
	Solve(ctx context.Context, question dns.Question) (*dns.Msg, error)
	Name() string
}

func NewCacheDnsSolver

func NewCacheDnsSolver(delegate DnsSolver) DnsSolver

type DnsSolverFactory

type DnsSolverFactory interface {
	Solve(ctx context.Context, question dns.Question, solvers []DnsSolver) (*dns.Msg, error)
}

type DockerDnsSolver

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

func NewDockerSolver

func NewDockerSolver(c cache.Cache) DockerDnsSolver

func (DockerDnsSolver) Name

func (s DockerDnsSolver) Name() string

func (DockerDnsSolver) Solve

func (s DockerDnsSolver) Solve(ctx context.Context, question dns.Question) (*dns.Msg, error)

type SystemDnsSolver

type SystemDnsSolver struct{}

func NewSystemSolver

func NewSystemSolver() SystemDnsSolver

func (SystemDnsSolver) Name

func (s SystemDnsSolver) Name() string

func (SystemDnsSolver) Solve

func (s SystemDnsSolver) Solve(ctx context.Context, question dns.Question) (*dns.Msg, error)

Jump to

Keyboard shortcuts

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