Documentation ¶
Index ¶
- type ConcurrentGraph
- type HitsGraph
- type Preset
- func (p *Preset) ConcurrentForTimeGraph(concurrentGraph ConcurrentGraph) *PresetResult
- func (p *Preset) ConcurrentRequestsSynced(concurrencyLimit uint64, reqDelay time.Duration, duration time.Duration) *PresetResult
- func (p *Preset) ConcurrentRequestsSyncedOnce(concurrencyLimit uint64, reqDelay time.Duration) *PresetResult
- func (p *Preset) ConcurrentRequestsUnsynced(maxConcurrencyLimit uint64, reqDelay time.Duration, duration time.Duration) *PresetResult
- func (p *Preset) RequestPerDuration(reqDelay time.Duration, duration time.Duration) *PresetResult
- func (p *Preset) RequestsForTimeGraph(hitsGraph HitsGraph) *PresetResult
- type PresetResult
- type PresetType
- type RequestsPerTime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConcurrentGraph ¶
type ConcurrentGraph []RequestsPerTime
type HitsGraph ¶
type HitsGraph []RequestsPerTime
type Preset ¶
type Preset struct { ResultCh chan *engine.TraceResult NewRequest func(uniqueId string) (*http.Request, error) Hook syncedtrace.TraceHookType TLSConfig *tls.Config }
func New ¶
func New(newRequest func(uniqueId string) (*http.Request, error), hook syncedtrace.TraceHookType, tlsConfig *tls.Config) *Preset
func (*Preset) ConcurrentForTimeGraph ¶
func (p *Preset) ConcurrentForTimeGraph(concurrentGraph ConcurrentGraph) *PresetResult
Unlike RequestsForTimeGraph, in this preset Time represents the absolute time in which the concurrent amount changes, and not the time difference between one point and the next.
func (*Preset) ConcurrentRequestsSynced ¶
func (*Preset) ConcurrentRequestsSyncedOnce ¶
func (p *Preset) ConcurrentRequestsSyncedOnce(concurrencyLimit uint64, reqDelay time.Duration) *PresetResult
func (*Preset) ConcurrentRequestsUnsynced ¶
func (*Preset) RequestPerDuration ¶
func (*Preset) RequestsForTimeGraph ¶
func (p *Preset) RequestsForTimeGraph(hitsGraph HitsGraph) *PresetResult
type PresetResult ¶
type PresetType ¶
type PresetType int
const ( RequestPerDuration PresetType = iota ConcurrentRequestsUnsynced ConcurrentRequestsSynced ConcurrentRequestsSyncedOnce RequestsForTimeGraph ConcurrentForTimeGraph PresetCount )
func (PresetType) String ¶
func (pt PresetType) String() string
type RequestsPerTime ¶
Click to show internal directories.
Click to hide internal directories.