tc

package
Version: v1.0.11-0...-f2abe62 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetRule

func SetRule(dev netlink.Link, rule *TrafficShapingRule) error

SetRule set the traffic rule on interface

Types

type TrafficShapingRule

type TrafficShapingRule struct {
	// rate in bytes
	Rate uint64
}

TrafficShapingRule the interface traffic shaping rule

Source Files

Jump to

Keyboard shortcuts

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