Categorygithub.com/getlantern/trafficlog
modulepackage
1.0.1
Repository: https://github.com/getlantern/trafficlog.git
Documentation: pkg.go.dev

# README

trafficlog

A log for network traffic. See the Go doc for details.

# Packages

Package tlhttp implements constructs for communicating with a traffic log over HTTP.
Package tltest is used to test traffic logs.

# Functions

New returns a new TrafficLog.
SetMeasurementMode is used by test utilities to take measurements on traffic logs.

# Constants

DefaultStatsInterval is the default interval at which a traffic log outputs statistics.
Possible link layer types.
Possible link layer types.
MinimumStatsInterval is the minimum acceptable stats interval for traffic logs.

# Structs

AppStripperFactory implements MutatorFactory, producing PacketMutators which strip application layer data out of input packets.
CaptureStats holds information about packet capture statistics.
ErrorMalformedAddress may be returned by TrafficLog.UpdateAddresses.
NoOpFactory implements MutatorFactory, producing PacketMutators which do not perform any mutations on input packets.
Options for running a traffic log.
TrafficLog is a log of network traffic.

# Interfaces

A MutatorFactory is used to produce new packet mutators.

# Type aliases

LinkType denotes a possible format of link layer packets.
PacketMutator is a function which takes in link-layer packets (e.g.