Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory is the interface for shared memory inside a subnet
func (*Memory) GetDatabase ¶
GetDatabase returns and locks the provided DB
func (*Memory) Initialize ¶
Initialize the SharedMemory
func (*Memory) NewSharedMemory ¶
func (m *Memory) NewSharedMemory(id ids.ID) SharedMemory
NewSharedMemory returns a new SharedMemory
func (*Memory) ReleaseDatabase ¶
ReleaseDatabase unlocks the provided DB
type SharedMemory ¶
type SharedMemory interface {
Put(peerChainID 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,
)
}
SharedMemory ...
Click to show internal directories.
Click to hide internal directories.