package
7.2.0+incompatible
Repository: https://github.com/godofdream/siris.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 redirects all requests to the target.
ProxyHandler returns a new ReverseProxy that rewrites URLs to the scheme, host, and base path provided in target.
ShutdownOnInterruptTask returns a supervisor's built'n task which shutdowns the server when InterruptSignalTask fire this task.
WriteBannerTask is a task which accepts a logger(io.Writer) and a "banner" text to write to following by a generated message based on the host supervisor's server and writes it to the "w".
# Structs
Scheduler is a type of an event emmiter.
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.
TaskProcess is the context of the Task runner.
# Interfaces
No description provided by the author
A TaskRunner is an independent stream of instructions in a Supervisor.
# Type aliases
OnInterrupt is a built'n supervisor task type which fires its value(Task) when an OS interrupt/kill signal received.
TaskCancelFunc cancels a Task when called.
TaskRunnerFunc "converts" a func(TaskProcess) to a complete TaskRunner.