day132

package
v0.0.0-...-36687a4 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HitCounter

type HitCounter interface {
	// Record stores a timestamp.
	Record(uint64)
	// Total returns number of recorded events.
	Total() int
	// Range returns the total counts inclusive.
	Range(lower, upper uint64) int
}

HitCounter implements 3 methods.

func NewFasterHitCounter

func NewFasterHitCounter() HitCounter

NewFasterHitCounter returns a new instance of a HitCounter.

func NewHitCounter

func NewHitCounter() HitCounter

NewHitCounter returns a new instance of a HitCounter.

Jump to

Keyboard shortcuts

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