logicengine

package
v0.0.0-...-ff2bfba Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogicEngine

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

LogicEngine exposes function to check if a domain is wildcard. All the complexities are handled by it.

func CreateLogicEngineInstance

func CreateLogicEngineInstance(domainName string, resolvers common.DNSServers) *LogicEngine

CreateLogicEngineInstance returns a newly initialized object of LogicEngine.

func (*LogicEngine) IsDomainWildCard

func (l *LogicEngine) IsDomainWildCard(domainRecord common.DomainRecords) (bool, error)

IsDomainWildCard checks if the provided domain is a wildcard. It will check all parent domains, which dnsengine.GetParentDomain returns, starting from smallest domain.The function returns the error, if any, encountered by dnsengine.GetParentDomain.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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