Documentation
¶
Index ¶
- type Index
- func (i *Index) All(ctx context.Context, yield func(model.SectionID) bool) error
- func (i *Index) DeleteByID(ctx context.Context, ids ...model.SectionID) error
- func (i *Index) DeleteBySource(ctx context.Context, source *url.URL) error
- func (i *Index) GenerateSnapshot(ctx context.Context) (io.ReadCloser, error)
- func (i *Index) Index(ctx context.Context, document model.Document, funcs ...port.IndexOptionFunc) error
- func (i *Index) RestoreSnapshot(ctx context.Context, r io.Reader) error
- func (i *Index) Search(ctx context.Context, query string, opts port.IndexSearchOptions) ([]*port.IndexSearchResult, error)
- type SnapshottedMetadata
- type SnapshottedRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func (*Index) DeleteByID ¶
DeleteByID implements port.Index.
func (*Index) DeleteBySource ¶
DeleteBySource implements port.Index.
func (*Index) GenerateSnapshot ¶
GenerateSnapshot implements snapshot.Snapshotable.
func (*Index) Index ¶
func (i *Index) Index(ctx context.Context, document model.Document, funcs ...port.IndexOptionFunc) error
Index implements port.Index.
func (*Index) RestoreSnapshot ¶
RestoreSnapshot implements snapshot.Snapshotable.
type SnapshottedMetadata ¶
type SnapshottedMetadata struct {
Model string
}
Click to show internal directories.
Click to hide internal directories.