mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-04 08:17:24 -05:00
8af7a21085
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> |
||
---|---|---|
.. | ||
couchbase | ||
memcache | ||
mysql | ||
postgres | ||
.drone.yml | ||
.gitignore | ||
file.go | ||
go.mod | ||
go.sum | ||
LICENSE | ||
memory.go | ||
README.md | ||
secret.go | ||
session.go | ||
utils.go |
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.