clean

package
v0.7.10-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dns

Dns 清理dns

func PruneDnsScript

func PruneDnsScript(b []byte, tmpl *template.Template) (string, error)

PruneDnsScript 清理dns脚本

Types

type DnsCleanerConfig

type DnsCleanerConfig struct {
	CleanDns struct {
		AddressList []string `yaml:"address-list"`
		Excludes    []string `yaml:"excludes"`
	} `yaml:"clean-dns"`
}

DnsCleanerConfig 清理dns实体

func ParseDnsConfig

func ParseDnsConfig(b []byte) (DnsCleanerConfig, error)

ParseDnsConfig 解析清理dns的配置文件内容

Jump to

Keyboard shortcuts

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