documents

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindDocInfoByKey added in v0.2.9

func FindDocInfoByKey(
	ctx context.Context,
	be *backend.Backend,
	project *types.Project,
	docKey key.Key,
) (*database.DocInfo, error)

FindDocInfoByKey returns a document for the given document key.

func FindDocInfoByKeyAndOwner added in v0.2.9

func FindDocInfoByKeyAndOwner(
	ctx context.Context,
	be *backend.Backend,
	project *types.Project,
	clientInfo *database.ClientInfo,
	docKey key.Key,
	createDocIfNotExist bool,
) (*database.DocInfo, error)

FindDocInfoByKeyAndOwner returns a document for the given document key and owner.

func GetDocumentByServerSeq added in v0.2.11

func GetDocumentByServerSeq(
	ctx context.Context,
	be *backend.Backend,
	project *types.Project,
	k key.Key,
	serverSeq int64,
) (*document.InternalDocument, error)

GetDocumentByServerSeq returns a document for the given server sequence.

func GetDocumentSummary

func GetDocumentSummary(
	ctx context.Context,
	be *backend.Backend,
	project *types.Project,
	k key.Key,
) (*types.DocumentSummary, error)

GetDocumentSummary returns a document summary.

func ListDocumentSummaries

func ListDocumentSummaries(
	ctx context.Context,
	be *backend.Backend,
	project *types.Project,
	paging types.Paging[types.ID],
) ([]*types.DocumentSummary, error)

ListDocumentSummaries returns a list of document summaries.

func SearchDocumentSummaries added in v0.2.13

func SearchDocumentSummaries(
	ctx context.Context,
	be *backend.Backend,
	project *types.Project,
	query string,
	pageSize int,
) (*types.SearchResult[*types.DocumentSummary], error)

SearchDocumentSummaries returns document summaries that match the query parameters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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