1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-08 20:41:57 +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

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