Documentation ¶
Overview ¶
Package config implements the functions for reading configuration files and saving them into Golang objects
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DbConfigMap map[string]models.TableConfig
DbConfigMap dynamo to Spanner
Functions ¶
func GetTableConf ¶
func GetTableConf(tableName string) (models.TableConfig, error)
GetTableConf returns table configuration from global map object
func InitConfig ¶
InitConfig loads ConfigurationMap and DbConfigMap in memory based on ACTIVE_ENV. If ACTIVE_ENV is not set or and empty string the environment is defaulted to staging.
These config files are read from rice-box
Types ¶
type Configuration ¶
Configuration struct
var ConfigurationMap *Configuration
ConfigurationMap pointer
Click to show internal directories.
Click to hide internal directories.