view

package
v0.0.0-...-4c6cade Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2017 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HttpHeaderLocation = "Location"
)

Headers

Variables

View Source
var (
	ErrNotFound = errors.New("Resource not found")
)

Errors

Functions

This section is empty.

Types

type RESTView

type RESTView struct {
}

func (*RESTView) RenderError

func (p *RESTView) RenderError(w rest.ResponseWriter, r *rest.Request, err error, status int, l *log.Logger)

func (*RESTView) RenderErrorNotFound

func (p *RESTView) RenderErrorNotFound(w rest.ResponseWriter, r *rest.Request, l *log.Logger)

func (*RESTView) RenderInternalError

func (p *RESTView) RenderInternalError(w rest.ResponseWriter, r *rest.Request, err error, l *log.Logger)

func (*RESTView) RenderSuccessDelete

func (p *RESTView) RenderSuccessDelete(w rest.ResponseWriter)

func (*RESTView) RenderSuccessGet

func (p *RESTView) RenderSuccessGet(w rest.ResponseWriter, object interface{})

func (*RESTView) RenderSuccessPost

func (p *RESTView) RenderSuccessPost(w rest.ResponseWriter, r *rest.Request, id string)

func (*RESTView) RenderSuccessPut

func (p *RESTView) RenderSuccessPut(w rest.ResponseWriter)

Jump to

Keyboard shortcuts

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