package
0.4.8
Repository: https://github.com/coralproject/shelf.git
Documentation: pkg.go.dev

# README

fixtures

import "github.com/coralproject/shelf/cmd/corald/fixtures"

Overview

Index

Package files

fixtures.go

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

# Functions

Error will simply return the error to the calling request stack.
Handler will serve a JSON payload as the endpoint response.
Load unmarshals the specified fixture into the provided data value.
NoContent simply responds with a HTTP Status Code of 204.