Documentation
¶
Overview ¶
Package migrate contains internal implementations for migration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MigrationWriter ¶
type MigrationWriter interface { // SetEntryBundle stores the provided serialised entry bundle at the location implied by the provided // entry bundle index and partial size. // // Bundles may be set in any order (not just consecutively), and the implementation should integrate // them into the local tree in the most efficient way possible. // // Writes should be idempotent; repeated calls to set the same bundle with the same data should not // return an error. SetEntryBundle(ctx context.Context, idx uint64, partial uint8, bundle []byte) error // AwaitIntegration should block until the local integrated tree has grown to the provided size, // and should return the locally calculated root hash derived from the integration of the contents of // entry bundles set using SetEntryBundle above. AwaitIntegration(ctx context.Context, size uint64) ([]byte, error) // IntegratedSize returns the current size of the locally integrated log. IntegratedSize(ctx context.Context) (uint64, error) }
Click to show internal directories.
Click to hide internal directories.