config

package
v0.0.0-...-4cab8f7 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source

ASCII Character generator http://patorjk.com/software/taag/#p=display&f=ANSI%20Shadow&t=PG2BQ

Variables

View Source
var (
	//BIG QUERY CONNECTION SPECIFICS
	GOOGLE_APPLICATION_CREDENTIALS string = os.Getenv("GOOGLE_APPLICATION_CREDENTIALS")
	BQ_PROJECT_ID                  string = os.Getenv("BQ_PROJECT_ID")
	BQ_DATASET_ID                  string = os.Getenv("BQ_DATASET_ID")
	BQ_TABLE_ID                    string = os.Getenv("BQ_TABLE_ID")

	//PG DATABASE CONNECTION SPECIFICS
	DB_HOST string = os.Getenv("PGHOST")
	DB_PORT string = os.Getenv("PGPORT")
	DB_USER string = os.Getenv("PGUSER")
	DB_PASS string = os.Getenv("PGPASSWORD")
	DB_NAME string = os.Getenv("PGDATABASE")

	//PG DATABASE EXPORT SPECIFICS
	COLUMN_SELECT string = os.Getenv("PGCOLUMNS")
	START_DAY     string = os.Getenv("START_DAY")
	END_DAY       string = os.Getenv("END_DAY")

	//REDIS DATABASE
	REDIS_ADDR   string = os.Getenv("REDIS_ADDR")
	REDIS_PASS   string = os.Getenv("REDIS_PASS")
	REDIS_PREFIX string = os.Getenv("REDIS_PREFIX")
)

Functions

func CheckCmdExists

func CheckCmdExists(cmd string)

Verify executable command exists

func CmdEngine

func CmdEngine(c string, args string)

Generic command engine with output.

func LoadEnv

func LoadEnv()

Load up environment variables

func PanicAndRecover

func PanicAndRecover(message string) string

func RedKeep

func RedKeep(tableName string, lastSync string) string

func RedKeepPing

func RedKeepPing() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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