package envconfig

Import Path
	go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/envconfig (on go.dev)

Dependency Relation
	imports 10 packages, and imported by one package

Involved Source Files Package envconfig provides functionality to parse configuration from environment variables.
Package-Level Type Names (total 2)
/* sort by: | */
ConfigFn is the generic function used to set a config. func WithBool(n string, fn func(bool)) ConfigFn func WithCertPool(n string, fn func(*x509.CertPool)) ConfigFn func WithClientCert(nc, nk string, fn func(tls.Certificate)) ConfigFn func (*EnvOptionsReader).Apply(opts ...ConfigFn)
EnvOptionsReader reads the required environment variables. GetEnv func(string) string Namespace string ReadFile func(string) ([]byte, error) Apply runs every ConfigFn. GetEnvValue gets an OTLP environment variable value of the specified key using the GetEnv function. This function prepends the OTLP specified namespace to all key lookups. var go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/otlpconfig.DefaultEnvOptionsReader
Package-Level Functions (total 7)
WithBool returns a ConfigFn that reads the environment variable n and if it exists passes its parsed bool value to fn.
WithCertPool returns a ConfigFn that reads the environment variable n as a filepath to a TLS certificate pool. If it exists, it is parsed as a crypto/x509.CertPool and it is passed to fn.
WithClientCert returns a ConfigFn that reads the environment variable nc and nk as filepaths to a client certificate and key pair. If they exists, they are parsed as a crypto/tls.Certificate and it is passed to fn.
WithDuration retrieves the specified config and passes it to ConfigFn as a duration.
WithHeaders retrieves the specified config and passes it to ConfigFn as a map of HTTP headers.
WithString retrieves the specified config and passes it to ConfigFn as a string.
WithURL retrieves the specified config and passes it to ConfigFn as a net/url.URL.