report

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const SampleRate = 5 * time.Second

SampleRate is how often it will refresh the report data

View Source
const SampleSize = 10

SampleSize is how many of xmit points we are keeping

Variables

This section is empty.

Functions

func Routes

func Routes(router *gin.RouterGroup, dsConf *util.DSConf)

Routes sets up endpoints for peers.

func UpdateReport added in v0.0.3

func UpdateReport()

Types

type DataPoint

type DataPoint struct {
	TimeStamp time.Time
	Bytes     uint64
}

DataPoint is a single timestamped point

type Report

type Report struct {
	Report *dsnet.DsnetReport
}

type TimeData

type TimeData struct {
	RX *ring.Ring
	TX *ring.Ring
}

TimeData is timeseries data for TX and RX

Jump to

Keyboard shortcuts

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