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
github.com/casbin/go-json-rest - ecd3d37dc87d24927f72f95d5f7ddcd9e1543e95 authored over 11 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 8de84cd096669f3b9e7f10cb4aebc8403af72030 authored over 11 years ago by antoine <antoine.imbert@gmail.com>
...and save a useless for loop
github.com/casbin/go-json-rest - 7df38cb57cb0006f1217c424e98ddb820d370cfe authored over 11 years ago by antoine <antoine.imbert@gmail.com>github.com/casbin/go-json-rest - fb20d1a778baf7f7638dc893c63a834e61b781fc authored over 11 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - fae60011e9e4d77e3caa99aa2add935e1cca2899 authored over 11 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 30ccfbcb66d91db7126f9c36035c49ca1935264b authored over 11 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 97bad1bfb07cbd8ba7fe851a8dd007ea6ef28511 authored over 11 years ago by antoine <antoine.imbert@gmail.com>
Helpers for creating URIs
github.com/casbin/go-json-rest - 4c28d888b18b67fdf11a6faf6628c2b3da4e75c0 authored over 11 years ago by Antoine Imbert <antoine.imbert@gmail.com>UriForWithParams.
The argument "parameters" was a hash of string, but since a query string
can c...
Instead of one router per method, there is now one router that is
HTTP Method aware (thanks to t...
The leaf nodes now contain a map of HTTP methods to the Routes.
The Recursive findRoute method h...
github.com/casbin/go-json-rest - 03d41bff5c80596dc404f168fd25d0b7c598709f authored over 11 years ago by Franck Cuny <franck@lumberjaph.net>
The three added functions allow an easier creation of URLs. This can be
useful when, in the app...
github.com/casbin/go-json-rest - 4743ee45e0d5654a9a7a8f65bd46863ae19ef3de authored over 11 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 441ca9cae25dbdf2b886fdd98d95f0d273af44f2 authored over 11 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 9f47ce631ec65de65093df71e20f5cf860dd265f authored over 11 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 504646ad0d5bc6b93b745fb798468fe9771a1087 authored over 11 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 50769028cc325126453aba54e78f9ce4d3e1ef2b authored over 11 years ago by antoine <antoine.imbert@gmail.com>
That makes it clear that Route is not necessary a rest.Route.
I expected this value to become a ...
This is big change, it does not change the API, but will allow
more improvements in the future....
github.com/casbin/bee - bd3ff53f19568bcaa4e0b8063044c9040999835e authored over 11 years ago by astaxie <xiemengjun@gmail.com>
github.com/casbin/bee - dac1e5ea5e8f3a8e04490a6fbf3a5cfab3da671c authored over 11 years ago by astaxie <xiemengjun@gmail.com>
don't use append when the size of the slice is known in advance.
github.com/casbin/go-json-rest - 9db59ab2669391293f83d668926884835ede710a authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
Instead of concatenating the http method and the path,
maintain one router per method.
This keep...
github.com/casbin/go-json-rest - dc75cba892ded0ea384634bc9df9971e78edc190 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - fdadeb5884d6bf5dd07f170117466d0507f386b7 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 5238dec4f2b686987c48af797340569be979bca7 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
Make sure that the response code is recorded when Gzip is enabled.
Add unit test.
Fix Content-Encoding header on gzip responses
github.com/casbin/go-json-rest - 101493dda60eb19c401717993ff8b3f3c8ba1876 authored almost 12 years ago by Antoine Imbert <antoine.imbert@gmail.com>github.com/casbin/go-json-rest - 994f6d36ca16b34aac00638050a87cfb605f57f2 authored almost 12 years ago by Ask Bjørn Hansen <ask@develooper.com>
github.com/casbin/bee - 714bd493fef2b7dd3981658ec9adc454bf4df661 authored almost 12 years ago by astaxie <xiemengjun@gmail.com>
(the examples dirs are annoying. Is there an option to not build everything recursively ?)
github.com/casbin/go-json-rest - 95685ea180b2276c69701a14b6a51e22b938d296 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>github.com/casbin/go-json-rest - a0e86e326db6f0833195dcec29975e32164f1e5d authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
This will be consistent with most of the JSON output given the
default of json.Marshal.
github.com/casbin/go-json-rest - 424274d554fb36ccedb30cbd9294dccfcf1bd3c0 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 7044a036504629b8d9d2597e9b5fa45ba8478d2a authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 1eb0daded98baf02d777876f512bf266fa0e0f47 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - e94447f60162477afb35c309d2281f8b362b68a9 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
At that point the headers have already been written by WriteHeaders.
Need to set them before.
(instead of the standard http.NotFound)
github.com/casbin/go-json-rest - c826c627f286482730ed8a8c46a601e7ffdff89c authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
They follow the net/http interface using rest.* objects instead of http.* objects.
And they prod...
(bad copy paste)
github.com/casbin/go-json-rest - 80714161bda711a54ba7e370ccce1f9c19ccf69f authored almost 12 years ago by antoine <antoine.imbert@gmail.com>github.com/casbin/go-json-rest - 489af0106fe85f6bf5ca4fd6101a19fee7007cb0 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - e9018f20b55203030d6f193c03f684e27cc2bb5f authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 664b8c2181c5a4c28b12f8ed65e9293b36848570 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
The file started to be a bit long, it's now splited in logical parts.
github.com/casbin/go-json-rest - 2d848da3a371274c34c266fa3cdd03bf61563005 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>(optional, and disabled by default)
Inspired by the memcached "stats"
GET /.status returns som...
github.com/casbin/go-json-rest - 33db2f85cf4fe7fcb8e8f90d7297e0c7fceab19a authored almost 12 years ago by antoine <antoine.imbert@gmail.com>github.com/casbin/go-json-rest - 52498a93bc8acd9adacb18cca7e3dd9ae61e511d authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 3bdc85dee03c60065996a10072b51b3c49894bc2 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 46d32635f485faea585b2f548b87d9affed2b214 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
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 almost 12 years ago by antoine <antoine.imbert@gmail.com>... and get the logging more organized.
github.com/casbin/go-json-rest - 4e6c9487d1f126f42729c538c436f028b7775173 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>The log record is now written after execution of the user code.
github.com/casbin/go-json-rest - ae96e5bb5b0cd916675b14bd672e36931fa1aa30 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>github.com/casbin/go-json-rest - 43943240441e0e040fe179cf2bc747e8ed54466b authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 3e3ab0de7c5115abcd1d0d8291345cc9e1f8c75f authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - d553dbe7ce8b4d2f6d7f9fbd739577516ffce2ef authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
Should allow log/syslog use.
github.com/casbin/go-json-rest - 6cf37446abd9334d94c33606c93ff480aa2942b9 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>github.com/casbin/go-json-rest - e309d425737489de58a7a765aece0275f85cbb21 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 7fcbf3db8bda02648de419c06c99b45561311b53 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
(a lot more to do)
github.com/casbin/go-json-rest - 62e4c0e7534c521284cfbdc20512c46bc9c1be11 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>github.com/casbin/go-json-rest - f9fb0c3a310e05561de95744932077133525ab7f authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 420b32959528f07950b74989f3af721046c854c2 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - e44867e17d8851f8eb6c3585ab39d8965a6ba71f authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
(need more sophisticated mechanism)
github.com/casbin/go-json-rest - 75ede014f05806cd0af7c96b4368868802021ba2 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>optionally, and off by default, it includes the stack trace in the response payload.
github.com/casbin/go-json-rest - e4e32f5088710bb5a906d49184ba8fa2510f902d authored almost 12 years ago by antoine <antoine.imbert@gmail.com>github.com/casbin/go-json-rest - 271b192d51d85cb71e6fcf4995f380392e1c232e authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 18d7e188ffd3988850d66383a26a7132d0464e32 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - f9ce0bef7932d232421c9f2dce9fe946dbc71b7c authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 00cb2d97d0310138cd8386c98a4089bec50ecbbb authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
Instead of this:
handler.SetRoutes(
rest.Route{
"GET",
"/countries/:code",
...
github.com/casbin/go-json-rest - e60ea25db1624f58d5a064fe8597a4aae96a0836 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 3b0e5d4e7dc5b13c128c800ab9a487e9306eeeb4 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - ccbda6b127552955370352ef6b5a37b868479f16 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - a5c980c37090d42511dd48359f36ee743cf9757f authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
I'm trying to have all the defaults developement friendly.
github.com/casbin/go-json-rest - e14c288abd62789daca49ce17fa76085a1192bc7 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
By setting this flag to true, transparent gzip compression is enabled
(if supported by the client)
github.com/casbin/go-json-rest - 5f4b37741eda2b11ab72afcea6046c7bc8047fe5 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 004407a7c147b2cb9c6c37057e14dffa1e2b2efc authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
This allows for future options in the ResourceHandler struct.
The flag EnableGzip is first on my...
github.com/casbin/go-json-rest - c673bb12dca3a3f71729cf1b922d462912cdac4d authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 8ee8b5d2765731457a8ba70e849065d8c519ebea authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 279bb1e472bcc06544b436783444307a176f62ff authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 7f8e82c65660f8e9abecbad93110a23b682b25ca authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/go-json-rest - 26bc675fed1c5d432ce5b223a3df617c4cbf5271 authored almost 12 years ago by antoine <antoine.imbert@gmail.com>
github.com/casbin/bee - 43a508309bda66f9829b5072a983e0ef393a1b45 authored about 12 years ago by xiemengjun <xiemengjun@gmail.com>
github.com/casbin/bee - f7b956741a953d11e7a6c69661089b23a8104c46 authored about 12 years ago by astaxie <xiemengjun@gmail.com>
github.com/casbin/bee - 257e25bbc19a3109e8217565ab8dd1c0cc874cec authored about 12 years ago by xiemengjun <xiemengjun@gmail.com>