mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
20ba72aecf
Former-commit-id: b6f9de4cf8d62210ffefba5d33dc8372d236748d
18 lines
548 B
Go
18 lines
548 B
Go
package mvc
|
|
|
|
import (
|
|
"github.com/kataras/iris/context"
|
|
"github.com/kataras/iris/sessions"
|
|
)
|
|
|
|
// Session -> TODO: think of move all bindings to
|
|
// a different folder like "bindings"
|
|
// so it will be used as .Bind(bindings.Session(manager))
|
|
// or let it here but change the rest of the binding names as well
|
|
// because they are not "binders", their result are binders to be precise.
|
|
func Session(sess *sessions.Sessions) func(context.Context) *sessions.Session {
|
|
return func(ctx context.Context) *sessions.Session {
|
|
return sess.Start(ctx)
|
|
}
|
|
}
|