stat

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2015 License: BSD-2-Clause Imports: 3 Imported by: 1

Documentation

Overview

Package stat gathers and prints repbin server usage statistics. Post and fetch statistics are shown as minute-by-minute averages over the last minute, 5 minutes, 60 minutes and 24 hours.

Index

Constants

View Source
const (
	// Post adds a new post to the statistic.
	Post = iota
	// Fetch adds a new fetch to the statistic.
	Fetch
	// Show prints the statistics.
	Show
)

Variables

View Source
var Input = make(chan Event, 1024)

Input is the repserver statistics input channel.

Functions

func Run

func Run()

Run starts the statistics handler.

Types

type Event

type Event int

Event describes the stat event send to the input channel.

Jump to

Keyboard shortcuts

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