2018-04-27 15:14:23 +02:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
const defaultMaxTries = 3
|
|
|
|
|
|
|
|
var (
|
|
|
|
stopOnError bool
|
|
|
|
maxTries int
|
|
|
|
takeOverExistingChannel bool
|
|
|
|
refill int
|
|
|
|
limit int
|
2018-05-17 01:42:06 +02:00
|
|
|
skipSpaceCheck bool
|
2018-05-24 02:32:11 +02:00
|
|
|
syncUpdate bool
|
|
|
|
syncStatus string
|
2018-06-06 14:37:57 +02:00
|
|
|
syncFrom int64
|
|
|
|
syncUntil int64
|
2018-06-06 23:47:28 +02:00
|
|
|
concurrentJobs int
|
2018-04-27 15:14:23 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
StatusPending = "pending" // waiting for permission to sync
|
|
|
|
StatusQueued = "queued" // in sync queue. will be synced soon
|
|
|
|
StatusSyncing = "syncing" // syncing now
|
|
|
|
StatusSynced = "synced" // done
|
2018-04-27 15:48:34 +02:00
|
|
|
StatusFailed = "failed"
|
2018-04-27 15:14:23 +02:00
|
|
|
)
|
|
|
|
|
2018-04-27 15:48:34 +02:00
|
|
|
var SyncStatuses = []string{StatusPending, StatusQueued, StatusSyncing, StatusSynced, StatusFailed}
|