一个用于 gorilla/sessions 的 Postgres 会话存储后端
A session store backend for gorilla/sessions - src.
make get-depsAvailable on godoc.org.
See http://www.gorillatoolkit.org/pkg/sessions for full documentation on underlying interface.
…NewPGStore and NewPGStoreFromPool now returns (*PGStore, error)I've stolen, borrowed and gotten inspiration from the other backends available:
Thank you all for sharing your code!
What makes this backend different is that it's for PostgreSQL.
We've recently refactored this backend to use the standard database/sql driver instead of Gorp. This removes a dependency and makes this package very lightweight and makes database interactions very transparent. Lastly, from the standpoint of unit testing where you want to mock the database layer instead of requiring a real database, you can now easily use a package like go-SQLMock to do just that.
暂无开放 Issues,或尚未同步最近议题。