throttler

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: MIT, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

package throttler is taken from https://github.com/tylertreat/comcast and modified for use as a library

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg *Config)

Run executes the packet filter operation, either setting it up or tearing it down.

Types

type Config

type Config struct {
	Device           string
	Stop             bool
	Latency          int
	TargetBandwidth  int
	DefaultBandwidth int
	PacketLoss       float64
	TargetIps        []string
	TargetIps6       []string
	TargetPorts      []string
	TargetProtos     []string
	DryRun           bool
}

Config specifies options for configuring packet filter rules.

Jump to

Keyboard shortcuts

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