page

package
v1.53.5 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2017 License: AGPL-3.0 Imports: 21 Imported by: 6

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 deletes a page.

func (*Handler) DeletePages

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

DeletePages batch deletes pages.

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) GetMoveCopyTargets

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

GetMoveCopyTargets returns available documents for page copy/move axction.

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) GetPagesBatch

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

GetPagesBatch gets specified 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) 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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