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.
Click to show internal directories.
Click to hide internal directories.