Documentation
¶
Index ¶
- type LevelDBStore
- func (s *LevelDBStore) Close() error
- func (s *LevelDBStore) Count() (count int, err error)
- func (s *LevelDBStore) Delete(addr chunk.Address) (err error)
- func (s *LevelDBStore) Get(addr chunk.Address) (c chunk.Chunk, err error)
- func (s *LevelDBStore) Has(addr chunk.Address) (yes bool, err error)
- func (s *LevelDBStore) Iterate(fn func(chunk.Chunk) (stop bool, err error)) (err error)
- func (s *LevelDBStore) Put(ch chunk.Chunk) (err error)
- type MetaStore
- func (s *MetaStore) Close() (err error)
- func (s *MetaStore) Count() (count int, err error)
- func (s *MetaStore) FreeOffset(shard uint8) (offset int64, err error)
- func (s *MetaStore) Get(addr chunk.Address) (m *forky.Meta, err error)
- func (s *MetaStore) Iterate(fn func(chunk.Address, *forky.Meta) (stop bool, err error)) (err error)
- func (s *MetaStore) Remove(addr chunk.Address, shard uint8) (err error)
- func (s *MetaStore) Set(addr chunk.Address, shard uint8, reclaimed bool, m *forky.Meta) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LevelDBStore ¶
type LevelDBStore struct {
// contains filtered or unexported fields
}
func NewLevelDBStore ¶
func NewLevelDBStore(path string) (s *LevelDBStore, err error)
func (*LevelDBStore) Close ¶
func (s *LevelDBStore) Close() error
func (*LevelDBStore) Count ¶ added in v0.1.1
func (s *LevelDBStore) Count() (count int, err error)
type MetaStore ¶
type MetaStore struct {
// contains filtered or unexported fields
}
func NewMetaStore ¶
func (*MetaStore) FreeOffset ¶
Click to show internal directories.
Click to hide internal directories.