xdp

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkMap

type LinkMap map[string]*netlink.Link

type Thresholds

type Thresholds struct {
	CPU string `yaml:"cpu"`

	RAM string `yaml:"ram"`

	InitialRateLimit int64 `yaml:"initialRateLimit"`
	// contains filtered or unexported fields
}

Thresholds for resources

* CPU: integer representing the maximal percentage the CPU should reach. Value has to be inside the range of [0.0, 1.0]

* RAM: integer representing the maximal percentage of used RAM. Value has to be inside the range of [0.0, 1.0]

* InitialRateLimit: initial amount of maximal acceptable incoming requests

func (*Thresholds) Init

func (t *Thresholds) Init() error

type XDPState

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

func NewXDPState

func NewXDPState(ifaces []string, thresholds *Thresholds) (*XDPState, error)

func (*XDPState) Run

func (x *XDPState) Run()

Jump to

Keyboard shortcuts

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