community: github.com/documize/community/domain/meta Index | Files

package meta

import "github.com/documize/community/domain/meta"

Index

Package Files

endpoint.go store.go

type Handler Uses

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 Uses

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) RobotsTxt Uses

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) Sitemap Uses

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 Uses

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

Themes returns list of installed UI themes.

type Store Uses

type Store struct {
    store.Context
    store.MetaStorer
}

Store provides data access to space category information.

func (Store) Attachments Uses

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 Uses

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 Uses

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

Documents returns every document ID value stored. For global admins, the query runs at the instance level across all tenants. For tenant admins, the query is restricted to the tenant.

func (Store) Pages Uses

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 Uses

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

SearchIndexCount returns the numnber of index entries.

Package meta imports 22 packages (graph) and is imported by 2 packages. Updated 2019-08-19. Refresh now. Tools for package owners.