Documentation ¶
Index ¶
- func MarshalCBOR(o cbor.Marshaler) (cid.Cid, []byte, error)
- func NewADTStore(ctx context.Context) adt.Store
- type BlockStoreInMemory
- type MetricsBlockStore
- func (ms *MetricsBlockStore) Get(c cid.Cid) (block.Block, error)
- func (ms *MetricsBlockStore) Put(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 SyncBlockStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalCBOR ¶
Marshals an object to bytes for storing in state.
Types ¶
type BlockStoreInMemory ¶
type BlockStoreInMemory struct {
// contains filtered or unexported fields
}
A basic in-memory block store.
func NewBlockStoreInMemory ¶
func NewBlockStoreInMemory() *BlockStoreInMemory
type MetricsBlockStore ¶
type MetricsBlockStore struct { Writes uint64 WriteBytes uint64 Reads uint64 ReadBytes uint64 // contains filtered or unexported fields }
Metric-recording block store wrapper.
func NewMetricsBlockStore ¶
func NewMetricsBlockStore(underlying ipldcbor.IpldBlockstore) *MetricsBlockStore
func (*MetricsBlockStore) ReadCount ¶
func (ms *MetricsBlockStore) ReadCount() uint64
func (*MetricsBlockStore) ReadSize ¶
func (ms *MetricsBlockStore) ReadSize() uint64
func (*MetricsBlockStore) WriteCount ¶
func (ms *MetricsBlockStore) WriteCount() uint64
func (*MetricsBlockStore) WriteSize ¶
func (ms *MetricsBlockStore) WriteSize() uint64
type SyncBlockStore ¶
type SyncBlockStore struct {
// contains filtered or unexported fields
}
Synchronized block store wrapper.
func NewSyncBlockStore ¶
func NewSyncBlockStore(bs ipldcbor.IpldBlockstore) *SyncBlockStore
Click to show internal directories.
Click to hide internal directories.