handlers

package
v0.0.0-...-0fcc971 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2014 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package `handlers` provides single retrieval or list of resources based on the URI path.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResource

func GetResource(p martini.Params, r render.Render, db *mgo.Database)

Retrieve an instance of the resource given the id. Assumes the resource name matches the collection name

func ListResources

func ListResources(p martini.Params, r render.Render, db *mgo.Database)

Retrieve a collection of resources based on the params

func SaveResource

func SaveResource(req *http.Request, r render.Render, db *mgo.Database)

Types

This section is empty.

Jump to

Keyboard shortcuts

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