Documentation ¶ Index ¶ type Batch func New(db Batchable, logger storage.Logger) *Batch func (b *Batch) Commit() error func (b *Batch) Discard() func (b *Batch) Get(key storage.Key) (v []byte, err error) func (b *Batch) Put(key storage.Key, value []byte) func (b *Batch) PutAll(values map[storage.Key][]byte) type Batchable Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Batch ¶ type Batch struct { // contains filtered or unexported fields } func New ¶ func New(db Batchable, logger storage.Logger) *Batch func (*Batch) Commit ¶ func (b *Batch) Commit() error func (*Batch) Discard ¶ func (b *Batch) Discard() func (*Batch) Get ¶ func (b *Batch) Get(key storage.Key) (v []byte, err error) func (*Batch) Put ¶ func (b *Batch) Put(key storage.Key, value []byte) func (*Batch) PutAll ¶ func (b *Batch) PutAll(values map[storage.Key][]byte) type Batchable ¶ type Batchable interface { Get(storage.Key) ([]byte, error) EndBatch(map[storage.Key][]byte) error } Source Files ¶ View all Source files batch.go Click to show internal directories. Click to hide internal directories.