Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager keeps track of rounds that file parts were sent on and when those rounds occurred. Rounds past the given age can be deleted manually. Adheres to excludedRounds.ExcludedRounds.
func NewManager ¶
NewManager creates a new sent round tracker Manager.
func (*Manager) Insert ¶
Insert adds the round to the tracker with the current time. Returns true if the round was added.
func (*Manager) RemoveOldRounds ¶
func (srt *Manager) RemoveOldRounds()
RemoveOldRounds removes any rounds that are older than the max round age.
Click to show internal directories.
Click to hide internal directories.