Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Memory ¶ added in v0.6.1
type Memory struct {
// contains filtered or unexported fields
}
Memory is the interface for shared memory inside a subnet
func (*Memory) GetDatabase ¶ added in v0.6.1
GetDatabase returns and locks the provided DB
func (*Memory) Initialize ¶ added in v0.6.1
Initialize the SharedMemory
func (*Memory) NewSharedMemory ¶ added in v0.6.1
func (m *Memory) NewSharedMemory(id ids.ID) SharedMemory
NewSharedMemory returns a new SharedMemory
func (*Memory) ReleaseDatabase ¶ added in v0.6.1
ReleaseDatabase unlocks the provided DB
type SharedMemory ¶
type SharedMemory interface { ids.ID, elems []*Element, batches ...database.Batch) error // Fetches from this chain's side peerChainID ids.ID, traits [][]byte, startTrait, startKey []byte, limit int, ) ( values [][]byte, lastTrait, lastKey []byte, err error, ) }Put(peerChainID
SharedMemory ...
Click to show internal directories.
Click to hide internal directories.