Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ type Shaper func New(listener eventListener) (shaper Shaper) 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. Source Files ¶ View all Source files bootstrap.go shaper_linux.go Click to show internal directories. Click to hide internal directories.