Documentation
¶
Index ¶
- Constants
- func DialConnPair(dispatcherAddr, cmdAddr string, latency LatencyAdder) ([2]net.Conn, string, error)
- type ConnConfig
- type DelayConfig
- type Dispatcher
- type DummyLatencyAdder
- type LatencyAdder
- type LatencyConfig
- type LongTimeDelay
- type ProbabilityDelay
- type Response
- type TimeRangeLatencyAdder
Constants ¶
View Source
const MSS = 1500
View Source
const STREAM_ID_LENGTH = 8
View Source
const WAIT_FOR_PAIR_TIME = time.Second * 5
Variables ¶
This section is empty.
Functions ¶
func DialConnPair ¶
Types ¶
type ConnConfig ¶
type ConnConfig struct {
Latency LatencyConfig
}
type DelayConfig ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
func NewDispatcher ¶
func NewDispatcher() *Dispatcher
type DummyLatencyAdder ¶
func (*DummyLatencyAdder) Next ¶
func (la *DummyLatencyAdder) Next() time.Duration
type LatencyAdder ¶
type LatencyConfig ¶
type LongTimeDelay ¶
type LongTimeDelay struct {
// contains filtered or unexported fields
}
func (*LongTimeDelay) NextDelay ¶
func (delay *LongTimeDelay) NextDelay() time.Duration
type ProbabilityDelay ¶
type ProbabilityDelay struct {
}
type TimeRangeLatencyAdder ¶
type TimeRangeLatencyAdder struct {
Old time.Duration
Range time.Duration
New time.Duration
// contains filtered or unexported fields
}
func NewTimeRangeLatencyAdder ¶
func NewTimeRangeLatencyAdder(o, r, n time.Duration) *TimeRangeLatencyAdder
func (*TimeRangeLatencyAdder) Next ¶
func (la *TimeRangeLatencyAdder) Next() time.Duration
Click to show internal directories.
Click to hide internal directories.