stats

package
v0.0.0-...-1a3a2fa Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultExpiration = 5 * time.Minute
View Source
const StatsKey statsKeyType = "stats"

Variables

This section is empty.

Functions

func CtxWithStats

func CtxWithStats(ctx context.Context, s Stats) context.Context

func NewStats

func NewStats(cst callstore.Store, cacheExp time.Duration) *stats

Types

type Stats

type Stats interface {
	GetCallStats(ctx context.Context, interval calls.StatsInterval) (*calls.Stats, error)
}

func FromCtx

func FromCtx(ctx context.Context) Stats

Jump to

Keyboard shortcuts

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