ipfs-search/ipfs-search

View on GitHub
components/index/index.go

Summary

Maintainability
A
0 mins
Test Coverage
// Package index is grouped around the Index component, representing an index which stores and retrieves document properties.
package index

import (
    "context"
)

// Index represents an index which stores and retrieves document properties.
type Index interface {
    Index(ctx context.Context, id string, properties interface{}) error
    Update(ctx context.Context, id string, properties interface{}) error
    Get(ctx context.Context, id string, dst interface{}, fields ...string) (bool, error)
    Delete(ctx context.Context, id string) error
}