mirror of
https://github.com/kataras/iris.git
synced 2025-12-29 07:47:22 +00:00
reorganization of _examples and add some new examples such as iris+groupcache+mysql+docker
Former-commit-id: ed635ee95de7160cde11eaabc0c1dcb0e460a620
This commit is contained in:
12
iris.go
12
iris.go
@@ -245,7 +245,7 @@ func (app *Application) WWW() router.Party {
|
||||
// If you need more information about this implementation then you have to navigate through
|
||||
// the `core/router#NewSubdomainRedirectWrapper` function instead.
|
||||
//
|
||||
// Example: https://github.com/kataras/iris/tree/master/_examples/subdomains/redirect
|
||||
// Example: https://github.com/kataras/iris/tree/master/_examples/routing/subdomains/redirect
|
||||
func (app *Application) SubdomainRedirect(from, to router.Party) router.Party {
|
||||
sd := router.NewSubdomainRedirectWrapper(app.ConfigurationReadOnly().GetVHost, from.GetRelPath(), to.GetRelPath())
|
||||
app.WrapRouter(sd)
|
||||
@@ -899,7 +899,7 @@ type Runner func(*Application) error
|
||||
// Via host configurators you can configure the back-end host supervisor,
|
||||
// i.e to add events for shutdown, serve or error.
|
||||
// An example of this use case can be found at:
|
||||
// https://github.com/kataras/iris/blob/master/_examples/http-listening/notify-on-shutdown/main.go
|
||||
// https://github.com/kataras/iris/blob/master/_examples/http-server/notify-on-shutdown/main.go
|
||||
// Look at the `ConfigureHost` too.
|
||||
//
|
||||
// See `Run` for more.
|
||||
@@ -921,7 +921,7 @@ func Listener(l net.Listener, hostConfigs ...host.Configurator) Runner {
|
||||
// Via host configurators you can configure the back-end host supervisor,
|
||||
// i.e to add events for shutdown, serve or error.
|
||||
// An example of this use case can be found at:
|
||||
// https://github.com/kataras/iris/blob/master/_examples/http-listening/notify-on-shutdown/main.go
|
||||
// https://github.com/kataras/iris/blob/master/_examples/http-server/notify-on-shutdown/main.go
|
||||
// Look at the `ConfigureHost` too.
|
||||
//
|
||||
// See `Run` for more.
|
||||
@@ -945,7 +945,7 @@ func Server(srv *http.Server, hostConfigs ...host.Configurator) Runner {
|
||||
// Via host configurators you can configure the back-end host supervisor,
|
||||
// i.e to add events for shutdown, serve or error.
|
||||
// An example of this use case can be found at:
|
||||
// https://github.com/kataras/iris/blob/master/_examples/http-listening/notify-on-shutdown/main.go
|
||||
// https://github.com/kataras/iris/blob/master/_examples/http-server/notify-on-shutdown/main.go
|
||||
// Look at the `ConfigureHost` too.
|
||||
//
|
||||
// See `Run` for more.
|
||||
@@ -977,7 +977,7 @@ var TLSNoRedirect = func(su *host.Supervisor) { su.NoRedirect() }
|
||||
// Via host configurators you can configure the back-end host supervisor,
|
||||
// i.e to add events for shutdown, serve or error.
|
||||
// An example of this use case can be found at:
|
||||
// https://github.com/kataras/iris/blob/master/_examples/http-listening/notify-on-shutdown/main.go
|
||||
// https://github.com/kataras/iris/blob/master/_examples/http-server/notify-on-shutdown/main.go
|
||||
// Look at the `ConfigureHost` too.
|
||||
//
|
||||
// See `Run` for more.
|
||||
@@ -1016,7 +1016,7 @@ func TLS(addr string, certFileOrContents, keyFileOrContents string, hostConfigs
|
||||
// Via host configurators you can configure the back-end host supervisor,
|
||||
// i.e to add events for shutdown, serve or error.
|
||||
// An example of this use case can be found at:
|
||||
// https://github.com/kataras/iris/blob/master/_examples/http-listening/notify-on-shutdown/main.go
|
||||
// https://github.com/kataras/iris/blob/master/_examples/http-server/notify-on-shutdown/main.go
|
||||
// Look at the `ConfigureHost` too.
|
||||
//
|
||||
// Usage:
|
||||
|
||||
Reference in New Issue
Block a user