Documentation ¶
Index ¶
- type Engine
- func (e *Engine) Close() error
- func (e *Engine) Flush() error
- func (e *Engine) Get(m multihash.Multihash) ([]indexer.Value, bool, error)
- func (e *Engine) Iter() (indexer.Iterator, error)
- func (e *Engine) Put(value indexer.Value, mhs ...multihash.Multihash) error
- func (e *Engine) Remove(value indexer.Value, mhs ...multihash.Multihash) error
- func (e *Engine) RemoveProvider(ctx context.Context, providerID peer.ID) error
- func (e *Engine) RemoveProviderContext(providerID peer.ID, contextID []byte) error
- func (e *Engine) Size() (int64, error)
- func (e *Engine) Stats() (*indexer.Stats, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine is an implementation of indexer.Interface that combines a value store and an optional result cache.
func New ¶
New implements the indexer.Interface. It creates a new Engine with the given result cache and value store.
func (*Engine) RemoveProvider ¶
func (*Engine) RemoveProviderContext ¶
Click to show internal directories.
Click to hide internal directories.