shaper

package
v0.0.0-...-365054f Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shaper

type Shaper interface {
	// Start applies shaping configuration on the specified interface and then continuously ensures it.
	Start(interfaceName string) error
	// Clear clears shaping rules.
	Clear(interfaceName string)
}

Shaper shapes traffic on a network interface.

func New

func New(listener eventListener) (shaper Shaper)

New creates a traffic shaper (linux) or no-op.

Jump to

Keyboard shortcuts

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