Versions in this module Expand all Collapse all v1 v1.0.0 Dec 17, 2020 Changes in this version + func HostIP(host string) string + func IsReachable(ctx context.Context, destNode string) bool + type IPTables struct + func (IPTables) Drop(ctx context.Context, node string, srcNode string) error + func (IPTables) Fast(ctx context.Context, node string) error + func (IPTables) Flaky(ctx context.Context, node string) error + func (IPTables) Heal(ctx context.Context, node string) error + func (IPTables) Slow(ctx context.Context, node string, opts SlowOptions) error + type Net interface + Drop func(ctx context.Context, node string, srcNode string) error + Fast func(ctx context.Context, node string) error + Flaky func(ctx context.Context, node string) error + Heal func(ctx context.Context, node string) error + Slow func(ctx context.Context, node string, opts SlowOptions) error + type Noop struct + func (Noop) Drop(ctx context.Context, node string, srcNode string) error + func (Noop) Fast(ctx context.Context, node string) error + func (Noop) Flaky(ctx context.Context, node string) error + func (Noop) Heal(ctx context.Context, node string) error + func (Noop) Slow(ctx context.Context, node string, opts SlowOptions) error + type SlowOptions struct + Distribution string + Mean time.Duration + Variance time.Duration + func DefaultSlowOptions() SlowOptions