stdenvcfg

package
v0.0.135 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2025 License: MIT Imports: 5 Imported by: 2

Documentation

Overview

Package stdenvcfg provides environment configuration as an fx dependency.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provide

func Provide[T any](prefix ...string) fx.Option

Provide configuration T as an fx dependency that parses the environment with an optional prefix.

func ProvideEnvironment added in v0.0.61

func ProvideEnvironment(vars map[string]string) fx.Option

ProvideEnvironment provides env options with environment options pre-set. Useful for testing.

func ProvideNamed added in v0.0.128

func ProvideNamed[T any](name string, prefix ...string) fx.Option

ProvideNamed configuration T as an fx dependency that parses the environment with an optional prefix.

Types

type Environment added in v0.0.61

type Environment map[string]string

Environment allows providing environment variables pre-set. Useful for testing.

type HexBytes added in v0.0.123

type HexBytes []byte

HexBytes can be used for configuration to read binary encoded values from the environment variables.

func (*HexBytes) UnmarshalText added in v0.0.123

func (p *HexBytes) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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