config

package
v0.0.0-...-88d673b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

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

func InitConfig(box *rice.Box)

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

type Configuration struct {
	GoogleProjectID string
	SpannerDb       string
	QueryLimit      int64
}

Configuration struct

var ConfigurationMap *Configuration

ConfigurationMap pointer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL