# Functions
Add inserts new service into the default supervisor.
AddFunc inserts new anonymous service into the default supervisor.
Cancelations return a list of services names of default supervisor and their cancelation calls.
Remove stops the service in the default supervisor tree and remove from it.
Serve starts the default supervisor tree.
ServeContext starts the default upervisor tree with a custom context.Context.
ServeGroup starts the default supervisor tree within a Group.
ServeGroupContext starts the defaultSupervisor tree with a custom context.Context.
Services return a list of services of default supervisor.
SetDefaultContext allows to change the context used for supervisor.Serve() and supervisor.ServeGroup().
# Constants
AlwaysRestart adjusts the supervisor to never halt in face of failures.
Permanent services are always restarted.
Temporary services are never restarted.
Transient services are restarted only when panic.
# Structs
Group is a superset of Supervisor datastructure responsible for offering a supervisor tree whose all services are restarted whenever one of them fail or is restarted.
Supervisor is the basic datastructure responsible for offering a supervisor tree.
# Interfaces
Service is the public interface expected by a Supervisor.
# Type aliases
ServiceType defines the restart strategy for a service.