Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWaitBeforeStart = errors.New("Wait() called before Start() - call Start() first")
ErrWaitBeforeStart is returned when Wait() is called before Start().
Functions ¶
This section is empty.
Types ¶
type Syncer ¶
type Syncer interface {
// Start begins the sync operation.
// The sync will respect context cancellation.
Start(ctx context.Context) error
// Wait blocks until the sync operation completes or fails.
// Returns the final error (nil if successful).
// The sync will respect context cancellation.
Wait(ctx context.Context) error
}
Syncer is the common interface for all sync operations. This provides a unified interface for atomic state sync and state trie sync.
Click to show internal directories.
Click to hide internal directories.