Documentation
¶
Index ¶
- type RAMStore
- func (store RAMStore) GetBlock(hash []byte) *blocktrain.Block
- func (store RAMStore) GetData(txID string) []byte
- func (store RAMStore) GetTree(hash []byte) *blocktrain.MerkleNode
- func (store RAMStore) InsertBlock(block *blocktrain.Block)
- func (store RAMStore) InsertData(data []byte, txID string)
- func (store RAMStore) InsertTree(root *blocktrain.MerkleNode)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RAMStore ¶
type RAMStore struct {
// contains filtered or unexported fields
}
func NewRAMStore ¶
func NewRAMStore() RAMStore
func (RAMStore) GetTree ¶
func (store RAMStore) GetTree(hash []byte) *blocktrain.MerkleNode
func (RAMStore) InsertBlock ¶
func (store RAMStore) InsertBlock(block *blocktrain.Block)
func (RAMStore) InsertData ¶
func (RAMStore) InsertTree ¶
func (store RAMStore) InsertTree(root *blocktrain.MerkleNode)
Click to show internal directories.
Click to hide internal directories.