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

Top 9.3% on proxy.golang.org
Top 8.7% dependent packages on proxy.golang.org

proxy.golang.org : github.com/cilium/hive

Package hive provides the infrastructure for building Cilium applications from modular components (cells). Hive is implemented using the uber/dig library, which provides the dependency injection for objects in the hive. It is similar to uber/fx, but adds an opinionated approach to configuration. The configuration for cells is extracted from Viper. By default the field names are assumed to correspond to flag names, e.g. field 'MyOption' corresponds to '--my-option' flag. The hive constructor, New(), takes the viper instance and the pflag FlagSet as parameters and registers the flags from all cells and binds them to viper variables. Once the FlagSet and viper configuration has been parsed one can call Populate() to pull the values from viper and construct the application. The hive can then be Run(). For a runnable example see pkg/hive/example. Try running: Try also commenting out cell.Provide lines and seeing what the dependency errors look like.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/cilium/hive
License: Apache-2.0
Latest release: 17 days ago
Namespace: github.com/cilium
Dependent packages: 4
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 17 days ago