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

Add a note for the latest history entry written by @hiveminded , only go1.9 users can use reference to iris.Party

Former-commit-id: 8821d33c40e7e5fda80895703b2131db4ed7c83e
This commit is contained in:
kataras
2017-08-02 14:31:34 +03:00
parent b848e2ebdc
commit 6231f96d5f
3 changed files with 10 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ Developers are not forced to upgrade if they don't really need it. Upgrade whene
- Add `Option` function to the `html view engine`: https://github.com/kataras/iris/issues/694 - Add `Option` function to the `html view engine`: https://github.com/kataras/iris/issues/694
- Fix sessions backend databases restore expiration: https://github.com/kataras/iris/issues/692 by @corebreaker - Fix sessions backend databases restore expiration: https://github.com/kataras/iris/issues/692 by @corebreaker
- Add `PartyFunc`, same as `Party` but receives a function with the sub router as its argument instead - Add `PartyFunc`, same as `Party` but receives a function with the sub router as its argument instead [GO1.9 Users-ONLY]
# Mo, 31 July 2017 | v8.1.2 # Mo, 31 July 2017 | v8.1.2

View File

@@ -5,6 +5,7 @@ package iris
import ( import (
"github.com/kataras/iris/context" "github.com/kataras/iris/context"
"github.com/kataras/iris/core/host" "github.com/kataras/iris/core/host"
"github.com/kataras/iris/core/router"
) )
// TODO: When go 1.9 will be released // TODO: When go 1.9 will be released
@@ -40,4 +41,12 @@ type (
// Used to add supervisor configurators on common Runners // Used to add supervisor configurators on common Runners
// without the need of importing the `core/host` package. // without the need of importing the `core/host` package.
Supervisor = host.Supervisor Supervisor = host.Supervisor
// Party is just a group joiner of routes which have the same prefix and share same middleware(s) also.
// Party could also be named as 'Join' or 'Node' or 'Group' , Party chosen because it is fun.
//
// Look the `core/router#APIBuilder` for its implementation.
//
// A shortcut for the `core/router#Party`, useful when `PartyFunc` is being used.
Party = router.Party
) )

View File

@@ -298,13 +298,6 @@ func (app *Application) View(writer io.Writer, filename string, layout string, b
} }
var ( var (
// Party is just a group joiner of routes which have the same prefix and share same middleware(s) also.
// Party could also be named as 'Join' or 'Node' or 'Group' , Party chosen because it is fun.
//
// Look the `core/router#APIBuilder` for its implementation.
//
// A shortcut for the `core/router#Party`, useful when `PartyFunc` is being used.
Party router.Party
// LimitRequestBodySize is a middleware which sets a request body size limit // LimitRequestBodySize is a middleware which sets a request body size limit
// for all next handlers in the chain. // for all next handlers in the chain.
// //