attempts

package
v4.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: BSD-2-Clause, BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SendAttemptTracker

type SendAttemptTracker interface {
	// SubmitProbeAttempt feeds the number of attempts it took to send a cMix
	// message into the tracker and updates the optimal number of attempts.
	SubmitProbeAttempt(numAttemptsUntilSuccessful int)

	// GetOptimalNumAttempts returns the number of optimal sends. If there is
	// insufficient data to calculate, then ready is false.
	GetOptimalNumAttempts() (attempts int, ready bool)
}

SendAttemptTracker tracks the number of attempts it took to send a cMix message in order to predict how many attempt are needed.

func NewSendAttempts

func NewSendAttempts() SendAttemptTracker

NewSendAttempts initialises a new SendAttemptTracker.

Jump to

Keyboard shortcuts

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