Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTxSupport = errors.New("transaction is not supported")
)
Functions ¶
func ListStores ¶
func ListStores() []string
Types ¶
type BatchPuter ¶
type IWriteBatch ¶
type IWriteBatch interface { Put(key []byte, value []byte) Delete(key []byte) Commit() error Rollback() error }
func NewWriteBatch ¶
func NewWriteBatch(puter BatchPuter) IWriteBatch
type Store ¶
type WriteBatch ¶
type WriteBatch struct {
// contains filtered or unexported fields
}
func (*WriteBatch) Commit ¶
func (w *WriteBatch) Commit() error
func (*WriteBatch) Delete ¶
func (w *WriteBatch) Delete(key []byte)
func (*WriteBatch) Put ¶
func (w *WriteBatch) Put(key, value []byte)
func (*WriteBatch) Rollback ¶
func (w *WriteBatch) Rollback() error
Click to show internal directories.
Click to hide internal directories.