domain

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 3 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"`
	// 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]) 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)

func (*Fqdn[T]) SetSeparate added in v0.3.8

func (d *Fqdn[T]) SetSeparate(b byte)

Jump to

Keyboard shortcuts

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