2018-04-27 09:14:23 -04:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
const defaultMaxTries = 3
|
|
|
|
|
|
|
|
var (
|
|
|
|
stopOnError bool
|
|
|
|
maxTries int
|
|
|
|
takeOverExistingChannel bool
|
|
|
|
refill int
|
|
|
|
limit int
|
2018-05-16 19:42:06 -04:00
|
|
|
skipSpaceCheck bool
|
2018-05-23 20:32:11 -04:00
|
|
|
syncUpdate bool
|
|
|
|
syncStatus string
|
2018-06-06 08:37:57 -04:00
|
|
|
syncFrom int64
|
|
|
|
syncUntil int64
|
2018-04-27 09:14:23 -04: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 09:48:34 -04:00
|
|
|
StatusFailed = "failed"
|
2018-04-27 09:14:23 -04:00
|
|
|
)
|
|
|
|
|
2018-04-27 09:48:34 -04:00
|
|
|
var SyncStatuses = []string{StatusPending, StatusQueued, StatusSyncing, StatusSynced, StatusFailed}
|