package
0.0.0-20200109191904-8d1786a9f689
Repository: https://github.com/joincivil/go-common.git
Documentation: pkg.go.dev
# Functions
OutputUsage is a generic function to output a list of available environment vars based on the given config struct.
PersisterTypeFromName returns the correct persisterType from the string name.
PopulateFromDotEnv attempts to retrieve env vars from .env files to populate into the environment.
# Constants
PersisterTypeInvalid is an invalid persister value.
PersisterTypeNone is a persister that does nothing but return default values.
PersisterTypePostgresql is a persister that uses PostgreSQL as the backend.
# Variables
PersisterNameToType maps valid persister names to the types above.
# Interfaces
PersisterConfig defines the interfaces for persister-related configuration.
# Type aliases
PersisterType is the type of persister to use.