Documentation ¶
Index ¶
Constants ¶
View Source
const QueueStoreKey = "TextileSyncTaskQueue"
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New( st store.Store, model model.Model, kc keychain.Keychain, hubAuth hub.HubAuth, hb *bucketsClient.Client, ht *threadsClient.Client, netc *nc.Client, cfg config.Config, getMirrorBucket GetMirrorBucketFn, getBucket GetBucketFn, getBucketCtx GetBucketCtxFn, addBucketListenerFn AddBucketListenerFn, ) *synchronizer
Creates a new Synchronizer
Types ¶
type AddBucketListenerFn ¶ added in v0.0.30
type EventNotifier ¶ added in v0.0.23
type GetBucketCtxFn ¶
type GetBucketFn ¶
type GetMirrorBucketFn ¶
type Synchronizer ¶
type Synchronizer interface { NotifyItemAdded(bucket, path string) NotifyItemRemoved(bucket, path string) NotifyBucketCreated(bucket string, enckey []byte) NotifyBucketBackupOn(bucket string) NotifyBucketBackupOff(bucket string) NotifyBucketRestore(bucket string) NotifyFileRestore(bucket, path string) NotifyBucketStartup(bucket string) NotifyIndexItemAdded(bucket, path, dbId string) Start(ctx context.Context) RestoreQueue() error Shutdown() String() string AttachNotifier(EventNotifier) }
Click to show internal directories.
Click to hide internal directories.