page

package
v1.65.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2018 License: AGPL-3.0 Imports: 24 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   *domain.Store
	Indexer indexer.Indexer
}

Handler contains the runtime information such as logging and database.

func (*Handler) Add

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

Add inserts new section into document.

func (*Handler) ChangePageLevel

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

ChangePageLevel handles page indent/outdent changes.

func (*Handler) ChangePageSequence

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

ChangePageSequence will swap page sequence for a given number of pages.

func (*Handler) Copy

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

Copy copies page to either same or different document.

func (*Handler) Delete

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

Delete a page.

func (*Handler) DeletePages

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

DeletePages batch deletes pages.

func (*Handler) FetchPages added in v1.56.0

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

FetchPages returns all page data for given document: page, meta data, pending changes.

func (*Handler) GetDiff

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

GetDiff returns HTML diff between two revisions of a given page.

func (*Handler) GetDocumentRevisions

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

GetDocumentRevisions returns all changes for a document.

func (*Handler) GetMeta

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

GetMeta gets page meta data for specified document page.

func (*Handler) GetPage

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

GetPage gets specified page for document.

func (*Handler) GetPages

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

GetPages gets all pages for document.

func (*Handler) GetRevisions

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

GetRevisions returns all changes for a given page.

func (*Handler) LevelizeDocument added in v1.56.0

func (h *Handler) LevelizeDocument(ctx domain.RequestContext, documentID string)

LevelizeDocument generates level and sequence numbers for all document sections

func (*Handler) Rollback

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

Rollback rolls back to a specific page revision.

func (*Handler) Update

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

Update will persist changed page and note the fact that this is a new revision. If the page is the first in a document then the corresponding document title will also be changed. Draft documents do not get revision entry.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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