fach / qdisc

Package qdisc allows to get queuing discipline information via netlink, similarly to what tc (from iproute2) does.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qdisc Build Status

Package qdisc allows to get queuing discipline information via netlink, similarly to what tc -s qdisc show does.

Example usage

package main

import (
    "fmt"

    "github.com/ema/qdisc"
)

func main() {
    info, err := qdisc.Get()

    if err == nil {
        for _, msg := range info {
            fmt.Printf("%+v\n", msg)
        }
    }
}

About

Package qdisc allows to get queuing discipline information via netlink, similarly to what tc (from iproute2) does.

License:MIT License


Languages

Language:Go 98.1%Language:Makefile 1.9%