Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

Casbin

An authorization library that supports access control models like ACL, RBAC, ABAC for Golang, Java, C/C++, Node.js, Javascript, PHP, Python, .NET (C#), Delphi, Rust, Dart/Flutter and Elixir
Collective - Host: opensource - https://opencollective.com/casbin - Website: https://casbin.org/ - Code: https://github.com/casbin

even better short cuts

github.com/casbin/go-json-rest - ecd3d37dc87d24927f72f95d5f7ddcd9e1543e95 authored over 11 years ago by antoine <[email protected]>
don't try to find the first of the matched routes when there is only one.

github.com/casbin/go-json-rest - 8de84cd096669f3b9e7f10cb4aebc8403af72030 authored over 11 years ago by antoine <[email protected]>
directly pass the routes arg to the router...

...and save a useless for loop

github.com/casbin/go-json-rest - 7df38cb57cb0006f1217c424e98ddb820d370cfe authored over 11 years ago by antoine <[email protected]>
remove the reference to go-urlrouter in the description.

github.com/casbin/go-json-rest - fb20d1a778baf7f7638dc893c63a834e61b781fc authored over 11 years ago by antoine <[email protected]>
s/Routes/routes in the private router struct

github.com/casbin/go-json-rest - fae60011e9e4d77e3caa99aa2add935e1cca2899 authored over 11 years ago by antoine <[email protected]>
Thanks the contributors :)

github.com/casbin/go-json-rest - 30ccfbcb66d91db7126f9c36035c49ca1935264b authored over 11 years ago by antoine <[email protected]>
Merge pull request #19 from franckcuny/fc-uris

Helpers for creating URIs

github.com/casbin/go-json-rest - 4c28d888b18b67fdf11a6faf6628c2b3da4e75c0 authored over 11 years ago by Antoine Imbert <[email protected]>
Add tests for Request and change the type of parameters for

UriForWithParams.

The argument "parameters" was a hash of string, but since a query string
can c...

github.com/casbin/go-json-rest - e402ee1b4ab349fed81e386ba02ffac70927939f authored over 11 years ago by Franck Cuny <[email protected]>
Use the new HTTP Method aware Trie

