Documentation
¶
Index ¶
- Constants
- type FreeList
- func (cp *FreeList) Close() error
- func (cp *FreeList) Flush() (types.Work, error)
- func (cp *FreeList) Iter() (*Iterator, error)
- func (cp *FreeList) OutstandingWork() types.Work
- func (cp *FreeList) Put(blk types.Block) error
- func (fl *FreeList) StorageSize() (int64, error)
- func (cp *FreeList) Sync() error
- func (cp *FreeList) ToGC() (string, error)
- type Iterator
Constants ¶
View Source
const CIDSizePrefix = 4
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FreeList ¶
type FreeList struct {
// contains filtered or unexported fields
}
A primary storage that is CID aware.
func (*FreeList) Close ¶
Close calls Flush to write work and data to the freelist file, and then closes the file.
func (*FreeList) OutstandingWork ¶
func (*FreeList) StorageSize ¶ added in v0.2.0
StorageSize returns bytes of storage used by the freelist.
func (*FreeList) Sync ¶
Sync commits the contents of the freelist file to disk. Flush should be called before calling Sync.
Click to show internal directories.
Click to hide internal directories.