Documentation ¶
Index ¶
Constants ¶
View Source
const ( TransactionStatusPending = "PENDING" TransactionStatusFilled = "FILLED" TransactionStatusCanceled = "CANCELED" TransactionStatusFailed = "FAILED" // Used to map Entry Postgres UUIDs VenueFeeSenderEntryKey = "venueFeeSenderEntry" VenueFeeReceiverEntryKey = "venueFeeReceiverEntry" RetailFeeSenderEntryKey = "retailFeeSenderEntry" RetailFeeReceiverEntryKey = "retailFeeReceiverEntry" SenderEntryKey = "senderEntry" ReceiverEntryKey = "receiverEntry" Debit = "DEBIT" Credit = "CREDIT" Buy = "BUY" Sell = "SELL" // QLDB Table Names AccountsTable = "Accounts" LedgerTable = "Ledger" )
Variables ¶
This section is empty.
Functions ¶
func ValidateConfig ¶
Types ¶
type AppConfig ¶
type AppConfig struct { Port string `mapstructure:"PORT"` DbCreds string `mapstructure:"DB_CREDENTIALS"` DbPort string `mapstructure:"DB_PORT"` DbHostname string `mapstructure:"DB_HOSTNAME"` Env string `mapstructure:"ENV_NAME"` LogLevel string `mapstructure:"LOG_LEVEL"` NetworkName string `mapstructure:"INTERNAL_API_HOSTNAME"` CoinbaseUserId string `mapstructure:"COINBASE_USER_ID"` NeoworksUserId string `mapstructure:"NEOWORKS_USER_ID"` CoinbaseUsdAccountId string `mapstructure:"COINBASE_USD_ACCOUNT_ID"` NeoworksUsdAccountId string `mapstructure:"NEOWORKS_USD_ACCOUNT_ID"` DevRegion string `mapstructure:"DEV_REGION"` QldbName string `mapstructure:"QLDB_NAME"` QueueUrl string `mapstructure:"QUEUE_URL"` LocalStackUrl string `mapstructure:"LOCAL_STACK_URL"` DevProfile string `mapstructure:"DEV_PROFILE"` }
func (AppConfig) GenerateAwsConfig ¶
func (AppConfig) IsLocalEnv ¶
Click to show internal directories.
Click to hide internal directories.