Instead of one router per method, there is now one router that is
HTTP Method aware (thanks to t...

github.com/casbin/go-json-rest - ab17f374729bc62cdcc903b07a805721c238a950 authored over 11 years ago by antoine <[email protected]>
Make the trie support the notion of HTTP Method.

The leaf nodes now contain a map of HTTP methods to the Routes.
The Recursive findRoute method h...

github.com/casbin/go-json-rest - 4504f99bb05d11d1f5bb3e5afbf40bbbff47c227 authored over 11 years ago by antoine <[email protected]>
When constructing the URI base, simplify the lookup for the trailing /

github.com/casbin/go-json-rest - 03d41bff5c80596dc404f168fd25d0b7c598709f authored over 11 years ago by Franck Cuny <[email protected]>
Add a few convenient functions to create URLs to the Request type.

The three added functions allow an easier creation of URLs. This can be
useful when, in the app...

github.com/casbin/go-json-rest - 2d7bb5411ade8efd7b6531bf3ad48373bc6fb2e8 authored over 11 years ago by Franck Cuny <[email protected]>
Link to blog post

github.com/casbin/go-json-rest - 4743ee45e0d5654a9a7a8f65bd46863ae19ef3de authored over 11 years ago by antoine <[email protected]>
Make Router a private object

github.com/casbin/go-json-rest - 441ca9cae25dbdf2b886fdd98d95f0d273af44f2 authored over 11 years ago by antoine <[email protected]>
reorg of the docstrings

github.com/casbin/go-json-rest - 9f47ce631ec65de65093df71e20f5cf860dd265f authored over 11 years ago by antoine <[email protected]>
Make the router methods private

github.com/casbin/go-json-rest - 504646ad0d5bc6b93b745fb798468fe9771a1087 authored over 11 years ago by antoine <[email protected]>
Use the new Trie API

github.com/casbin/go-json-rest - 50769028cc325126453aba54e78f9ce4d3e1ef2b authored over 11 years ago by antoine <[email protected]>
Rename Route to RouteValue in the trie implementation

That makes it clear that Route is not necessary a rest.Route.
I expected this value to become a ...

github.com/casbin/go-json-rest - a56abff0156bb6f522ce8cd41f558c1c3dfd927e authored over 11 years ago by antoine <[email protected]>
Merge Go-UrlRouter into Go-Json-Rest

This is big change, it does not change the API, but will allow
more improvements in the future....

github.com/casbin/go-json-rest - 8fe7a927e025e879afd682df9ee55fb132f9b64f authored over 11 years ago by antoine <[email protected]>
changer bee

github.com/casbin/bee - bd3ff53f19568bcaa4e0b8063044c9040999835e authored over 11 years ago by astaxie <[email protected]>
RegisterController changes to Router

github.com/casbin/bee - dac1e5ea5e8f3a8e04490a6fbf3a5cfab3da671c authored over 11 years ago by astaxie <[email protected]>
small optimization in the examples.

don't use append when the size of the slice is known in advance.

github.com/casbin/go-json-rest - 9db59ab2669391293f83d668926884835ede710a authored over 11 years ago by antoine <[email protected]>
Make a better use of Go-UrlRouter

Instead of concatenating the http method and the path,
maintain one router per method.
This keep...

github.com/casbin/go-json-rest - b3ca9f14bc3dfee2bd229f2e958a9eee7fc9f2e3 authored over 11 years ago by antoine <[email protected]>
make the examples use rest.Error instead of http.Error

github.com/casbin/go-json-rest - dc75cba892ded0ea384634bc9df9971e78edc190 authored over 11 years ago by antoine <[email protected]>
[doc] placeholder names should be unique per route

github.com/casbin/go-json-rest - fdadeb5884d6bf5dd07f170117466d0507f386b7 authored over 11 years ago by antoine <[email protected]>
convert private _ var to camelcase.

github.com/casbin/go-json-rest - 5238dec4f2b686987c48af797340569be979bca7 authored over 11 years ago by antoine <[email protected]>
Fix Gzip encoding support

Make sure that the response code is recorded when Gzip is enabled.
Add unit test.

github.com/casbin/go-json-rest - 9bb0615dabc0622f2e554564c6594a4130b90719 authored over 11 years ago by antoine <[email protected]>
Merge pull request #16 from abh/gzip

Fix Content-Encoding header on gzip responses

github.com/casbin/go-json-rest - 101493dda60eb19c401717993ff8b3f3c8ba1876 authored over 11 years ago by Antoine Imbert <[email protected]>
Fix Content-Encoding header on gzip responses

github.com/casbin/go-json-rest - 994f6d36ca16b34aac00638050a87cfb605f57f2 authored over 11 years ago by Ask Bjørn Hansen <[email protected]>
#1 fix create conf

github.com/casbin/bee - 714bd493fef2b7dd3981658ec9adc454bf4df661 authored over 11 years ago by astaxie <[email protected]>
Add a Google App Engine example

(the examples dirs are annoying. Is there an option to not build everything recursively ?)

github.com/casbin/go-json-rest - 95685ea180b2276c69701a14b6a51e22b938d296 authored over 11 years ago by antoine <[email protected]>
Capitable E, for Error.

This will be consistent with most of the JSON output given the
default of json.Marshal.

github.com/casbin/go-json-rest - e9cc59db2d1854a5f381a4ab606ba1b3f8b05f09 authored over 11 years ago by antoine <[email protected]>
Document some options

github.com/casbin/go-json-rest - 424274d554fb36ccedb30cbd9294dccfcf1bd3c0 authored over 11 years ago by antoine <[email protected]>
List some features

github.com/casbin/go-json-rest - 7044a036504629b8d9d2597e9b5fa45ba8478d2a authored over 11 years ago by antoine <[email protected]>
polish examples.

github.com/casbin/go-json-rest - 1eb0daded98baf02d777876f512bf266fa0e0f47 authored over 11 years ago by antoine <[email protected]>
Document the /.status endpoint

github.com/casbin/go-json-rest - e94447f60162477afb35c309d2281f8b362b68a9 authored over 11 years ago by antoine <[email protected]>
Fix the content-type of the error responses.

At that point the headers have already been written by WriteHeaders.
Need to set them before.

github.com/casbin/go-json-rest - 17902d1ca84aea1402e9724ed75a5c3ce2653c98 authored over 11 years ago by antoine <[email protected]>
Make the Handler also use the JSON NotFound

(instead of the standard http.NotFound)

github.com/casbin/go-json-rest - c826c627f286482730ed8a8c46a601e7ffdff89c authored over 11 years ago by antoine <[email protected]>
Implement the Error and NotFound helpers.

They follow the net/http interface using rest.* objects instead of http.* objects.
And they prod...

github.com/casbin/go-json-rest - fa5c52c11f52cb6f2e01d9efc993901542c9b83f authored over 11 years ago by antoine <[email protected]>
fix the response code in case of internal error

(bad copy paste)

github.com/casbin/go-json-rest - 80714161bda711a54ba7e370ccce1f9c19ccf69f authored over 11 years ago by antoine <[email protected]>
try a simpler travis conf now that the examples are in directories

github.com/casbin/go-json-rest - 489af0106fe85f6bf5ca4fd6101a19fee7007cb0 authored over 11 years ago by antoine <[email protected]>
move examples into directories

github.com/casbin/go-json-rest - e9018f20b55203030d6f193c03f684e27cc2bb5f authored over 11 years ago by antoine <[email protected]>
move examples into directories

github.com/casbin/go-json-rest - 664b8c2181c5a4c28b12f8ed65e9293b36848570 authored over 11 years ago by antoine <[email protected]>
split rest.go in several files

The file started to be a bit long, it's now splited in logical parts.

github.com/casbin/go-json-rest - 2d848da3a371274c34c266fa3cdd03bf61563005 authored over 11 years ago by antoine <[email protected]>
First pass on the Status Service

(optional, and disabled by default)

Inspired by the memcached "stats"

GET /.status returns som...

github.com/casbin/go-json-rest - 33db2f85cf4fe7fcb8e8f90d7297e0c7fceab19a authored over 11 years ago by antoine <[email protected]>
better docstrings

github.com/casbin/go-json-rest - 52498a93bc8acd9adacb18cca7e3dd9ae61e511d authored over 11 years ago by antoine <[email protected]>
make sure to log the response time in all cases

github.com/casbin/go-json-rest - 3bdc85dee03c60065996a10072b51b3c49894bc2 authored over 11 years ago by antoine <[email protected]>
Compute and log the response time

github.com/casbin/go-json-rest - 46d32635f485faea585b2f548b87d9affed2b214 authored over 11 years ago by antoine <[email protected]>
Now supports two log formats ...

Simple:

2013/03/01 04:00:11 404 GET /users/0

or JSON:

2013/03/01 04:00:11 {"StatusCode":404,"...

github.com/casbin/go-json-rest - 10dd604e2580e12a5af6f50e80fd6e2766095bd0 authored over 11 years ago by antoine <[email protected]>
introduce the notion of response_log_record ...

... and get the logging more organized.

github.com/casbin/go-json-rest - 4e6c9487d1f126f42729c538c436f028b7775173 authored over 11 years ago by antoine <[email protected]>
Record the response status code and log it.

The log record is now written after execution of the user code.

github.com/casbin/go-json-rest - ae96e5bb5b0cd916675b14bd672e36931fa1aa30 authored over 11 years ago by antoine <[email protected]>
minor README fix

github.com/casbin/go-json-rest - 43943240441e0e040fe179cf2bc747e8ed54466b authored over 11 years ago by antoine <[email protected]>
even better README

github.com/casbin/go-json-rest - 3e3ab0de7c5115abcd1d0d8291345cc9e1f8c75f authored over 11 years ago by antoine <[email protected]>
better README

github.com/casbin/go-json-rest - d553dbe7ce8b4d2f6d7f9fbd739577516ffce2ef authored over 11 years ago by antoine <[email protected]>
Add support for custom logger.

Should allow log/syslog use.

github.com/casbin/go-json-rest - 6cf37446abd9334d94c33606c93ff480aa2942b9 authored over 11 years ago by antoine <[email protected]>
test Travis CI

github.com/casbin/go-json-rest - e309d425737489de58a7a765aece0275f85cbb21 authored over 11 years ago by antoine <[email protected]>
Travis CI config

github.com/casbin/go-json-rest - 7fcbf3db8bda02648de419c06c99b45561311b53 authored over 11 years ago by antoine <[email protected]>
Test using net/http/httptest

(a lot more to do)

github.com/casbin/go-json-rest - 62e4c0e7534c521284cfbdc20512c46bc9c1be11 authored over 11 years ago by antoine <[email protected]>
Simple example using SPDY

github.com/casbin/go-json-rest - f9fb0c3a310e05561de95744932077133525ab7f authored over 11 years ago by antoine <[email protected]>
minor doc changes

github.com/casbin/go-json-rest - e44867e17d8851f8eb6c3585ab39d8965a6ba71f authored over 11 years ago by antoine <[email protected]>
add basic logging

(need more sophisticated mechanism)

github.com/casbin/go-json-rest - 75ede014f05806cd0af7c96b4368868802021ba2 authored over 11 years ago by antoine <[email protected]>
catch the user code panic and send 500

optionally, and off by default, it includes the stack trace in the response payload.

github.com/casbin/go-json-rest - e4e32f5088710bb5a906d49184ba8fa2510f902d authored over 11 years ago by antoine <[email protected]>
implement all the CRUD ops for this example.

github.com/casbin/go-json-rest - 271b192d51d85cb71e6fcf4995f380392e1c232e authored over 11 years ago by antoine <[email protected]>
better with a license

github.com/casbin/go-json-rest - 18d7e188ffd3988850d66383a26a7132d0464e32 authored over 11 years ago by antoine <[email protected]>
Rename Route.Method to Route.HttpMethod to avoid any confusion

github.com/casbin/go-json-rest - f9ce0bef7932d232421c9f2dce9fe946dbc71b7c authored over 11 years ago by antoine <[email protected]>
go doc rest.go > README

github.com/casbin/go-json-rest - 00cb2d97d0310138cd8386c98a4089bec50ecbbb authored over 11 years ago by antoine <[email protected]>
Introduce rest.RouteObjectMethod to build Route that points to object methods.

Instead of this:

handler.SetRoutes(
rest.Route{
"GET",
"/countries/:code",
...

github.com/casbin/go-json-rest - db4a62c352a8860c5101089a0506bd6bba98f4da authored over 11 years ago by antoine <[email protected]>
Add an example with GET POST and DELETE operations

github.com/casbin/go-json-rest - e60ea25db1624f58d5a064fe8597a4aae96a0836 authored over 11 years ago by antoine <[email protected]>
s/JSON/Json/ to not hurt my eyes

github.com/casbin/go-json-rest - 3b0e5d4e7dc5b13c128c800ab9a487e9306eeeb4 authored over 11 years ago by antoine <[email protected]>
make it more explicit that Dest is a function

github.com/casbin/go-json-rest - ccbda6b127552955370352ef6b5a37b868479f16 authored over 11 years ago by antoine <[email protected]>
docstrings tweaks

github.com/casbin/go-json-rest - a5c980c37090d42511dd48359f36ee743cf9757f authored over 11 years ago by antoine <[email protected]>
Implement the DisableJsonIndent option

I'm trying to have all the defaults developement friendly.

github.com/casbin/go-json-rest - e14c288abd62789daca49ce17fa76085a1192bc7 authored over 11 years ago by antoine <[email protected]>
implement the EnableGzip option.

By setting this flag to true, transparent gzip compression is enabled
(if supported by the client)

github.com/casbin/go-json-rest - cec78a220cafc311a853c88d1b4a0bc426aef859 authored over 11 years ago by antoine <[email protected]>
TODOs => Github Issues

github.com/casbin/go-json-rest - 5f4b37741eda2b11ab72afcea6046c7bc8047fe5 authored over 11 years ago by antoine <[email protected]>
go doc rest.go > README

github.com/casbin/go-json-rest - 004407a7c147b2cb9c6c37057e14dffa1e2b2efc authored over 11 years ago by antoine <[email protected]>
[API change] replace NewResourceHandler by SetRoutes

This allows for future options in the ResourceHandler struct.
The flag EnableGzip is first on my...

github.com/casbin/go-json-rest - fcf5ec0cbcf06bb59690b675e8a8dcee4c12b6b3 authored over 11 years ago by antoine <[email protected]>
trying to make links with go doc

github.com/casbin/go-json-rest - 8ee8b5d2765731457a8ba70e849065d8c519ebea authored over 11 years ago by antoine <[email protected]>
initial commit

github.com/casbin/go-json-rest - 26bc675fed1c5d432ce5b223a3df617c4cbf5271 authored over 11 years ago by antoine <[email protected]>
modify the init code

github.com/casbin/bee - 43a508309bda66f9829b5072a983e0ef393a1b45 authored almost 12 years ago by xiemengjun <[email protected]>
Initial commit

github.com/casbin/bee - f7b956741a953d11e7a6c69661089b23a8104c46 authored almost 12 years ago by astaxie <[email protected]>
bee

github.com/casbin/bee - 257e25bbc19a3109e8217565ab8dd1c0cc874cec authored almost 12 years ago by xiemengjun <[email protected]>