Versions in this module Expand all Collapse all v0 v0.1.0 Apr 17, 2025 v0.0.2 Mar 27, 2025 Changes in this version + const CodecVersion + var Codec codec.Manager + func WriteAll(baseBatch database.Batch, batches ...database.Batch) error + type Element struct + Key []byte + Traits [][]byte + Value []byte + type Memory struct + func NewMemory(db database.Database) *Memory + func (m *Memory) GetSharedDatabase(db database.Database, sharedID ids.ID) database.Database + func (m *Memory) NewSharedMemory(chainID ids.ID) SharedMemory + func (m *Memory) ReleaseSharedDatabase(sharedID ids.ID) + type MockSharedMemory struct + func NewMockSharedMemory(ctrl *gomock.Controller) *MockSharedMemory + func (m *MockSharedMemory) Apply(arg0 map[ids.ID]*Requests, arg1 ...database.Batch) error + func (m *MockSharedMemory) EXPECT() *MockSharedMemoryMockRecorder + func (m *MockSharedMemory) Get(arg0 ids.ID, arg1 [][]byte) ([][]byte, error) + func (m *MockSharedMemory) Indexed(arg0 ids.ID, arg1 [][]byte, arg2, arg3 []byte, arg4 int) ([][]byte, []byte, []byte, error) + type MockSharedMemoryMockRecorder struct + func (mr *MockSharedMemoryMockRecorder) Apply(arg0 any, arg1 ...any) *gomock.Call + func (mr *MockSharedMemoryMockRecorder) Get(arg0, arg1 any) *gomock.Call + func (mr *MockSharedMemoryMockRecorder) Indexed(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call + type Requests struct + PutRequests []*Element + RemoveRequests [][]byte + type SharedMemory interface + Apply func(requests map[ids.ID]*Requests, batches ...database.Batch) error + Get func(peerChainID ids.ID, keys [][]byte) (values [][]byte, err error) + Indexed func(peerChainID ids.ID, traits [][]byte, startTrait, startKey []byte, limit int) (values [][]byte, lastTrait, lastKey []byte, err error)