domainutils

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertRoutesToMaps

func ConvertRoutesToMaps(info *pb.NodeDNSInfo) []maps.Map

ConvertRoutesToMaps 转换线路列表

func FilterRoutes

func FilterRoutes(routes []*pb.DNSRoute, allRoutes []*pb.DNSRoute) []*pb.DNSRoute

FilterRoutes 筛选线路

func ValidateDomainFormat

func ValidateDomainFormat(domain string) bool

ValidateDomainFormat 校验域名格式

func ValidateRecordName added in v0.2.0

func ValidateRecordName(name string) bool

ValidateRecordName 校验记录名

func ValidateRecordValue added in v0.2.0

func ValidateRecordValue(recordType dnsconfigs.RecordType, value string) (message string, ok bool)

ValidateRecordValue 校验记录值

Types

This section is empty.

Jump to

Keyboard shortcuts

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