# README
Config
Tokenized config loading.
This package is in the process of being split out of nexis-api.
License
(c) Tokenized Ltd. 2020 All rights reserved
# Functions
DumpSafe logs a "safe" version of the config, with sensitive values masked.
LoadConfig is the common way to load config.
LoadEnvironment attempts to hydrate a struct with environment variables.
LoadFromFile loads a JSON config from a file.
LoadParamStore returns unmarshals the an AWS ParamStore value into a struct.
MarshalJSONMasked marshals a config into JSON bytes and excludes any "masked" values.
MarshalJSONMaskedRaw marshals a config into a JSON RawMessage and excludes any "masked" values.
Mask returns a map representing a config that is safe to print.
NewAWSSecretManager returns an AWSSecretManager.
No description provided by the author
NewSecretResolver returns new SecretResolver with an AWSSecretManager as the fetcher.
# Constants
EnvConfigFile is the the environment variable to use when loading JSON config from a file.
EnvParamName is the the environment variable to use when loading config from the AWS ParamStore.
EnvProduction is the expected environment variable for production.
# Structs
AWSSecretManager is used to connect to the AWS Secrets Manager service.
Duration wraps a time.Duration with the ability to marshal and unmarshal to JSON the same as it marshals to text.
RDSSecret represents a specific format DB connection details required by RDS for password rotation.
SecretResolver looks up secrets from a source.
# Interfaces
Fetcher defines an interface that can be used for fetching data.
MaskedJSONMarshaller provides an interface for structs to implement so that when the value is tagged as masked this marshaller will be called to output a related value that isn't masked.