Registry / networking / florianl-go-tc

florianl-go-tc

JSON →
library0.4.8gogounverified

Package go-tc provides a Go interface to Linux traffic control (tc) netlink.

go get github.com/florianl/go-tc
INSTALL
IMPORT
SIG · FLORIANL-GO-TC
F
florianl-go-tc
networkinggov0.4.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

tc
github.com/florianl/go-tc

Opens a netlink connection and lists all qdiscs.

package main import ( "github.com/florianl/go-tc" ) func main() { tcnl, _ := tc.Open(&tc.Config{}) defer tcnl.Close() qdiscs, _ := tcnl.Qdisc().Get() println(len(qdiscs)) }
Debug
Known issues
gotchaRequires Linux and root or CAP_NET_ADMIN capabilities.
fix
Run as root or grant CAP_NET_ADMIN capability.
affects: all
Upgrade
Version history
0.4.8latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
OpenAI (training)
1
Resources
florianl-go-tc — go get florianl-go-tc · libregistry