stats

package
v5.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Memory

func Memory() *memory

Memory holds a protected (thread safe) hit count.

func OpenDB added in v5.0.3

func OpenDB(ctx context.Context, dataSourceName string) (*db, error)

OpenDB opens a database holding a persistent and protected (thread safe) hit count. It must be closed when it is no longer needed.

Types

type Service

type Service interface {
	Increment(cfg fizzbuzz.Config) error
	MostFrequent() (count int, cfg fizzbuzz.Config, err error)
}

Jump to

Keyboard shortcuts

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