domain

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fqdn

type Fqdn[T any] struct {
	Root         *trie[T] `json:"root"`          // for example.com, example.*
	WildcardRoot *trie[T] `json:"wildcard_root"` // for *.example.com, *.example.*
	// contains filtered or unexported fields
}

func NewDomainMapper

func NewDomainMapper[T any]() *Fqdn[T]

func (*Fqdn[T]) Clear

func (d *Fqdn[T]) Clear() error

func (*Fqdn[T]) Insert

func (d *Fqdn[T]) Insert(domain string, mark T)

func (*Fqdn[T]) Marshal

func (d *Fqdn[T]) Marshal() ([]byte, error)

func (*Fqdn[T]) Remove

func (d *Fqdn[T]) Remove(domain string)

func (*Fqdn[T]) Search

func (d *Fqdn[T]) Search(domain netapi.Address) (mark T, ok bool)

func (*Fqdn[T]) SearchString

func (d *Fqdn[T]) SearchString(domain string) (mark T, ok bool)

Jump to

Keyboard shortcuts

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