Movatterモバイル変換


[0]ホーム

URL:


art

package
v1.92.3Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License:BSD-3-ClauseImports:9Imported by:0

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

Package art provides a routing table that implements the Allotment RoutingTable (ART) algorithm by Donald Knuth, as described in the paper by YoichiHariguchi.

ART outperforms the traditional radix tree implementations for route lookups,insertions, and deletions.

For more information, see Yoichi Hariguchi's paper:https://cseweb.ucsd.edu//~varghese/TEACH/cs228/artlookup.pdf

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeTable

type Table[Tany] struct {// contains filtered or unexported fields}

Table is an IPv4 and IPv6 routing table.

func (*Table[T])Delete

func (t *Table[T]) Delete(pfxnetip.Prefix)

Delete removes pfx from the table, if it is present.

func (*Table[T])Get

func (t *Table[T]) Get(addrnetip.Addr) (ret T, okbool)

Get does a route lookup for addr and returns the associated value, or nil ifno route matched.

func (*Table[T])Insert

func (t *Table[T]) Insert(pfxnetip.Prefix, val T)

Insert adds pfx to the table, with value val.If pfx is already present in the table, its value is set to val.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp