Help us shape the future of Go! Take the 2026 Go Developer Survey

silverback

module
v0.0.0-...-b231bc8 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2015 License: Unlicense

README

silverback

Provides sugar for strict REST and HTTP spec compliance within gorilla.

Why?

Basically, I used to use goweb, because it made some things very easy and helped with code reuse. However, goweb has gone into an unmaintained state, these days, and while I do like gorilla quite a lot, I want a bit more sugar for my system.

Some examples of what I want to be handled automatically:

  • 405 Method Not Allowed is required by the HTTP spec to include a header in the response describing which methods are allowed.
  • 401 Unauthorized is required by the spec to include a header in the response describing why the current user is unauthorized, or an authentication challenge if there is no user.
  • Mapping code can get verbose if you have to register every single handler function; I'd rather just map a type that implements a series of interfaces, and have those methods implementing said interfaces define which methods should be mapped at which resources.

These are the sorts of things I would like handled with a little less client code, and they're the reason for this library. I could easily implement this in my client code, since there's really not much it needs to do, but I don't see much point in keeping it private.

Directories

Path Synopsis
Provides interfaces, functions and codecs that can be used to encode and decode data to various formats.
Provides interfaces, functions and codecs that can be used to encode and decode data to various formats.
services
Provides services for working with codecs.
Provides services for working with codecs.
test
test package provides object useful for testing code that relies on Codecs.
test package provides object useful for testing code that relies on Codecs.

Jump to

Keyboard shortcuts

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