Documentation ¶
Index ¶
- type LgcDirection
- type LgcStatus
- type LoadGeneratingConnection
- type LoadGeneratingConnectionCollection
- func (collection *LoadGeneratingConnectionCollection) Append(conn LoadGeneratingConnection) error
- func (collection *LoadGeneratingConnectionCollection) Get(idx int) (*LoadGeneratingConnection, error)
- func (collection *LoadGeneratingConnectionCollection) GetRandom() (*LoadGeneratingConnection, error)
- func (collection *LoadGeneratingConnectionCollection) Len() (int, error)
- type LoadGeneratingConnectionDownload
- func (lgd *LoadGeneratingConnectionDownload) Client() *http.Client
- func (lgd *LoadGeneratingConnectionDownload) ClientId() uint64
- func (lgd *LoadGeneratingConnectionDownload) Direction() LgcDirection
- func (lgd *LoadGeneratingConnectionDownload) SetConnectDoneTimeError(now time.Time, err error)
- func (lgd *LoadGeneratingConnectionDownload) SetConnectStartTime(now time.Time)
- func (lgd *LoadGeneratingConnectionDownload) SetDnsDoneTimeInfo(now time.Time, dnsDoneInfo httptrace.DNSDoneInfo)
- func (lgd *LoadGeneratingConnectionDownload) SetDnsStartTimeInfo(now time.Time, dnsStartInfo httptrace.DNSStartInfo)
- func (lgd *LoadGeneratingConnectionDownload) SetGetConnTime(now time.Time)
- func (lgd *LoadGeneratingConnectionDownload) SetGotConnTimeInfo(now time.Time, gotConnInfo httptrace.GotConnInfo)
- func (lgd *LoadGeneratingConnectionDownload) SetHttpResponseReadyTime(now time.Time)
- func (lgd *LoadGeneratingConnectionDownload) SetHttpWroteRequestTimeInfo(now time.Time, info httptrace.WroteRequestInfo)
- func (lgd *LoadGeneratingConnectionDownload) SetTLSHandshakeDoneTimeState(now time.Time, connectionState tls.ConnectionState)
- func (lgd *LoadGeneratingConnectionDownload) SetTLSHandshakeStartTime(now time.Time)
- func (lgd *LoadGeneratingConnectionDownload) Start(parentCtx context.Context, debugLevel debug.DebugLevel) bool
- func (lgd *LoadGeneratingConnectionDownload) Stats() *stats.TraceStats
- func (lgd *LoadGeneratingConnectionDownload) Status() LgcStatus
- func (lgd *LoadGeneratingConnectionDownload) TransferredInInterval() (uint64, time.Duration)
- func (lgd *LoadGeneratingConnectionDownload) WaitUntilStarted(ctxt context.Context) bool
- type LoadGeneratingConnectionUpload
- func (lgu *LoadGeneratingConnectionUpload) Client() *http.Client
- func (lgu *LoadGeneratingConnectionUpload) ClientId() uint64
- func (lgd *LoadGeneratingConnectionUpload) Direction() LgcDirection
- func (lgu *LoadGeneratingConnectionUpload) SetConnectDoneTimeError(now time.Time, err error)
- func (lgu *LoadGeneratingConnectionUpload) SetConnectStartTime(now time.Time)
- func (lgu *LoadGeneratingConnectionUpload) SetDnsDoneTimeInfo(now time.Time, dnsDoneInfo httptrace.DNSDoneInfo)
- func (lgu *LoadGeneratingConnectionUpload) SetDnsStartTimeInfo(now time.Time, dnsStartInfo httptrace.DNSStartInfo)
- func (lgu *LoadGeneratingConnectionUpload) SetGetConnTime(now time.Time)
- func (lgu *LoadGeneratingConnectionUpload) SetGotConnTimeInfo(now time.Time, gotConnInfo httptrace.GotConnInfo)
- func (lgu *LoadGeneratingConnectionUpload) SetHttpResponseReadyTime(now time.Time)
- func (lgu *LoadGeneratingConnectionUpload) SetHttpWroteRequestTimeInfo(now time.Time, info httptrace.WroteRequestInfo)
- func (lgu *LoadGeneratingConnectionUpload) SetTLSHandshakeDoneTimeState(now time.Time, connectionState tls.ConnectionState)
- func (lgu *LoadGeneratingConnectionUpload) SetTLSHandshakeStartTime(now time.Time)
- func (lgu *LoadGeneratingConnectionUpload) Start(parentCtx context.Context, debugLevel debug.DebugLevel) bool
- func (lgu *LoadGeneratingConnectionUpload) Stats() *stats.TraceStats
- func (lgu *LoadGeneratingConnectionUpload) Status() LgcStatus
- func (lgu *LoadGeneratingConnectionUpload) TransferredInInterval() (uint64, time.Duration)
- func (lgu *LoadGeneratingConnectionUpload) WaitUntilStarted(ctxt context.Context) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LgcDirection ¶
type LgcDirection int
const ( LGC_DOWN LgcDirection = iota LGC_UP )
func (LgcDirection) String ¶
func (direction LgcDirection) String() string
type LoadGeneratingConnectionCollection ¶
type LoadGeneratingConnectionCollection struct { Lock sync.Mutex LGCs *[]LoadGeneratingConnection }
func NewLoadGeneratingConnectionCollection ¶
func NewLoadGeneratingConnectionCollection() LoadGeneratingConnectionCollection
func (*LoadGeneratingConnectionCollection) Append ¶
func (collection *LoadGeneratingConnectionCollection) Append(conn LoadGeneratingConnection) error
func (*LoadGeneratingConnectionCollection) Get ¶
func (collection *LoadGeneratingConnectionCollection) Get(idx int) (*LoadGeneratingConnection, error)
func (*LoadGeneratingConnectionCollection) GetRandom ¶
func (collection *LoadGeneratingConnectionCollection) GetRandom() (*LoadGeneratingConnection, error)
func (*LoadGeneratingConnectionCollection) Len ¶
func (collection *LoadGeneratingConnectionCollection) Len() (int, error)
type LoadGeneratingConnectionDownload ¶
type LoadGeneratingConnectionDownload struct { ConnectToAddr string URL string InsecureSkipVerify bool KeyLogger io.Writer // contains filtered or unexported fields }
TODO: All 64-bit fields that are accessed atomically must appear at the top of this struct.
func (*LoadGeneratingConnectionDownload) Client ¶
func (lgd *LoadGeneratingConnectionDownload) Client() *http.Client
func (*LoadGeneratingConnectionDownload) ClientId ¶
func (lgd *LoadGeneratingConnectionDownload) ClientId() uint64
func (*LoadGeneratingConnectionDownload) Direction ¶
func (lgd *LoadGeneratingConnectionDownload) Direction() LgcDirection
func (*LoadGeneratingConnectionDownload) SetConnectDoneTimeError ¶
func (lgd *LoadGeneratingConnectionDownload) SetConnectDoneTimeError( now time.Time, err error, )
func (*LoadGeneratingConnectionDownload) SetConnectStartTime ¶
func (lgd *LoadGeneratingConnectionDownload) SetConnectStartTime( now time.Time, )
func (*LoadGeneratingConnectionDownload) SetDnsDoneTimeInfo ¶
func (lgd *LoadGeneratingConnectionDownload) SetDnsDoneTimeInfo( now time.Time, dnsDoneInfo httptrace.DNSDoneInfo, )
func (*LoadGeneratingConnectionDownload) SetDnsStartTimeInfo ¶
func (lgd *LoadGeneratingConnectionDownload) SetDnsStartTimeInfo( now time.Time, dnsStartInfo httptrace.DNSStartInfo, )
func (*LoadGeneratingConnectionDownload) SetGetConnTime ¶
func (lgd *LoadGeneratingConnectionDownload) SetGetConnTime(now time.Time)
func (*LoadGeneratingConnectionDownload) SetGotConnTimeInfo ¶
func (lgd *LoadGeneratingConnectionDownload) SetGotConnTimeInfo( now time.Time, gotConnInfo httptrace.GotConnInfo, )
func (*LoadGeneratingConnectionDownload) SetHttpResponseReadyTime ¶
func (lgd *LoadGeneratingConnectionDownload) SetHttpResponseReadyTime( now time.Time, )
func (*LoadGeneratingConnectionDownload) SetHttpWroteRequestTimeInfo ¶
func (lgd *LoadGeneratingConnectionDownload) SetHttpWroteRequestTimeInfo( now time.Time, info httptrace.WroteRequestInfo, )
func (*LoadGeneratingConnectionDownload) SetTLSHandshakeDoneTimeState ¶
func (lgd *LoadGeneratingConnectionDownload) SetTLSHandshakeDoneTimeState( now time.Time, connectionState tls.ConnectionState, )
func (*LoadGeneratingConnectionDownload) SetTLSHandshakeStartTime ¶
func (lgd *LoadGeneratingConnectionDownload) SetTLSHandshakeStartTime( now time.Time, )
func (*LoadGeneratingConnectionDownload) Start ¶
func (lgd *LoadGeneratingConnectionDownload) Start( parentCtx context.Context, debugLevel debug.DebugLevel, ) bool
func (*LoadGeneratingConnectionDownload) Stats ¶
func (lgd *LoadGeneratingConnectionDownload) Stats() *stats.TraceStats
func (*LoadGeneratingConnectionDownload) Status ¶
func (lgd *LoadGeneratingConnectionDownload) Status() LgcStatus
func (*LoadGeneratingConnectionDownload) TransferredInInterval ¶
func (lgd *LoadGeneratingConnectionDownload) TransferredInInterval() (uint64, time.Duration)
func (*LoadGeneratingConnectionDownload) WaitUntilStarted ¶
func (lgd *LoadGeneratingConnectionDownload) WaitUntilStarted(ctxt context.Context) bool
type LoadGeneratingConnectionUpload ¶
type LoadGeneratingConnectionUpload struct { URL string ConnectToAddr string InsecureSkipVerify bool KeyLogger io.Writer // contains filtered or unexported fields }
TODO: All 64-bit fields that are accessed atomically must appear at the top of this struct.
func (*LoadGeneratingConnectionUpload) Client ¶
func (lgu *LoadGeneratingConnectionUpload) Client() *http.Client
func (*LoadGeneratingConnectionUpload) ClientId ¶
func (lgu *LoadGeneratingConnectionUpload) ClientId() uint64
func (*LoadGeneratingConnectionUpload) Direction ¶
func (lgd *LoadGeneratingConnectionUpload) Direction() LgcDirection
func (*LoadGeneratingConnectionUpload) SetConnectDoneTimeError ¶
func (lgu *LoadGeneratingConnectionUpload) SetConnectDoneTimeError( now time.Time, err error, )
func (*LoadGeneratingConnectionUpload) SetConnectStartTime ¶
func (lgu *LoadGeneratingConnectionUpload) SetConnectStartTime( now time.Time, )
func (*LoadGeneratingConnectionUpload) SetDnsDoneTimeInfo ¶
func (lgu *LoadGeneratingConnectionUpload) SetDnsDoneTimeInfo( now time.Time, dnsDoneInfo httptrace.DNSDoneInfo, )
func (*LoadGeneratingConnectionUpload) SetDnsStartTimeInfo ¶
func (lgu *LoadGeneratingConnectionUpload) SetDnsStartTimeInfo( now time.Time, dnsStartInfo httptrace.DNSStartInfo, )
func (*LoadGeneratingConnectionUpload) SetGetConnTime ¶
func (lgu *LoadGeneratingConnectionUpload) SetGetConnTime(now time.Time)
func (*LoadGeneratingConnectionUpload) SetGotConnTimeInfo ¶
func (lgu *LoadGeneratingConnectionUpload) SetGotConnTimeInfo( now time.Time, gotConnInfo httptrace.GotConnInfo, )
func (*LoadGeneratingConnectionUpload) SetHttpResponseReadyTime ¶
func (lgu *LoadGeneratingConnectionUpload) SetHttpResponseReadyTime( now time.Time, )
func (*LoadGeneratingConnectionUpload) SetHttpWroteRequestTimeInfo ¶
func (lgu *LoadGeneratingConnectionUpload) SetHttpWroteRequestTimeInfo( now time.Time, info httptrace.WroteRequestInfo, )
func (*LoadGeneratingConnectionUpload) SetTLSHandshakeDoneTimeState ¶
func (lgu *LoadGeneratingConnectionUpload) SetTLSHandshakeDoneTimeState( now time.Time, connectionState tls.ConnectionState, )
func (*LoadGeneratingConnectionUpload) SetTLSHandshakeStartTime ¶
func (lgu *LoadGeneratingConnectionUpload) SetTLSHandshakeStartTime( now time.Time, )
func (*LoadGeneratingConnectionUpload) Start ¶
func (lgu *LoadGeneratingConnectionUpload) Start( parentCtx context.Context, debugLevel debug.DebugLevel, ) bool
func (*LoadGeneratingConnectionUpload) Stats ¶
func (lgu *LoadGeneratingConnectionUpload) Stats() *stats.TraceStats
func (*LoadGeneratingConnectionUpload) Status ¶
func (lgu *LoadGeneratingConnectionUpload) Status() LgcStatus
func (*LoadGeneratingConnectionUpload) TransferredInInterval ¶
func (lgu *LoadGeneratingConnectionUpload) TransferredInInterval() (uint64, time.Duration)
func (*LoadGeneratingConnectionUpload) WaitUntilStarted ¶
func (lgu *LoadGeneratingConnectionUpload) WaitUntilStarted(ctxt context.Context) bool
Click to show internal directories.
Click to hide internal directories.