cache

package
v0.0.0-...-682ebcb Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddrCache

type AddrCache struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*AddrCache) GetLinkIndex

func (c *AddrCache) GetLinkIndex(ip netip.Addr) (int, bool)

func (*AddrCache) Start

func (c *AddrCache) Start() error

func (*AddrCache) Stop

func (c *AddrCache) Stop()

type LinkCache

type LinkCache struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*LinkCache) AliasCallback

func (c *LinkCache) AliasCallback(alias string, cb func(netlink.Link))

func (*LinkCache) FromAlias

func (c *LinkCache) FromAlias(alias string) netlink.Link

func (*LinkCache) FromName

func (c *LinkCache) FromName(name string) netlink.Link

func (*LinkCache) NameCallback

func (c *LinkCache) NameCallback(name string, cb func(netlink.Link))

func (*LinkCache) Start

func (c *LinkCache) Start() error

func (*LinkCache) Stop

func (c *LinkCache) Stop()

func (*LinkCache) WaitName

func (c *LinkCache) WaitName(ctx context.Context, name string) (netlink.Link, error)

Jump to

Keyboard shortcuts

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