Documentation ¶
Index ¶
- func MarshalCBOR(o cbor.Marshaler) (cid.Cid, []byte, error)
- func NewADTStore(ctx context.Context) adt.Store
- func NewSyncADTStore(ctx context.Context) adt.Store
- type BlockStoreInMemory
- type MetricsBlockStore
- func (ms *MetricsBlockStore) Get(ctx context.Context, c cid.Cid) (block.Block, error)
- func (ms *MetricsBlockStore) Put(ctx context.Context, b block.Block) error
- func (ms *MetricsBlockStore) ReadCount() uint64
- func (ms *MetricsBlockStore) ReadSize() uint64
- func (ms *MetricsBlockStore) WriteCount() uint64
- func (ms *MetricsBlockStore) WriteSize() uint64
- type SyncBlockStoreInMemory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalCBOR ¶ added in v2.3.1
Marshals an object to bytes for storing in state.
func NewADTStore ¶
Creates a new, empty IPLD store in memory.
Types ¶
type BlockStoreInMemory ¶
type BlockStoreInMemory struct {
// contains filtered or unexported fields
}
func NewBlockStoreInMemory ¶
func NewBlockStoreInMemory() *BlockStoreInMemory
type MetricsBlockStore ¶ added in v2.3.5
type MetricsBlockStore struct { Writes uint64 WriteBytes uint64 Reads uint64 ReadBytes uint64 // contains filtered or unexported fields }
func NewMetricsBlockStore ¶ added in v2.3.5
func NewMetricsBlockStore(underlying cbor.IpldBlockstore) *MetricsBlockStore
func (*MetricsBlockStore) ReadCount ¶ added in v2.3.5
func (ms *MetricsBlockStore) ReadCount() uint64
func (*MetricsBlockStore) ReadSize ¶ added in v2.3.5
func (ms *MetricsBlockStore) ReadSize() uint64
func (*MetricsBlockStore) WriteCount ¶ added in v2.3.5
func (ms *MetricsBlockStore) WriteCount() uint64
func (*MetricsBlockStore) WriteSize ¶ added in v2.3.5
func (ms *MetricsBlockStore) WriteSize() uint64
type SyncBlockStoreInMemory ¶ added in v2.0.3
type SyncBlockStoreInMemory struct {
// contains filtered or unexported fields
}
func NewSyncBlockStoreInMemory ¶ added in v2.0.3
func NewSyncBlockStoreInMemory() *SyncBlockStoreInMemory
Click to show internal directories.
Click to hide internal directories.