metrics

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

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

Go to latest
Published: Jul 31, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DurationMovingAverage4

func DurationMovingAverage4() time.Duration

DurationMovingAverage4 returns the 4-point moving average of durations observed on completed password hashing runs.

func DurationQueue

func DurationQueue() time.Duration

DurationQueue gives an estimate about how long it will take to clear the NumOutstanding password hashing runs. You can use this to preemptively reject new attempts if the queue is longer than some acceptable value (multiple seconds).

func NumCompleted

func NumCompleted() uint64

NumCompleted returns the number of successfully completed password runs requests.

func NumOutstanding

func NumOutstanding() uint64

NumOutstanding returns the number of outstanding (queued) password runs requests.

func NumSubmitted

func NumSubmitted() uint64

NumSubmitted returns the number of submitted password hashing runs. A cancelled attempt decrements this number.

Types

This section is empty.

Jump to

Keyboard shortcuts

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