Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheEnjinFeature ¶
type CacheEnjinFeature interface {
NewCache(bucket string) (err error)
Mounted(bucket, path string) (ok bool)
Mount(bucket, mount, path string, mfs fs.FileSystem)
Rebuild(bucket string) (ok bool)
Lookup(bucket string, tag language.Tag, url string) (mount, path string, p *page.Page, err error)
LookupTranslations(bucket, url string) (pgs []*page.Page)
LookupRedirect(bucket, url string) (p *page.Page, ok bool)
LookupPrefix(bucket, prefix string) (found []*page.Page)
TotalCached(bucket string) (count uint64)
}
type KeywordProvider ¶
type PageContextProvider ¶
type PageContextProvider interface {
FindPageStub(shasum string) (stub *fs.PageStub)
PageContextValuesCount(key string) (count uint64)
PageContextValueCounts(key string) (counts map[interface{}]uint64)
YieldPageContextValues(key string) (values chan interface{})
YieldPageContextValueStubs(key string) (pairs chan *fs.ValueStubPair)
YieldFilterPageContextValueStubs(include bool, key string, value interface{}) (pairs chan *fs.ValueStubPair)
FilterPageContextValueStubs(include bool, key string, value interface{}) (stubs fs.PageStubs)
}
type PageIndexFeature ¶
type QueryIndexFeature ¶
type SearchDocumentMapperFeature ¶
type SearchDocumentMapperFeature interface {
SearchDocumentMapping(tag language.Tag) (doctype string, dm *mapping.DocumentMapping)
AddSearchDocumentMapping(tag language.Tag, indexMapping *mapping.IndexMappingImpl)
}
type SearchEnjinFeature ¶
type SearchEnjinFeature interface {
PrepareSearch(tag language.Tag, input string) (query string)
PerformSearch(tag language.Tag, input string, size, pg int) (results *bleve.SearchResult, err error)
AddToSearchIndex(stub *fs.PageStub, p *page.Page) (err error)
RemoveFromSearchIndex(tag language.Tag, file, shasum string)
}
Click to show internal directories.
Click to hide internal directories.