Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DurationMovingAverage4 ¶
DurationMovingAverage4 returns the 4-point moving average of durations observed on completed password hashing runs.
func DurationQueue ¶
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.
Click to show internal directories.
Click to hide internal directories.