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