meta

package
v2.3.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Runtime *env.Runtime
	Store   *store.Store
	Indexer indexer.Indexer
}

Handler contains the runtime information such as logging and database.

func (h *Handler) DefaultLogo(w http.ResponseWriter, r *http.Request)

DefaultLogo write the default Documize logo to the HTTP response.

func (h *Handler) Logo(w http.ResponseWriter, r *http.Request)

Logo returns site logo based upon request domain (e.g. acme.documize.com). The default Documize logo is returned if organization has not uploaded their own logo.

func (*Handler) Meta

func (h *Handler) Meta(w http.ResponseWriter, r *http.Request)

Meta provides org meta data based upon request domain (e.g. acme.documize.com).

func (*Handler) Reindex added in v1.60.0

func (h *Handler) Reindex(w http.ResponseWriter, r *http.Request)

Reindex indexes all documents and attachments.

func (*Handler) RobotsTxt

func (h *Handler) RobotsTxt(w http.ResponseWriter, r *http.Request)

RobotsTxt returns robots.txt depending on site configuration. Did we allow anonymouse access?

func (*Handler) SearchStatus added in v1.60.0

func (h *Handler) SearchStatus(w http.ResponseWriter, r *http.Request)

SearchStatus returns state of search index

func (*Handler) Sitemap

func (h *Handler) Sitemap(w http.ResponseWriter, r *http.Request)

Sitemap returns URLs that can be indexed. We only include public folders and documents (e.g. can be seen by everyone).

func (*Handler) Themes

func (h *Handler) Themes(w http.ResponseWriter, r *http.Request)

Themes returns list of installed UI themes.

type Store added in v1.71.0

type Store struct {
	store.Context
	store.MetaStorer
}

Store provides data access to space category information.

func (Store) Attachments added in v1.71.0

func (s Store) Attachments(ctx domain.RequestContext, docID string) (a []attachment.Attachment, err error)

Attachments returns a slice containing the attachment records (excluding their data) for document docID, ordered by filename.

func (Store) Document added in v1.71.0

func (s Store) Document(ctx domain.RequestContext, id string) (document doc.Document, err error)

Document fetches the document record with the given id fromt the document table and audits that it has been got.

func (Store) Documents added in v1.71.0

func (s Store) Documents(ctx domain.RequestContext) (documents []string, err error)

Documents returns every document ID value stored. The query runs at the instance level across all tenants.

func (Store) Pages added in v1.71.0

func (s Store) Pages(ctx domain.RequestContext, documentID string) (p []page.Page, err error)

Pages returns a slice containing all published page records for a given documentID, in presentation sequence.

func (Store) SearchIndexCount added in v1.71.0

func (s Store) SearchIndexCount(ctx domain.RequestContext) (c int, err error)

SearchIndexCount returns the numnber of index entries.

Jump to

Keyboard shortcuts

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