mysql

package
v1.65.4 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2018 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scope

type Scope struct {
	Runtime *env.Runtime
}

Scope provides data access to MySQL.

func (Scope) DeleteContent added in v1.52.0

func (s Scope) DeleteContent(ctx domain.RequestContext, pageID string) (err error)

DeleteContent removes all search entries for specific document content.

func (Scope) DeleteDocument

func (s Scope) DeleteDocument(ctx domain.RequestContext, ID string) (err error)

DeleteDocument removes all search entries for document.

func (Scope) Documents

func (s Scope) Documents(ctx domain.RequestContext, q search.QueryOptions) (results []search.QueryResult, err error)

Documents searches the documents that the client is allowed to see, using the keywords search string, then audits that search. Visible documents include both those in the client's own organization and those that are public, or whose visibility includes the client.

func (Scope) IndexContent added in v1.52.0

func (s Scope) IndexContent(ctx domain.RequestContext, p page.Page) (err error)

IndexContent adds search index entry for document context. Any existing document entries are removed.

func (Scope) IndexDocument added in v1.52.0

func (s Scope) IndexDocument(ctx domain.RequestContext, doc doc.Document, a []attachment.Attachment) (err error)

IndexDocument adds search index entries for document inserting title, tags and attachments as searchable items. Any existing document entries are removed.

Jump to

Keyboard shortcuts

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