martini-contrib

module
v0.0.0-...-d4cc670 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2014 License: MIT

README

Contributed Martini Handlers and Utilities wercker status

This package includes a variety of add-on components for Martini, a classy web framework for Go:

Install all the packages (go 1.1 and greater is required):

go get github.com/codegangsta/martini-contrib/...

Join the Mailing list

Available Components

  • acceptlang - Handler for parsing the Accept-Language HTTP header.
  • auth - Handlers for authentication.
  • binding - Handler for mapping/validating a raw request into a structure.
  • cors - Handler to enable CORS support.
  • encoder - Encoder service for rendering data in several formats and content negotiation.
  • gzip - Handler for adding gzip compress to requests
  • method - HTTP method overriding via Header or form fields.
  • render - Handler that provides a service for easily rendering JSON and HTML templates.
  • secure - Implements a few quick security wins.
  • sessions - Handler that provides a Session service.
  • strip - URL Prefix stripping.
  • web - web.go Context compatibility.

Contributing

Feel free to submit patches or file issues via GitHub. If you have an idea for a handler put up a Pull Request and we will find where it fits best!

Be a Collaborator

If you want to be a maintainer of martini-contrib and get full repo access contact Jeremy Saenz. I will automatically add you as a collaborator if you contribute a package yourself so you can fix bugs without a pull request.

Directories

Path Synopsis
Package acceptlang provides a Martini handler and primitives to parse the Accept-Language HTTP header values.
Package acceptlang provides a Martini handler and primitives to parse the Accept-Language HTTP header values.
Package binding transforms, with validation, a raw request into a populated structure used by your application logic.
Package binding transforms, with validation, a raw request into a populated structure used by your application logic.
package method implements http method override using the X-HTTP-Method-Override http header.
package method implements http method override using the X-HTTP-Method-Override http header.
Package render is a middleware for Martini that provides easy JSON serialization and HTML template rendering.
Package render is a middleware for Martini that provides easy JSON serialization and HTML template rendering.
Package secure is a middleware for Martini that helps enable some quick security wins.
Package secure is a middleware for Martini that helps enable some quick security wins.
Package login is a middleware for Martini that provides a simple way to track user sessions in on a website.
Package login is a middleware for Martini that provides a simple way to track user sessions in on a website.
example
Auth example is an example application which requires a login to view a private link.
Auth example is an example application which requires a login to view a private link.
Package sessions contains middleware for easy session management in Martini.
Package sessions contains middleware for easy session management in Martini.
packcage strip provides the same functionality as http.StripPrefix and can be used in martini instance level and request context level.
packcage strip provides the same functionality as http.StripPrefix and can be used in martini instance level and request context level.
Package web provides a web.go compitable layer for reusing the code written with hoisie's `web.go` framework.
Package web provides a web.go compitable layer for reusing the code written with hoisie's `web.go` framework.

Jump to

Keyboard shortcuts

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