Middleware
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:some Middleware for the rack
#Middleware

These are middleware that are each designed to be part of a Rack specified in https://github.com/ScruffyProdigy/TheRack
Look at the documentation in each folder for more information about how they are used

*   **controller** - Implements the routing and controller aspects of an MVC architecture, by allowing you to define which routes of a resource are implemented by simply defining the appropriate methods
*	**encapsulator** - Typically used to wrap the current body in a layout  
*	**errorhandler** - Used to catch any panics from any later middleware, and, if so, passes a 500 Internal Service Error to the previous ones  
*	**interceptor** - A lightweight router that uses a map[string]Middleware lookup on the requested URL to pass the request on to other middleware  
*	**logger** - sets a logger in the vars for other middleware to report potential problems  
*	**methoder** - allows html forms to make put or delete requests
*	**oauther** - provides an interface for oauth providers; sets up appropriate routes (requires interceptor)  
*	**parser** - parses body or url forms
*	**redirecter** - returns an appropriate redirect response  
*	**renderer** - renders an appropriate template (requires TheTemplater)  
*	**routes** - a branching based router  
*	**session** - provides a middleware wrapper for Gorilla based Sessions  
*	**statuser** - sets appropriate template variables based on http statuses sent from later middleware - useful for setting error layouts
*	**websocketer** - provides an rack-based interface for websockets

##Installation
You can install them all by simply running `go get github.com/ScruffyProdigy/Middleware/...`

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。