handlers

package
v0.0.0-...-f7ca523 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2017 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const PerPage = 15

PerPage defines the default number of items per page

Variables

This section is empty.

Functions

func CreateSupportMessage

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

func ErrorHandler

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

func GetPageNum

func GetPageNum(r *http.Request) int

func Home

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

func NewSupportMessage

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

func NotFoundHandler

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

func RenderSitemap

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

func ShowPage

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

Types

type Error

type Error interface {
	error
	Status() int
}

type Handler

type Handler func(w http.ResponseWriter, r *http.Request) error

func (Handler) ServeHTTP

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

type StatusError

type StatusError struct {
	Code int
	Err  error
}

func (StatusError) Error

func (se StatusError) Error() string

func (StatusError) Status

func (se StatusError) Status() int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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