Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S ¶
type S struct {
// contains filtered or unexported fields
}
S keeps track of the largest sequence number such that all sequence numbers in the range [0,v) have been acknowledged.
func New ¶
New creates a new acknowledged sequence tracker with the specified base sequence number. All of the sequence numbers in the range [0,base) are considered acknowledged. Next() will return base upon first call.
Click to show internal directories.
Click to hide internal directories.