Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 5.2% on proxy.golang.org
Top 2.2% forks on proxy.golang.org

proxy.golang.org : gopkg.in/kataras/go-sessions.v2

Package sessions provides sessions support for net/http and valyala/fasthttp unique with auto-GC, register unlimited number of databases to Load and Update/Save the sessions in external server or to an external (no/or/and sql) database Usage net/http: // init a new sessions manager( if you use only one web framework inside your app then you can use the package-level functions like: sessions.Start/sessions.Destroy) manager := sessions.New(sessions.Config{}) // start a session for a particular client manager.Start(http.ResponseWriter, *http.Request) // destroy a session from the server and client, manager.Destroy(http.ResponseWriter, *http.Request) Usage valyala/fasthttp: // init a new sessions manager( if you use only one web framework inside your app then you can use the package-level functions like: sessions.Start/sessions.Destroy) manager := sessions.New(sessions.Config{}) // start a session for a particular client manager.StartFasthttp(*fasthttp.RequestCtx) // destroy a session from the server and client, manager.DestroyFasthttp(*fasthttp.Request) Note that, now, you can use both fasthttp and net/http within the same sessions manager(.New) instance! So now, you can share sessions between a net/http app and valyala/fasthttp app

Registry - Source - Documentation - JSON
purl: pkg:golang/gopkg.in/kataras/go-sessions.v2
Keywords: fasthttp, go, golang, high-performance, iris, iris-golang, nethttp, sessions
License: MIT
Latest release: over 6 years ago
First release: almost 7 years ago
Namespace: gopkg.in/kataras
Stars: 182 on GitHub
Forks: 47 on GitHub
See more repository details: repos.ecosyste.ms
Funding links: https://github.com/sponsors/kataras
Last synced: 3 days ago

Top 5.2% on proxy.golang.org
gopkg.in/kataras/go-sessions.v3 v3.3.1 💰
Package sessions provides sessions support for net/http and valyala/fasthttp unique with auto-GC,...
4 versions - Latest release: almost 2 years ago - 200 stars on GitHub
Top 2.7% on proxy.golang.org
github.com/kataras/go-sessions/v3 v3.3.1 💰
Package sessions provides sessions support for net/http and valyala/fasthttp unique with auto-GC,...
4 versions - Latest release: almost 2 years ago - 8 dependent packages - 8 dependent repositories - 182 stars on GitHub
Top 3.2% on proxy.golang.org
github.com/kataras/go-sessions v3.0.0+incompatible 💰
Package sessions provides sessions support for net/http and valyala/fasthttp unique with auto-GC,...
6 versions - Latest release: about 6 years ago - 2 dependent packages - 20 dependent repositories - 182 stars on GitHub
Top 4.9% on proxy.golang.org
gopkg.in/kataras/go-sessions.v0 v0.0.7 💰
Package sessions provides sessions support for net/http unique with auto-GC, register unlimited n...
3 versions - Latest release: over 7 years ago - 3 dependent repositories - 195 stars on GitHub