Documentation ¶
Index ¶
- type StateDB
- type Transaction
- func (t *Transaction) BatchSet(data map[string][]byte)
- func (t *Transaction) Commit()
- func (t *Transaction) Get(key string) []byte
- func (t *Transaction) GetBuffer() []byte
- func (t *Transaction) ID() int64
- func (t *Transaction) NewTx() *Tx
- func (t *Transaction) Rollback()
- func (t *Transaction) Set(key string, value []byte)
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateDB ¶
type StateDB struct {
// contains filtered or unexported fields
}
func (*StateDB) NewCommittableTransaction ¶
func (s *StateDB) NewCommittableTransaction() *Transaction
func (*StateDB) NewRollbackTransaction ¶
func (s *StateDB) NewRollbackTransaction() *Transaction
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
func (*Transaction) BatchSet ¶
func (t *Transaction) BatchSet(data map[string][]byte)
func (*Transaction) Commit ¶
func (t *Transaction) Commit()
func (*Transaction) Get ¶
func (t *Transaction) Get(key string) []byte
func (*Transaction) GetBuffer ¶
func (t *Transaction) GetBuffer() []byte
func (*Transaction) ID ¶
func (t *Transaction) ID() int64
func (*Transaction) NewTx ¶
func (t *Transaction) NewTx() *Tx
func (*Transaction) Rollback ¶
func (t *Transaction) Rollback()
func (*Transaction) Set ¶
func (t *Transaction) Set(key string, value []byte)
Click to show internal directories.
Click to hide internal directories.