stats

package
v0.0.0-...-de70ca6 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 1 Imported by: 14

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