Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SweepInterval determines how often we perform our regular sweeps. SweepInterval = 24 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Status ¶
Status represents the status of a sweep. All times are UTC-based in order to simplify handling and comparison.
type Sweeper ¶
type Sweeper struct {
// contains filtered or unexported fields
}
Sweeper takes care of sweeping the files pinned by the local skyd server and marks them as pinned by the local server.
func (*Sweeper) Sweep ¶
func (s *Sweeper) Sweep()
Sweep starts a new skyd sweep, unless one is already underway.
func (*Sweeper) UpdateSchedule ¶
UpdateSchedule schedules a new series of sweeps to be run. If there are already scheduled sweeps, that schedule is cancelled (running sweeps are not interrupted) and a new schedule is established.
Click to show internal directories.
Click to hide internal directories.