dnssvc

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(cfg conf.ServerConfig, unblock *unblock.Service, resolver *resolver.Upstream, registry *firewall.IPSetRegistry) *Service

func (*Service) IsRunning

func (d *Service) IsRunning() bool

func (*Service) QueryStats

func (d *Service) QueryStats() resolver.QueryStats

func (*Service) ResyncRules

func (d *Service) ResyncRules(ctx context.Context) (SyncReport, error)

func (*Service) Start

func (d *Service) Start() error

func (*Service) Stop

func (d *Service) Stop()

func (*Service) UpstreamStats

func (d *Service) UpstreamStats() []resolver.ServerStat

type SyncReport

type SyncReport struct {
	StaticEntries   int
	DomainsTotal    int
	DomainsResolved int
	IPsAdded        int
	Failures        int
	Errors          []string
}

Jump to

Keyboard shortcuts

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