Documentation ¶
Index ¶
- Constants
- func GenRowID(name string) (string, error)
- func UpdateLazyCache(index *Index) error
- type Entry
- type Index
- func (i *Index) AddEntries(keyValMap map[string]string) error
- func (i *Index) AddEntry(path string, rs *gjson.Result) error
- func (i *Index) CloseStore() error
- func (i *Index) CreateIndex() error
- func (i *Index) Delete(path string) error
- func (i *Index) DeleteMany(paths []string) error
- func (i *Index) GetAllEntries() (map[string]string, error)
- func (i *Index) GetEntriesByOrQueries(queries []string) (map[string]string, error)
- func (i *Index) GetEntriesByQueries(queries []string) (map[string]string, error)
- func (i *Index) GetEntryByPath(path string) (string, error)
- func (i *Index) GetEntryByQueries(queries []string) (Entry, bool, error)
- func (index *Index) LoadIndexEntriesFromFile() error
- func (i *Index) ReplaceIndex() error
- func (i *Index) SetFields(indexField ...IndexField) *Index
- func (index *Index) WriteIndexEntriesInFile() error
- type IndexField
- type IndexStore
- func (i *IndexStore) AddMany(keyValMap map[string]string) (err error)
- func (i IndexStore) Close() error
- func (i *IndexStore) Delete(key string) error
- func (i *IndexStore) Get(path string) (val string, err error)
- func (i *IndexStore) GetMany() (map[string]string, error)
- func (i *IndexStore) GetManyByOrQuery(queries []string) (map[string]string, error)
- func (i *IndexStore) GetManyByQuery(queries []string) (map[string]string, error)
- func (i *IndexStore) GetOneByQuery(queries []string) (entry Entry, found bool, err error)
- func (i *IndexStore) Set(key, value string) (err error)
Constants ¶
View Source
const ( LineBreak = "\r\n" IndexKeyValSeperator = "=" )
Variables ¶
This section is empty.
Functions ¶
func GenRowID ¶
GenRowID generates hash for the given filename. The length of hash is 16
Types ¶
type Index ¶
type Index struct { IndexID string `json:"indexId"` IndexNameQuery string `json:"indexNameQuery"` BucketSequence []string `json:"bucketSequence"` IndexFields []IndexField `json:"indexFields"` IsDynamicName bool `json:"isDynamicName"` IndexFilePath string SecurityProvider securityprovider.SecurityProvider // contains filtered or unexported fields }
Index - Index
func NewIndex ¶
func (*Index) GetEntriesByOrQueries ¶ added in v1.2.5
DhawalD - Added GetEntriesByOrQueries - 31-July-2021
func (*Index) GetEntriesByQueries ¶
func (*Index) GetEntryByQueries ¶
func (*Index) SetFields ¶
func (i *Index) SetFields(indexField ...IndexField) *Index
SetFields - SetFields
type IndexField ¶
IndexField - IndexField
type IndexStore ¶
type IndexStore struct {
// contains filtered or unexported fields
}
func (*IndexStore) AddMany ¶
func (i *IndexStore) AddMany(keyValMap map[string]string) (err error)
func (IndexStore) Close ¶
func (i IndexStore) Close() error
func (*IndexStore) Delete ¶
func (i *IndexStore) Delete(key string) error
func (*IndexStore) Get ¶
func (i *IndexStore) Get(path string) (val string, err error)
func (*IndexStore) GetMany ¶
func (i *IndexStore) GetMany() (map[string]string, error)
func (*IndexStore) GetManyByOrQuery ¶ added in v1.2.5
func (i *IndexStore) GetManyByOrQuery(queries []string) (map[string]string, error)
GetManyByOrQuery - For getting many data by OR entry DhawalD - Added GetManyByOrQuery - 31-July-2021
func (*IndexStore) GetManyByQuery ¶
func (i *IndexStore) GetManyByQuery(queries []string) (map[string]string, error)
func (*IndexStore) GetOneByQuery ¶
func (i *IndexStore) GetOneByQuery(queries []string) (entry Entry, found bool, err error)
func (*IndexStore) Set ¶
func (i *IndexStore) Set(key, value string) (err error)
Click to show internal directories.
Click to hide internal directories.