package backend
import "github.com/coreos/etcd/storage/backend"
Index ¶
Types ¶
type Backend ¶
type Backend interface { BatchTx() BatchTx Snapshot() Snapshot Hash() (uint32, error) // Size returns the current size of the backend. Size() int64 ForceCommit() Close() error }
func New ¶
type BatchTx ¶
type BatchTx interface { Lock() Unlock() UnsafeCreateBucket(name []byte) UnsafePut(bucketName []byte, key []byte, value []byte) UnsafeRange(bucketName []byte, key, endKey []byte, limit int64) (keys [][]byte, vals [][]byte) UnsafeDelete(bucketName []byte, key []byte) Commit() CommitAndStop() }
type Snapshot ¶
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 }
Source Files ¶
- Version
- v2.3.0-alpha.0+incompatible
- Published
- Nov 6, 2015
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 3 days ago –
Tools for package owners.