stats

package
v0.0.0-...-09cb31e Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VnstatTrafficRecord

type VnstatTrafficRecord struct {
	Date struct {
		Year  uint `json:"year"`
		Month uint `json:"month"`
		Day   uint `json:"day"`
	} `json:"date"`
	Time struct {
		Hour   uint `json:"hour"`
		Minute uint `json:"minute"`
	} `json:"time"`
	Rx uint64 `json:"rx"`
	Tx uint64 `json:"tx"`
}

func VnstatDailyTraffic

func VnstatDailyTraffic(ifname string) ([]VnstatTrafficRecord, error)

func VnstatMonthlyTraffic

func VnstatMonthlyTraffic(ifname string) ([]VnstatTrafficRecord, error)

Jump to

Keyboard shortcuts

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