mirror of
https://github.com/kataras/iris.git
synced 2025-12-30 00:07:04 +00:00
Give an easier and more permant solution for https://github.com/kataras/iris/pull/689
Former-commit-id: 8dc16d15f7bd14cb98b91b16d7d6b1bd756132bd
This commit is contained in:
@@ -4,8 +4,11 @@ package iris
|
||||
|
||||
import (
|
||||
"github.com/kataras/iris/context"
|
||||
"github.com/kataras/iris/core/host"
|
||||
)
|
||||
|
||||
// TODO: When go 1.9 will be released
|
||||
// split this file in order to separate the concepts.
|
||||
type (
|
||||
// Context is the midle-man server's "object" for the clients.
|
||||
//
|
||||
@@ -32,4 +35,9 @@ type (
|
||||
Handler = context.Handler
|
||||
// A Map is a shortcut of the map[string]interface{}.
|
||||
Map = context.Map
|
||||
|
||||
// Supervisor is a shortcut of the `host#Supervisor`.
|
||||
// Used to add supervisor configurators on common Runners
|
||||
// without the need of importing the `core/host` package.
|
||||
Supervisor = host.Supervisor
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user