Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupQosPolicies ¶
func CleanupQosPolicies()
Types ¶
type BlackholeOpts ¶
func (*BlackholeOpts) QoSCommands ¶
func (o *BlackholeOpts) QoSCommands(_ Mode) ([]string, error)
func (*BlackholeOpts) String ¶
func (o *BlackholeOpts) String() string
func (*BlackholeOpts) WinDivertCommands ¶
func (o *BlackholeOpts) WinDivertCommands(mode Mode) ([]string, error)
type CorruptPackagesOpts ¶
func (*CorruptPackagesOpts) QoSCommands ¶
func (o *CorruptPackagesOpts) QoSCommands(_ Mode) ([]string, error)
func (*CorruptPackagesOpts) String ¶
func (o *CorruptPackagesOpts) String() string
func (*CorruptPackagesOpts) WinDivertCommands ¶
func (o *CorruptPackagesOpts) WinDivertCommands(mode Mode) ([]string, error)
type DelayOpts ¶
type Filter ¶
type Filter struct {
Include []akn.NetWithPortRange
Exclude []akn.NetWithPortRange
InterfaceIndexes []int
Direction Direction
}
type LimitBandwidthOpts ¶
type LimitBandwidthOpts struct {
Bandwidth string
IncludeCidrs []net.IPNet
PortRange network.PortRange
}
func (*LimitBandwidthOpts) QoSCommands ¶
func (o *LimitBandwidthOpts) QoSCommands(mode Mode) ([]string, error)
func (*LimitBandwidthOpts) String ¶
func (o *LimitBandwidthOpts) String() string
func (*LimitBandwidthOpts) WinDivertCommands ¶
func (o *LimitBandwidthOpts) WinDivertCommands(_ Mode) ([]string, error)
type PackageLossOpts ¶
type PackageLossOpts struct {
Filter
Loss uint
Duration time.Duration
// contains filtered or unexported fields
}
func (*PackageLossOpts) QoSCommands ¶
func (o *PackageLossOpts) QoSCommands(_ Mode) ([]string, error)
func (*PackageLossOpts) String ¶
func (o *PackageLossOpts) String() string
func (*PackageLossOpts) WinDivertCommands ¶
func (o *PackageLossOpts) WinDivertCommands(mode Mode) ([]string, error)
Click to show internal directories.
Click to hide internal directories.