handlers

package
v0.0.0-...-d01289e Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateArchiveApiHandler

func CreateArchiveApiHandler(w http.ResponseWriter, r *http.Request)

func CreateArchiveHandler

func CreateArchiveHandler(w http.ResponseWriter, r *http.Request)

func CreateRoutes

func CreateRoutes() *mux.Router

func NotFoundPage

func NotFoundPage(w http.ResponseWriter, r *http.Request)

func RespondError

func RespondError(w http.ResponseWriter, r *http.Request, err error)

func RespondJson

func RespondJson(w http.ResponseWriter, data interface{})

func RespondSuccessJson

func RespondSuccessJson(w http.ResponseWriter, data interface{})

func RespondSuccessTemplate

func RespondSuccessTemplate(w http.ResponseWriter, r *http.Request, page string, data interface{})

func SearchArchives

func SearchArchives(w http.ResponseWriter, r *http.Request)

func SearchArchivesJson

func SearchArchivesJson(w http.ResponseWriter, r *http.Request)

func ShowArchiveApiHandler

func ShowArchiveApiHandler(w http.ResponseWriter, r *http.Request)

func ShowArchiveHandler

func ShowArchiveHandler(w http.ResponseWriter, r *http.Request)

func ShowArchiveScreenshotHandler

func ShowArchiveScreenshotHandler(w http.ResponseWriter, r *http.Request)

This is for the screenshot

func ShowArchiveSnapshotHandler

func ShowArchiveSnapshotHandler(w http.ResponseWriter, r *http.Request)

This is for the snapshot, which is the inlined HTML of the archive

Types

type ShowArchiveTemplateVariables

type ShowArchiveTemplateVariables struct {
	Archive                  *database.Archive
	ShowAlreadyArchivedModal bool
	ArchiveData              template.JS
}

Jump to

Keyboard shortcuts

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