stats

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// requests
	Hits      atomic.Int64 // requests received
	Connects  atomic.Int64 // udp connects
	Announces atomic.Int64 // announces
	Scrapes   atomic.Int64 // scrapes

	// db
	Seeds   atomic.Int64 // total seeds
	Leeches atomic.Int64 // total leeches
	IPStats ipStats      // total (unique) ips

	// errors
	ServerErrors atomic.Int64
	ClientErrors atomic.Int64
)

Functions

func Publish

func Publish(peerdb storage.Database, udpconns func() int64)

Publish starts publishing and updating expvar values, requests metrics are over duration of Config.ExpvarInterval

Types

This section is empty.

Jump to

Keyboard shortcuts

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