config

package
v0.0.0-...-aee609b Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogInit

func LogInit(app AppConfig) *os.File

func Setup

func Setup(app *AppConfig) error

Types

type AppConfig

type AppConfig struct {
	//Local Only
	LocalStackHostname string `mapstructure:"LOCALSTACK_HOSTNAME"`
	Env                string `mapstructure:"ENV_NAME"`
	LogLevel           string `mapstructure:"LOG_LEVEL"`
	LogToFile          string `mapstructure:"LOG_TO_FILE"`
	AccessKey          string `mapstructure:"ACCESS_KEY"`
	SenderId           string `mapstructure:"SENDER_COMPID"`
	Passphrase         string `mapstructure:"PASSPHRASE"`
	SigningKey         string `mapstructure:"SIGNING_KEY"`
	PrimeApiUrl        string `mapstructure:"PRIME_API_URL"`
	PortfolioId        string `mapstructure:"PORTFOLIO_ID"`
	PrimeCredentials   string `mapstructure:"PRIME_CREDENTIALS"`
	AwsRegion          string `mapstructure:"AWS_REGION"`
	OrderFillQueueUrl  string `mapstructure:"ORDER_FILL_QUEUE_URL"`
	AssetTableName     string `mapstructure:"PRODUCT_PRICE_TABLE_NAME"`
	ProductIds         string `mapstructure:"PRODUCT_IDS"`
	DatabaseEndpoint   string `mapstructure:"DATABASE_ENDPOINT"`
	AwsConfig          aws.Config
}

func (AppConfig) IsLocalEnv

func (a AppConfig) IsLocalEnv() bool

Jump to

Keyboard shortcuts

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