sniffer

package
v0.0.0-...-c969a95 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sniff

func Sniff(logUsage LogUsage) error

Types

type DataUsage

type DataUsage struct {
	TotalBytes    int64
	IncomingBytes int64
	OutGoingBytes int64
	Timestamp     time.Time
	PIDUsage      map[int]int64
}

type LogUsage

type LogUsage func(usage Usage, ip string, bytes int64, incoming bool, timestamp time.Time)

type Usage

type Usage map[string]*DataUsage

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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