Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.8% on proxy.golang.org
Top 4.7% dependent repos on proxy.golang.org

proxy.golang.org : github.com/skovtunenko/graterm

Package graterm provides capabilities to create a Terminator instance, register ordered termination Hooks, and block application execution until one of the registered os.Signal events occurs. Termination hooks registered with the same Order will be executed concurrently. It is possible to set individual timeouts for each registered termination hook and global termination timeout for the whole application. Optionally a Hook may have a name (using Hook.WithName). It might be handy only if the Logger injected into Terminator instance to log internal termination lifecycle events. Example code for generic application components: Example code for HTTP server integration:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/skovtunenko/graterm
Keywords: graceful-degradation, graceful-restart-process, graceful-shutdown, graceful-stop, gracefull, gracefully, shutdown, shutdown-helper, shutdown-hook, shutdown-manager, shutdown-service, termination
License: MIT
Latest release: almost 2 years ago
First release: almost 2 years ago
Namespace: github.com/skovtunenko
Dependent repositories: 1
Stars: 23 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 17 days ago

    Loading...
    Readme
    Loading...