stats

package
v0.0.0-...-7c18459 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	HostAndPort string
}

Collector collects and forwards stats

func (*Collector) Count

func (c *Collector) Count(key string, value int)

Count will record an event

func (*Collector) Duration

func (c *Collector) Duration(key string, start time.Time)

Count will record the duration of an event

Jump to

Keyboard shortcuts

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