Documentation ¶
Index ¶
- type Handler
- func (h *Handler) Add(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ChangePageLevel(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ChangePageSequence(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Copy(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Delete(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeletePages(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDiff(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDocumentRevisions(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetMeta(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetMoveCopyTargets(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetPage(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetPages(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetPagesBatch(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetRevisions(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Rollback(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Update(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
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.