示例#1
0
// GetPostgresConnectionTimeout returns the postgres connection timeout as set via default, config file, or environment variable
func GetPostgresConnectionTimeout() int64 {
	return viper.GetInt64(varPostgresConnectionTimeout)
}
示例#2
0
// GetPostgresPort returns the postgres port as set via default, config file, or environment variable
func GetPostgresPort() int64 {
	return viper.GetInt64(varPostgresPort)
}