config

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindConfig

func BindConfig(prefix string, value any) any

BindConfig is an on-demand version of Config. It will read configuration from the environment and bind them to the specified struct.

func Config

func Config[T any](prefix string, value T) any

Config will read configuration from the environment and provide the specified type to the application.

Types

type In added in v0.2.0

type In struct {
	fx.In

	Logger     *zap.Logger  `optional:"true"`
	LogrLogger *logr.Logger `optional:"true"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL