Documentation ¶
Index ¶
Constants ¶
const ( OCSP_STATUS_GOOD = "good" OCSP_STATUS_REVOKED = "revoked" OCSP_STATUS_SERVER_FAILED = "server_failed" OCSP_STATUS_UNKNOWN = "unknown" OCSP_REASON_UNSPECIFIED = "unspecified" OCSP_REASON_KEY_COMPROMISE = "key_compromise" OCSP_REASON_CA_COMPROMISE = "ca_compromise" OCSP_REASON_AFFILIATION_CHANGED = "affiliation_changed" OCSP_REASON_SUPERSEDED = "superseded" OCSP_REASON_CESSATION_OF_OPERATION = "cessation_of_operation" OCSP_REASON_CERTIFICATE_HOLD = "certificate_hold" OCSP_REASON_REMOVE_FROM_CRL = "remove_from_crl" OCSP_REASON_PRIVILEGE_WITHDRAWN = "privilege_withdrawn" OCSP_REASON_AA_COMPROMISE = "aa_compromise" SSL_3_0 = "ssl3.0" TLS_1_0 = "tls1.0" TLS_1_1 = "tls1.1" TLS_1_2 = "tls1.2" TLS_1_3 = "tls1.3" )
nolint: golint
Variables ¶
This section is empty.
Functions ¶
func ParseTLSConnState ¶
func ParseTLSConnState(tlsState *tls.ConnectionState) (TLSInfo, OCSP)
Types ¶
type BlackListedIPError ¶
type BlackListedIPError struct {
// contains filtered or unexported fields
}
BlackListedIPError is an error that is returned when a given IP is blacklisted
func (BlackListedIPError) Error ¶
func (b BlackListedIPError) Error() string
type Dialer ¶
type Dialer struct { net.Dialer Resolver *dnscache.Resolver Blacklist []*lib.IPNet Hosts map[string]net.IP BytesRead int64 BytesWritten int64 }
Dialer wraps net.Dialer and provides k6 specific functionality - tracing, blacklists and DNS cache and aliases.
func (*Dialer) DialContext ¶
DialContext wraps the net.Dialer.DialContext and handles the k6 specifics
func (*Dialer) GetTrail ¶
func (d *Dialer) GetTrail( startTime, endTime time.Time, fullIteration bool, emitIterations bool, tags *stats.SampleTags, ) *NetTrail
GetTrail creates a new NetTrail instance with the Dialer sent and received data metrics and the supplied times and tags. TODO: Refactor this according to https://github.com/loadimpact/k6/pull/1203#discussion_r337938370
type NetTrail ¶
type NetTrail struct { BytesRead int64 BytesWritten int64 FullIteration bool StartTime time.Time EndTime time.Time Tags *stats.SampleTags Samples []stats.Sample }
NetTrail contains information about the exchanged data size and length of a series of connections from a particular netext.Dialer
func (*NetTrail) GetSamples ¶
GetSamples implements the stats.SampleContainer interface.
func (*NetTrail) GetTags ¶
func (ntr *NetTrail) GetTags() *stats.SampleTags
GetTags implements the stats.ConnectedSampleContainer interface.