Documentation ¶
Index ¶
- Constants
- func ParseRate(s string) (bytesPerSec uint64, err error)
- func ParseSize(s string) (bytes uint64, err error)
- func ParseTime(s string) (us uint64, err error)
- func PrintRate(bytesPerSec uint64) string
- func PrintSize(bytes uint64) string
- func PrintTime(us uint64) string
- func TcTbfBurstNormalize(bytesPerSec uint64, burst uint64) uint64
- type IQdisc
- type Qdisc
- type QdiscFqCodel
- type QdiscTbf
- type QdiscTree
- type TcCli
Constants ¶
View Source
const ( TC_H_UNSPEC uint32 = 0 TC_H_ROOT uint32 = 0xFFFFFFFF TC_H_INGRESS uint32 = 0xFFFFFFF1 TC_H_CLSACT uint32 = TC_H_INGRESS )
Taken from iproute2 include/linux/pkt_sched.h
View Source
const TIME_UNIT_PER_SECOND uint64 = 1000000
Variables ¶
This section is empty.
Functions ¶
func TcTbfBurstNormalize ¶
Types ¶
type IQdisc ¶
type IQdisc interface { IsRoot() bool Initialized() error BaseQdisc() *Qdisc Equals(IQdisc) bool DeleteLine(ifname string) string ReplaceLine(ifname string) string }
func NewQdiscFromString ¶
type Qdisc ¶
func NewBaseQdisc ¶
func (*Qdisc) DeleteLine ¶
func (*Qdisc) Initialized ¶
func (*Qdisc) ReplaceLine ¶
type QdiscFqCodel ¶
type QdiscFqCodel struct {
*Qdisc
}
func NewQdiscFqCodel ¶
func NewQdiscFqCodel(chunks []string) (*QdiscFqCodel, error)
func (*QdiscFqCodel) Equals ¶
func (q *QdiscFqCodel) Equals(qi IQdisc) bool
type QdiscTbf ¶
func NewQdiscTbf ¶
func (*QdiscTbf) ReplaceLine ¶
func (*QdiscTbf) TcNormalizeBurst ¶
type QdiscTree ¶
type QdiscTree struct {
// contains filtered or unexported fields
}
func NewQdiscTree ¶
func NewQdiscTreeFromString ¶
func (*QdiscTree) BatchReplaceLines ¶
Click to show internal directories.
Click to hide internal directories.