index

package
v0.29.26 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainIndex

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

func NewDomainIndex

func NewDomainIndex() *DomainIndex

func (*DomainIndex) Add

func (di *DomainIndex) Add(domain string, id int)

func (*DomainIndex) Destroy

func (di *DomainIndex) Destroy()

func (*DomainIndex) Lookup

func (di *DomainIndex) Lookup(domain string) []int

func (*DomainIndex) Remove

func (di *DomainIndex) Remove(domain string, id int)

type DomainTree

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

func NewDomainTree

func NewDomainTree() *DomainTree

func (*DomainTree) CloneAdd

func (dt *DomainTree) CloneAdd(domain string, id int) *DomainTree

func (*DomainTree) CloneRemove

func (dt *DomainTree) CloneRemove(domain string, id int) *DomainTree

func (*DomainTree) Has

func (dt *DomainTree) Has(domain string, id int) bool

func (*DomainTree) Lookup

func (dt *DomainTree) Lookup(domain string) []int

type StringIDIndex

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

func NewStringIDIndex

func NewStringIDIndex(initialCapacity ...int) *StringIDIndex

func (*StringIDIndex) Add

func (idx *StringIDIndex) Add(key string, id int)

func (*StringIDIndex) Clear

func (idx *StringIDIndex) Clear()

func (*StringIDIndex) Get

func (idx *StringIDIndex) Get(key string) (id int, ok bool)

func (*StringIDIndex) Remove

func (idx *StringIDIndex) Remove(key string)

type StringIndex

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

func NewStringIndex

func NewStringIndex(initialCapacity ...int) *StringIndex

func (*StringIndex) Add

func (idx *StringIndex) Add(key, value string)

func (*StringIndex) Clear

func (idx *StringIndex) Clear()

func (*StringIndex) Get

func (idx *StringIndex) Get(key string) (value string, ok bool)

func (*StringIndex) Remove

func (idx *StringIndex) Remove(key string)

Jump to

Keyboard shortcuts

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