datastore

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDeviceNotYetReady = errors.New("device not yet ready")

Functions

This section is empty.

Types

type Data

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

func NewDataStore

func NewDataStore() *Data

func (*Data) EgressRate

func (d *Data) EgressRate() int64

func (*Data) IfbDevice

func (d *Data) IfbDevice() (netlink.Link, error)

func (*Data) IngressRate

func (d *Data) IngressRate() int64

func (*Data) RootDevice

func (d *Data) RootDevice() (netlink.Link, error)

func (*Data) SetEgressRate

func (d *Data) SetEgressRate(newVal int64) bool

func (*Data) SetIfbDevice

func (d *Data) SetIfbDevice(newLink netlink.Link) bool

func (*Data) SetIngressRate

func (d *Data) SetIngressRate(newVal int64) bool

func (*Data) SetRootDevice

func (d *Data) SetRootDevice(newLink netlink.Link) bool

Jump to

Keyboard shortcuts

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