1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-24 05:17:03 +00:00

set iris logger to the sessiondb/badger logs and update deps

Former-commit-id: 7578dec5752cc2bfa012440c24d59f41425812f8
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-05-17 22:08:43 +03:00
parent 1e20996330
commit 47c3bad58d
7 changed files with 38 additions and 36 deletions

View File

@@ -11,13 +11,11 @@ func init() {
context.SetHandlerName("iris/sessions.*Handler", "iris.session")
}
// A Sessions manager should be responsible to Start a sesion, based
// on a Context, which should return
// a compatible Session interface, type. If the external session manager
// doesn't qualifies, then the user should code the rest of the functions with empty implementation.
//
// Sessions should be responsible to Destroy a session based
// on the Context.
// A Sessions manager should be responsible to Start/Get a sesion, based
// on a Context, which returns a *Session, type.
// It performs automatic memory cleanup on expired sessions.
// It can accept a `Database` for persistence across server restarts.
// A session can set temporarly values (flash messages).
type Sessions struct {
config Config
provider *provider