rest

package
v0.0.0-...-5c7d83b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RouteHandler

func RouteHandler(f RouteFunc) restful.RouteFunction

RouteHandler creates a wrapper function for route methods. This allows route methods to return errors and have them handled correctly.

Types

type Handler

type Handler func(request *restful.Request, response *restful.Response)

Handler represents the way a route function should actually be written.

type RouteFunc

type RouteFunc func(request *restful.Request, response *restful.Response, user schema.User) (error, interface{})

RouteFunc represents the routes function

type Service

type Service interface {
	WebService() *restful.WebService
}

Service implements a REST based web service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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