measurer

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

The measurer package provides functions to periodically read kernel metrics for a given network connection and return them over a channel wrapped in an throughput1 Measurement object.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, conn net.Conn) <-chan model.Measurement

Start starts a measurer goroutine that periodically reads the tcp_info and bbr_info kernel structs for the connection, if available, and sends them wrapped in a Measurement over the returned channel.

The context determines the measurer goroutine's lifetime. If passed a connection that is not a netx.Conn, this function will panic.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL