editor

package
v0.0.0-...-3a5708c Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package editor serves the editor UI. It allows users to edit wiki files. Therein, it depends on more basic services like reading or writing files, access control, templating etc., which are implemented in other packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Editor

type Editor struct {
	// contains filtered or unexported fields
}

The Editor is a HTTP Handler that serves the editor UI. While the UI itself is implemented in a HTML template, this type implements the logic behind the UI.

func New

func New(l templates.Loader, s store.Store) *Editor

New initializes a new instance ready to use. The instance includes a loaded and parsed template.

func (*Editor) ServeHTTP

func (e *Editor) ServeHTTP(writer http.ResponseWriter, request *http.Request)

Jump to

Keyboard shortcuts

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