iface

package
v0.0.0-...-2572d14 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCacheMiss = errors.New("failed to find cache item")

Functions

This section is empty.

Types

type CountIfaceNlErrMemEvent

type CountIfaceNlErrMemEvent struct {
	observer.EventType
}

CountIfaceNlErrMemEvent -

type ErrIface

type ErrIface struct {
	Err error
}

ErrIface -

func (ErrIface) Cause

func (e ErrIface) Cause() error

Cause -

func (ErrIface) Error

func (e ErrIface) Error() string

Error -

type Iface

type Iface interface {
	GetIface(index int) (string, error)
	Run(ctx context.Context) (err error)
	Close() error
}

Iface - common interface for the interface trace

func NewIface

func NewIface(as observer.Subject) Iface

type IfaceCache

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

func NewCache

func NewCache() *IfaceCache

func (*IfaceCache) GetItemById

func (c *IfaceCache) GetItemById(index int) (ifc ifCacheItem, err error)

func (*IfaceCache) Reload

func (c *IfaceCache) Reload() error

func (*IfaceCache) RmCacheItemByIfName

func (c *IfaceCache) RmCacheItemByIfName(ifname string)

func (*IfaceCache) Update

func (c *IfaceCache) Update(ifc ifCacheItem)

Jump to

Keyboard shortcuts

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