Documentation ¶
Index ¶
- type SearchIndex
- func (i *SearchIndex) Delete() error
- func (i *SearchIndex) GetContent() map[string]string
- func (i *SearchIndex) HasContent() bool
- func (i *SearchIndex) HasKind(kind types.StoreKind) bool
- func (i *SearchIndex) ShouldBeUsed(config *types.Config, storeLocalRefreshIndexAfter *time.Duration) (bool, error)
- func (i *SearchIndex) Write(toWrite types.Index) error
- func (i *SearchIndex) WriteState(toWrite types.IndexState) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SearchIndex ¶
type SearchIndex struct {
// contains filtered or unexported fields
}
func New ¶
func New(log *logrus.Entry, storeKind types.StoreKind, stateDirectory string, storeID string) (*SearchIndex, error)
New creates a new SearchIndex
func (*SearchIndex) Delete ¶
func (i *SearchIndex) Delete() error
func (*SearchIndex) GetContent ¶
func (i *SearchIndex) GetContent() map[string]string
func (*SearchIndex) HasContent ¶
func (i *SearchIndex) HasContent() bool
func (*SearchIndex) ShouldBeUsed ¶
func (i *SearchIndex) ShouldBeUsed(config *types.Config, storeLocalRefreshIndexAfter *time.Duration) (bool, error)
ShouldBeUsed checks if the index file with pre-computed mappings should be used
func (*SearchIndex) WriteState ¶
func (i *SearchIndex) WriteState(toWrite types.IndexState) error
Click to show internal directories.
Click to hide internal directories.