mirror of
https://github.com/kataras/iris.git
synced 2025-12-23 04:47:02 +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:
@@ -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
|
||||
- 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
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ package iris
|
||||
import (
|
||||
"github.com/kataras/iris/context"
|
||||
"github.com/kataras/iris/core/host"
|
||||
"github.com/kataras/iris/core/router"
|
||||
)
|
||||
|
||||
// TODO: When go 1.9 will be released
|
||||
@@ -40,4 +41,12 @@ type (
|
||||
// Used to add supervisor configurators on common Runners
|
||||
// without the need of importing the `core/host` package.
|
||||
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
|
||||
)
|
||||
|
||||
7
iris.go
7
iris.go
@@ -298,13 +298,6 @@ func (app *Application) View(writer io.Writer, filename string, layout string, b
|
||||
}
|
||||
|
||||
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
|
||||
// for all next handlers in the chain.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user