type Backend interface {
BatchTx() BatchTx Snapshot() Snapshot Hash() (uint32, error)
// Size returns the current size of the backend. Size() int64 ForceCommit()
Close() error}
type Snapshot interface {
// Size gets the size of the snapshot. Size() int64// WriteTo writes the snapshot into the given writter. WriteTo(w io.Writer) (n int64, err error)
// Close closes the snapshot. Close() error
}