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

Top 1.9% dependent packages on proxy.golang.org
Top 4.7% dependent repos on proxy.golang.org

proxy.golang.org : github.com/peter-mount/go-kernel/v2

Package kernel is a simple microkernel that allows for Service's to be deployed within an application. It manages the complete lifecycle of the application with muliple stages each called in sequence: Init, PostInit, Start & Run. Once the kernel gets to the Start phase then any Error will cause the Stop phase to be invoked to allow any Started service to cleanup. For most simple applications you can simply use kernel.Launch( s ) where s is an uninitiated service and it will create a Kernel add that service and run it. For more complex applications which need multiple unrelated services deployed then it can do by calling NewKernel() to create a new kernel, add each one via AddService() and then call Run() - this is what Launch() does internally. A Service is simply an Object implementing the Service interface and one or more of the various lifecycle interfaces. If a service has injectionPoints then it should implement Init() and call AddService to add them - the kernel will handle the rest.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/peter-mount/go-kernel/v2
License: Apache-2.0
Latest release: over 2 years ago
First release: over 2 years ago
Namespace: github.com/peter-mount/go-kernel
Dependent packages: 8
Dependent repositories: 1
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 13 days ago