json

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Tag feature.Tag = "pages-formats-json"

Variables

This section is empty.

Functions

This section is empty.

Types

type CDocument

type CDocument struct {
	search.CDocument
}

func NewTextDocument

func NewTextDocument(language, url, title string) (doc *CDocument)

func (*CDocument) Self

func (d *CDocument) Self() interface{}

type CFeature

type CFeature struct {
	feature.CFeature
}

func (*CFeature) AddSearchDocumentMapping

func (f *CFeature) AddSearchDocumentMapping(tag language.Tag, indexMapping *mapping.IndexMappingImpl)

func (*CFeature) Extensions

func (f *CFeature) Extensions() (extensions []string)

func (*CFeature) IndexDocument

func (f *CFeature) IndexDocument(pg feature.Page) (out interface{}, err error)

func (*CFeature) Init

func (f *CFeature) Init(this interface{})

func (*CFeature) Label

func (f *CFeature) Label() (label string)

func (*CFeature) Make

func (f *CFeature) Make() Feature

func (*CFeature) Name

func (f *CFeature) Name() (name string)

func (*CFeature) NewDocumentMapping

func (f *CFeature) NewDocumentMapping(tag language.Tag) (doctype, analyzer string, dm *mapping.DocumentMapping)

func (*CFeature) Prepare

func (f *CFeature) Prepare(ctx context.Context, content string) (out context.Context, err error)

func (*CFeature) Process

func (f *CFeature) Process(ctx context.Context, content string) (html htmlTemplate.HTML, redirect string, err error)

func (*CFeature) SearchDocumentMapping

func (f *CFeature) SearchDocumentMapping(tag language.Tag) (doctype string, dm *mapping.DocumentMapping)

func (*CFeature) Setup

func (f *CFeature) Setup(enjin feature.Internals)

type Document

type Document interface {
	search.Document
}

type Feature

type Feature interface {
	feature.Feature
	feature.PageFormat
}

type MakeFeature

type MakeFeature interface {
	Make() Feature
}

func New

func New() MakeFeature

func NewTagged added in v0.4.0

func NewTagged(tag feature.Tag) MakeFeature

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL