Documentation ¶
Overview ¶
Package syncs will sync multiple stores
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *Options)
Option sets Sync Options
func SyncInterval ¶
SyncInterval sets the duration between syncs from L0 to L1
func SyncMultiplier ¶
SyncMultiplier sets the multiplication factor for time to wait each sync layer
type Options ¶
type Options struct { // Stores represents layers in the sync in ascending order. L0, L1, L2, etc Stores []store.Store // SyncInterval is the duration between syncs from L0 to L1 SyncInterval time.Duration // SyncMultiplier is the multiplication factor between each store. SyncMultiplier int64 }
Options represents Sync options
Click to show internal directories.
Click to hide internal directories.