package
0.0.0-20200306133140-11e21a6d1a3a
Repository: https://github.com/ooni/netx.git
Documentation: pkg.go.dev
# Functions
ComputeBodySnapSize computes the body snap size.
ContextMeasurementRoot returns the MeasurementRoot configured in the provided context, or a nil pointer, if not set.
ContextMeasurementRootOrDefault returns the MeasurementRoot configured in the provided context, or a working, dummy, MeasurementRoot otherwise.
NewTLSConnectionState creates a new TLSConnectionState.
SimplifyCerts simplifies a certificate chain for archival.
WithMeasurementRoot returns a copy of the context with the configured MeasurementRoot set.
# Variables
ErrDNSBogon indicates that we found a bogon address.
# Structs
CloseEvent is emitted when the CLOSE syscall returns.
ConnectEvent is emitted when the CONNECT syscall returns.
DNSQueryEvent is emitted when we send a DNS query.
DNSReplyEvent is emitted when we receive byte that are successfully parsed into a DNS reply.
ErrWrapper is our error wrapper for Go errors.
ExtensionEvent is emitted by a netx extension.
HTTPConnectionReadyEvent is emitted when the HTTP transport has got a connection which is ready for sending the request.
HTTPRequestDoneEvent is emitted when we have sent the request body or there has been any failure in sending the request.
HTTPRequestHeaderEvent is emitted when we have written a header, where written typically means just "buffered".
HTTPRequestHeadersDoneEvent is emitted when we have written, or more correctly, "buffered" all headers.
HTTPResponseBodyPartEvent is emitted after we have received a part of the response body, or an error reading it.
HTTPResponseDoneEvent is emitted after we have received the body, when the response body is being closed.
HTTPResponseStartEvent is emitted when we receive the byte from the response on the wire.
HTTPRoundTripDoneEvent is emitted at the end of the round trip.
HTTPRoundTripStartEvent is emitted when the HTTP transport starts the HTTP "round trip".
Measurement contains zero or more events.
MeasurementRoot is the measurement root.
ReadEvent is emitted when the READ/RECV syscall returns.
ResolveDoneEvent is emitted when we know the IP addresses of a specific domain name, or the resolution failed.
ResolveStartEvent is emitted when we start resolving a domain name.
TLSConnectionState contains the TLS connection state.
TLSHandshakeDoneEvent is emitted when conn.Handshake returns.
TLSHandshakeStartEvent is emitted when the TLS handshake starts.
WriteEvent is emitted when the WRITE/SEND syscall returns.
X509Certificate is an x.509 certificate.
# Interfaces
Dialer is a dialer for network connections.
DNSResolver is a DNS resolver.
DNSRoundTripper represents an abstract DNS transport.
Handler handles measurement events.
TLSDialer is a dialer for TLS connections.