Documentation ¶
Index ¶
- Constants
- type CDocument
- type CFeature
- func (f *CFeature) AddSearchDocumentMapping(tag language.Tag, indexMapping *mapping.IndexMappingImpl)
- func (f *CFeature) AddSources() (sources enjinql.ConfigSources)
- func (f *CFeature) AddToSource(tx enjinql.SqlTX, sid int64, stub *feature.PageStub, p feature.Page) (err error)
- func (f *CFeature) Extensions() (extensions []string)
- func (f *CFeature) IndexDocument(pg feature.Page) (out interface{}, err error)
- func (f *CFeature) Init(this interface{})
- func (f *CFeature) Label() (label string)
- func (f *CFeature) Make() Feature
- func (f *CFeature) MakeFuncMap(ctx context.Context) (fm feature.FuncMap)
- func (f *CFeature) Name() (name string)
- func (f *CFeature) NewDocumentMapping(tag language.Tag) (doctype, analyzer string, dm *mapping.DocumentMapping)
- func (f *CFeature) Prepare(ctx context.Context, content string) (out context.Context, err error)
- func (f *CFeature) Process(ctx context.Context, content string) (html template.HTML, redirect string, err error)
- func (f *CFeature) RemoveFromSource(tx enjinql.SqlTX, sid int64, stub *feature.PageStub, p feature.Page) (err error)
- func (f *CFeature) SearchDocumentMapping(tag language.Tag) (doctype string, dm *mapping.DocumentMapping)
- func (f *CFeature) Setup(enjin feature.Internals)
- type Document
- type Feature
- type MakeFeature
Constants ¶
View Source
const (
Tag feature.Tag = "quote-page-format"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CDocument ¶
type CDocument struct { search.CDocument Author string `json:"author"` Categories []string `json:"categories"` }
func NewQuoteDocument ¶
func (*CDocument) AddCategory ¶
type CFeature ¶
func (*CFeature) AddSearchDocumentMapping ¶
func (f *CFeature) AddSearchDocumentMapping(tag language.Tag, indexMapping *mapping.IndexMappingImpl)
func (*CFeature) AddSources ¶
func (f *CFeature) AddSources() (sources enjinql.ConfigSources)
func (*CFeature) AddToSource ¶
func (*CFeature) Extensions ¶
func (*CFeature) IndexDocument ¶
func (*CFeature) MakeFuncMap ¶
func (*CFeature) NewDocumentMapping ¶
func (*CFeature) RemoveFromSource ¶
func (*CFeature) SearchDocumentMapping ¶
type Feature ¶
type Feature interface { feature.Feature feature.PageFormat feature.FuncMapProvider feature.QueryIndexSourceFeature }
Click to show internal directories.
Click to hide internal directories.