Documentation
¶
Index ¶
- func LoadResolversFromFile(file string) ([]string, error)
- type Resolver
- type Store
- func (s *Store) Clear()
- func (s *Store) Delete(wildcard string)
- func (s *Store) Has(wildcard string) bool
- func (s *Store) IsEmpty() bool
- func (s *Store) Iterate(f func(wildcard string) error) error
- func (s *Store) LoadFromFile(file string) error
- func (s *Store) SaveToFile(file string) error
- func (s *Store) Set(wildcard string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadResolversFromFile ¶ added in v1.1.0
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver represents a dns resolver for removing wildcards
func NewResolver ¶
NewResolver initializes and creates a new resolver to find wildcards
func (*Resolver) LookupHost ¶
LookupHost returns wildcard IP addresses of a wildcard if it's a wildcard. To determine, first we split the target host by dots, create permutation of it's levels, check for wildcard on each one of them and if found any, we remove all the hosts that have this IP from the map.
type Store ¶ added in v1.1.0
type Store struct {
// contains filtered or unexported fields
}
func (*Store) LoadFromFile ¶ added in v1.1.0
func (*Store) SaveToFile ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.