render

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2018 License: MIT Imports: 1 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine interface {
	Response(code int, response interface{}) error
	Send(response interface{}) error
	Created(response interface{}) error
	NoContent()
	BadRequest(err error) error
	NotFound(err error) error
	MethodNotAllowed(err error) error
	InternalServerError(err error) error
}

Engine define methods to encoded response in the body of a request with the HTTP status code.

type Render

type Render func(http.ResponseWriter) Engine

Render returns a Engine to response a request with the HTTP status code.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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