package
0.7.8
Repository: https://github.com/skynetlabs/pinner.git
Documentation: pkg.go.dev

# Functions

DryRun returns the cluster-wide value of the dry_run switch.
LoadConfig loads the required service defaultConfig from the environment and the provided .env file.
MinPinners returns the cluster-wide value of the minimum number of servers we expect to be pinning each skylink.
NextScan returns the time of the next cluster-wide scan for underpinned files.
SetNextScan sets the time of the next cluster-wide scan for underpinned files.

# Constants

ConfDryRun holds the name of the configuration setting which defines whether we execute pin/unpin calls against skyd or not.
ConfMinPinners holds the name of the configuration setting which defines the minimum number of pinners we want to ensure for each skyfile.
ConfNextScan holds the name of the configuration setting which controls when the next cluster-wide scan for underpinned skylinks will happen.
TimeFormat defines the time format we'll use throughout the service.

# Variables

DefaultNextScanOffset is the time to next scan we set when we don't have any value configured in the DB.
ErrTimeTooSoon is returned when we try to set the time of the next scan too soon, not giving all servers enough time to get the memo.
SleepBetweenChecksForScan defines how often we'll check the DB for the next scheduled scan.

# Structs

No description provided by the author