mirror of
1
Fork 0
forgejo/vendor/gitea.com/go-chi/session
zeripath 8af7a21085
Update go-chi/session (fixes "race" in tests) (#17031)
Update to latest go-chi/session where the NewManager causes a new
Provider instantiation instead of reconfiguring an old one.
(https://gitea.com/go-chi/session/pulls/1)

The NewManager call is now concurrency safe and would allow live
reconfiguration in future but for now this PR simply fixes an
intermittent "data-race" detected in our tests.  (See
https://drone.gitea.io/go-gitea/gitea/43900/2/14)

Related #17027
Related #1441

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-09-13 09:40:55 +01:00
..
couchbase Fix recovery middleware to render gitea style page. (#13857) 2021-01-05 21:05:40 +08:00
memcache Fix recovery middleware to render gitea style page. (#13857) 2021-01-05 21:05:40 +08:00
mysql Fix recovery middleware to render gitea style page. (#13857) 2021-01-05 21:05:40 +08:00
postgres Fix recovery middleware to render gitea style page. (#13857) 2021-01-05 21:05:40 +08:00
.drone.yml Fix recovery middleware to render gitea style page. (#13857) 2021-01-05 21:05:40 +08:00
.gitignore Fix recovery middleware to render gitea style page. (#13857) 2021-01-05 21:05:40 +08:00
LICENSE Fix recovery middleware to render gitea style page. (#13857) 2021-01-05 21:05:40 +08:00
README.md Fix recovery middleware to render gitea style page. (#13857) 2021-01-05 21:05:40 +08:00
file.go Fix recovery middleware to render gitea style page. (#13857) 2021-01-05 21:05:40 +08:00
go.mod Fix recovery middleware to render gitea style page. (#13857) 2021-01-05 21:05:40 +08:00
go.sum Fix recovery middleware to render gitea style page. (#13857) 2021-01-05 21:05:40 +08:00
memory.go Fix recovery middleware to render gitea style page. (#13857) 2021-01-05 21:05:40 +08:00
secret.go Fix recovery middleware to render gitea style page. (#13857) 2021-01-05 21:05:40 +08:00
session.go Update go-chi/session (fixes "race" in tests) (#17031) 2021-09-13 09:40:55 +01:00
utils.go Fix recovery middleware to render gitea style page. (#13857) 2021-01-05 21:05:40 +08:00

README.md

Session

Middleware session provides session management which copied from Macaron Session for go-chi. It can use many session providers, including memory, file, Redis, Memcache, PostgreSQL, MySQL, Couchbase, Ledis and Nodb.

Installation

go get gitea.com/go-chi/session

Credits

This package is a modified version of go-macaron/session.

License

This project is under the Apache License, Version 2.0. See the LICENSE file for the full license text.