Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMemoryDBSchema ¶
func CreateMemoryDBSchema(tableSchemas map[string]*memdb.TableSchema) *memdb.DBSchema
Types ¶
type MemoryDB ¶
type MemoryDB struct {
// contains filtered or unexported fields
}
func NewMemoryDB ¶
func (*MemoryDB) InsertMany ¶
func (*MemoryDB) SaveSnapShot ¶
func (m *MemoryDB) SaveSnapShot()
type Record ¶
type Record struct { SType StorageType RType StorageElementsType ID string Data []byte Immutable bool CreatedOn time.Time UpdatedOn time.Time DeletedOn time.Time Ref *RecordIndex }
type RecordIndex ¶
type StorageElementsType ¶
type StorageElementsType int
const ( BLOCK StorageElementsType = iota BLOCKHEADER TRANSACTION QUEUEITEM PRIVWALLET CONTENT CONTRACT KEY PEER ACCOUNT EPHEMERAL_DATA CHAIN_UPGRADE RECEIPTS MERKLEROOT HASH MEDIA HTML SCRIPT EXCHANGEDATA BANKDATA JSON BYTES PROTO )
type StorageType ¶
type StorageType int
const ( MEMORY StorageType = iota LEVELDB BADGER VAULT QUEUE )
Click to show internal directories.
Click to hide internal directories.