fixtures
import "github.com/coralproject/shelf/cmd/corald/fixtures"
Overview
Index
Package files
fixtures.go
func Error(err error) web.Handler
Error will simply return the error to the calling request stack.
func Handler(name string, code int) web.Handler
Handler will serve a JSON payload as the endpoint response.
func Load(name string, v interface{}) error
Load unmarshals the specified fixture into the provided
data value.
func NoContent(c *web.Context) error
NoContent simply responds with a HTTP Status Code of 204.
Generated by godoc2md