mysql

package
v1.53.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2017 License: AGPL-3.0 Imports: 13 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 organisation 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