stats

package
v0.0.0-...-139b282 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package stats implements a Network that wraps another Network but also counts statistics on the packets that are sent and received.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Summary

func Summary(node network.Node) string

Summary returns a string describing statistics for the given Node, if any can be fetched. Otherwise an empty string is returned.

func Wrap

Wrap creates a network that wraps the given network but gathers statistics about packets that are sent and received.

Types

type Statistics

type Statistics struct {
	// contains filtered or unexported fields
}

func (*Statistics) String

func (s *Statistics) String() string

Jump to

Keyboard shortcuts

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