iris/mvc/session.go
Gerasimos (Makis) Maropoulos 20ba72aecf fix typo
Former-commit-id: b6f9de4cf8d62210ffefba5d33dc8372d236748d
2017-12-18 06:47:05 +02:00

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)
}
}