Documentation ¶
Index ¶
- type MemoryStore
- func (db *MemoryStore) Change(prefix byte, key []byte, trie bool)
- func (db *MemoryStore) Delete(prefix byte, key []byte)
- func (db *MemoryStore) Get(prefix byte, key []byte) *common.StateItem
- func (db *MemoryStore) GetChangeSet() map[string]*common.StateItem
- func (db *MemoryStore) Put(prefix byte, key []byte, value states.StateValue, state common.ItemState, ...)
- type StateBatch
- func (this *StateBatch) Change(prefix byte, key []byte, trie bool)
- func (self *StateBatch) CommitTo() error
- func (self *StateBatch) Find(prefix common.DataEntryPrefix, key []byte) ([]*common.StateItem, error)
- func (self *StateBatch) TryAdd(prefix common.DataEntryPrefix, key []byte, value states.StateValue, trie bool)
- func (self *StateBatch) TryDelete(prefix common.DataEntryPrefix, key []byte)
- func (self *StateBatch) TryGet(prefix common.DataEntryPrefix, key []byte) (*common.StateItem, error)
- func (self *StateBatch) TryGetAndChange(prefix common.DataEntryPrefix, key []byte, trie bool) (states.StateValue, error)
- func (self *StateBatch) TryGetOrAdd(prefix common.DataEntryPrefix, key []byte, value states.StateValue, trie bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
func NewMemDatabase ¶
func NewMemDatabase() *MemoryStore
func (*MemoryStore) Delete ¶
func (db *MemoryStore) Delete(prefix byte, key []byte)
func (*MemoryStore) GetChangeSet ¶
func (db *MemoryStore) GetChangeSet() map[string]*common.StateItem
func (*MemoryStore) Put ¶
func (db *MemoryStore) Put(prefix byte, key []byte, value states.StateValue, state common.ItemState, trie bool)
type StateBatch ¶
type StateBatch struct {
// contains filtered or unexported fields
}
func NewStateStoreBatch ¶
func NewStateStoreBatch(memoryStore common.MemoryCacheStore, store common.PersistStore) *StateBatch
func (*StateBatch) CommitTo ¶
func (self *StateBatch) CommitTo() error
func (*StateBatch) Find ¶
func (self *StateBatch) Find(prefix common.DataEntryPrefix, key []byte) ([]*common.StateItem, error)
func (*StateBatch) TryAdd ¶
func (self *StateBatch) TryAdd(prefix common.DataEntryPrefix, key []byte, value states.StateValue, trie bool)
func (*StateBatch) TryDelete ¶
func (self *StateBatch) TryDelete(prefix common.DataEntryPrefix, key []byte)
func (*StateBatch) TryGet ¶
func (self *StateBatch) TryGet(prefix common.DataEntryPrefix, key []byte) (*common.StateItem, error)
func (*StateBatch) TryGetAndChange ¶
func (self *StateBatch) TryGetAndChange(prefix common.DataEntryPrefix, key []byte, trie bool) (states.StateValue, error)
func (*StateBatch) TryGetOrAdd ¶
func (self *StateBatch) TryGetOrAdd(prefix common.DataEntryPrefix, key []byte, value states.StateValue, trie bool) error
Click to show internal directories.
Click to hide internal directories.