collector

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Interfaces

func Interfaces() ([]string, error)

Types

type Collector

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

func New

func New(iface string) *Collector

func (*Collector) Read

func (c *Collector) Read() (Snapshot, error)

type Snapshot

type Snapshot struct {
	Interface string
	RxBytes   uint64
	TxBytes   uint64
}

Jump to

Keyboard shortcuts

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