Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnyStringIndex ¶ added in v0.29.31
type AnyStringIndex struct {
// contains filtered or unexported fields
}
func NewAnyStringIndex ¶ added in v0.29.31
func NewAnyStringIndex() *AnyStringIndex
func (*AnyStringIndex) Add ¶ added in v0.29.31
func (idx *AnyStringIndex) Add(key string, value any)
func (*AnyStringIndex) Clear ¶ added in v0.29.31
func (idx *AnyStringIndex) Clear()
type DomainIndex ¶
type DomainIndex struct {
// contains filtered or unexported fields
}
DomainIndex maps host patterns to the ids of the entries that carry them.
func NewDomainIndex ¶
func NewDomainIndex() *DomainIndex
func (*DomainIndex) Add ¶
func (x *DomainIndex) Add(host string, id int)
func (*DomainIndex) Destroy ¶
func (x *DomainIndex) Destroy()
func (*DomainIndex) Lookup ¶
func (x *DomainIndex) Lookup(host string) []int
Lookup returns the ids of the entries whose pattern matches host.
func (*DomainIndex) Remove ¶
func (x *DomainIndex) Remove(host string, id 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) 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) Remove ¶
func (idx *StringIndex) Remove(key string)
Click to show internal directories.
Click to hide internal directories.