httperr

package
Version: v0.0.0-...-3fc3a86 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2015 License: MIT, MIT Imports: 2 Imported by: 0

README

httperr

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error interface {
	StatusCode() int
	Message() string
	Error() string
}

func New

func New(code int, message string, err error) Error

func NewInternal

func NewInternal(err error) Error

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)

Source Files

Jump to

Keyboard shortcuts

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