Documentation
¶
Index ¶
- Constants
- type MemStore
- func (ms *MemStore) Close() error
- func (ms *MemStore) DeleteAccount(app, address common.Address) (*model.AppAccount, bool, error)
- func (ms *MemStore) DeleteAccountsAfterBlock(blockNumber int64) error
- func (ms *MemStore) GetAccount(app, address common.Address) (*model.AppAccount, bool, error)
- func (ms *MemStore) IsRecordNotFound(err error) bool
- func (ms *MemStore) SaveAccount(account *model.AppAccount) error
- func (ms *MemStore) SaveAccountWithTxn(txn *memdb.Txn, account *model.AppAccount) error
Constants ¶
View Source
const (
AppAccountDBName = "account"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemStore ¶
type MemStore struct {
*memdb.MemDB
}
func MustNewStoreFromViper ¶
func MustNewStoreFromViper() *MemStore
func (*MemStore) DeleteAccount ¶
func (*MemStore) DeleteAccountsAfterBlock ¶
func (*MemStore) GetAccount ¶
func (*MemStore) IsRecordNotFound ¶
func (*MemStore) SaveAccount ¶
func (ms *MemStore) SaveAccount(account *model.AppAccount) error
func (*MemStore) SaveAccountWithTxn ¶
func (ms *MemStore) SaveAccountWithTxn(txn *memdb.Txn, account *model.AppAccount) error
Click to show internal directories.
Click to hide internal directories.