Categorygithub.com/cilium/hive
modulepackage
0.0.0-20241213121623-605c1412b9b3
Repository: https://github.com/cilium/hive.git
Documentation: pkg.go.dev

# README

:bee: Hive GoDoc

Hive is a dependency injection framework for Go. To build an application in Hive you tell it your object constructors and then ask it to invoke functions that make use of those constructors. Hive figures out what constructors to call and in what order.

Hive is built on top of uber/dig and is similar to uber/fx. The main difference to uber/fx is opinionated way to provide configuration and command-line inspection tooling (go run ./example hive). Hive was built for the needs of the Cilium project to improve modularity of the Cilium codebase.

To get started, see the documentation and explore the example.

# Packages

No description provided by the author
No description provided by the author
Package hivetest makes testing components using hive easier.
No description provided by the author
Package script implements a small, customizable, platform-agnostic scripting language.

# Functions

AddConfigOverride appends a config override function to modify a configuration after it has been parsed.
No description provided by the author
New returns a new hive that can be run, or inspected.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ShutdownWithError shuts down with an error.

# Structs

Hive is a framework building modular applications.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Shutdowner provides Shutdown(), which is a way to trigger stop for hive.
No description provided by the author