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 ¶
CountIfaceNlErrMemEvent -
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
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)
Click to show internal directories.
Click to hide internal directories.