viewer

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: 13 Imported by: 0

Documentation

Overview

Package viewer determines how to display the wiki's content. It uses renderers like Markdown and builds up on more basic services like file access, access control, templating etc. implemented in other packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Viewer

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

The Viewer serves HTTP requests with content from the filesystem.

func New

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

New initializes a Viewer instance ready to use.

func (*Viewer) ServeHTTP

func (v *Viewer) 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