config

package
v0.0.0-...-dc7611c Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module(
	"configfx",
	fx.Provide(func() environemnt.Environment {
		return environemnt.ConfigAppEnv()
	}),
)

Module provided to fxlog https://uber-go.github.io/fx/modules.html

View Source
var ModuleFunc = func(e environemnt.Environment) fx.Option {
	return fx.Module(
		"configfx",
		fx.Provide(func() environemnt.Environment {
			return environemnt.ConfigAppEnv(e)
		}),
	)
}

Functions

func BindConfig

func BindConfig[T any](environments ...environemnt.Environment) (T, error)

func BindConfigKey

func BindConfigKey[T any](configKey string, environments ...environemnt.Environment) (T, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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