Versions in this module Expand all Collapse all v0 v0.3.11 Feb 14, 2024 Changes in this version + var ErrDurationTooShort = errors.New("duration must be at least 1 second") + type Disruptor struct + Dropper Dropper + Filter Filter + Iptables iptables.Iptables + func (d Disruptor) Apply(ctx context.Context, duration time.Duration) error + type Dropper interface + Drop func(packetBytes []byte) bool + type Filter struct + Port uint + type TCPConnectionDropper struct + DropRate float64 + func (tcd TCPConnectionDropper) Drop(packetBytes []byte) bool