package
8.4.4+incompatible
Repository: https://github.com/codehakase/iris.git
Documentation: pkg.go.dev

# Functions

New returns a new host supervisor based on a native net/http "srv".
NewProxy returns a new host (server supervisor) which proxies all requests to the target.
NewRedirection returns a new host (server supervisor) which redirects all requests to the target.
ProxyHandler returns a new ReverseProxy that rewrites URLs to the scheme, host, and base path provided in target.
RegisterOnInterrupt registers a global function to call when CTRL+C/CMD+C pressed or a unix kill command received.
ShutdownOnInterrupt terminates the supervisor and its underline server when CMD+C/CTRL+C pressed.
WriteStartupLogOnServe is a task which accepts a logger(io.Writer) and logs the listening address by a generated message based on the host supervisor's server and writes it to the "w".

# Structs

Supervisor is the wrapper and the manager for a compatible server and it's relative actions, called Tasks.
TaskHost contains all the necessary information about the host supervisor, its server and the exports the whole flow controller of it.

# Type aliases

Configurator provides an easy way to modify the Supervisor.