Documentation ¶
Index ¶
- Variables
- type Interface
- type Meta
- type MetaStore
- type Store
- func (s *Store) Close() (err error)
- func (s *Store) Count() (count int, err error)
- func (s *Store) Delete(addr chunk.Address) (err error)
- func (s *Store) Get(addr chunk.Address) (ch chunk.Chunk, err error)
- func (s *Store) Has(addr chunk.Address) (yes bool, err error)
- func (s *Store) Iterate(fn func(chunk.Chunk) (stop bool, err error)) (err error)
- func (s *Store) Put(ch chunk.Chunk) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDBClosed = errors.New("closed database")
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { Get(addr chunk.Address) (ch chunk.Chunk, err error) Has(addr chunk.Address) (yes bool, err error) Put(ch chunk.Chunk) (err error) Delete(addr chunk.Address) (err error) Count() (count int, err error) Iterate(func(ch chunk.Chunk) (stop bool, err error)) (err error) Close() (err error) }
type MetaStore ¶
type MetaStore interface { Get(addr chunk.Address) (*Meta, error) Set(addr chunk.Address, shard uint8, reclaimed bool, m *Meta) error Remove(addr chunk.Address, shard uint8) error Count() (int, error) Iterate(func(chunk.Address, *Meta) (stop bool, err error)) error FreeOffset(shard uint8) (int64, error) Close() error }
Click to show internal directories.
Click to hide internal directories.