1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

create a new package, name it as hero, I was thinking super or superb but hero is better name for what it does - the goal is to split the new 'mvc handlers' from the mvc system because they are not the same, users should know that they can use these type of rich binded handlers without controllers as well, like a normal handler and that I implemented here, the old files exist on the mvc package but will be removed at the next commit, I have to decide if we want type aliases for Result or no

Former-commit-id: cb775edc72bedc88aeab4c5a6de6bfc6bd56fae2
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-12-25 20:05:32 +02:00
parent 4ab889da5f
commit 46505f62db
43 changed files with 2680 additions and 20 deletions

View File

@@ -5,13 +5,8 @@ import (
"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.
// Session is a binder that will fill a *sessions.Session function input argument
// or a Controller struct's field.
func Session(sess *sessions.Sessions) func(context.Context) *sessions.Session {
return func(ctx context.Context) *sessions.Session {
return sess.Start(ctx)
}
return sess.Start
}