config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GrpcServerPortKey is port on which grpc server is running
	GrpcServerPortKey = "SERVER_PORT"
	// InfluxDbOrg is organisation name
	InfluxDbOrg = "INFLUXDB_INIT_ORG"
	// InfluxDbAuthToken is token used as cred by tdexad
	InfluxDbAuthToken = "INFLUXDB_TOKEN"
	// InfluxDbUrl is db url
	InfluxDbUrl = "INFLUXDB_URL"
	// InfluxDbAnalyticsBucket is bucket that tdexd using to store data
	InfluxDbAnalyticsBucket = "INFLUXDB_INIT_BUCKET"
	// DbUserKey is postgres db user used by tdexd
	DbUserKey = "DB_USER"
	// DbPassKey is postgres db pass used by tdexd
	DbPassKey = "DB_PASS"
	// DbHostKey is postgres db host
	DbHostKey = "DB_HOST"
	// DbPortKey is postgres db port
	DbPortKey = "DB_PORT"
	// DbNameKey is postgres db name
	DbNameKey = "DB_NAME"
	// DbMigrationPath is postgres db migration path
	DbMigrationPath = "DB_MIGRATION_PATH"
	// DbInsecure is bool based on which postgres db conn will be created to AWS RDS or self-hosted PG DB
	DbInsecure = "DB_INSECURE"
	// AwsRegion region, used for connectiog to AWS RDS
	AwsRegion = "AWSREGION"
	// TorProxyUrl is tor client proxy url used to connect to liquidity providers using onion
	TorProxyUrl = "TOR_PROXY_URL"
	// RegistryUrl is url with info about available liquidity providers
	RegistryUrl = "REGISTRY_URL"
	// LogLevelKey is log level used by tdexa
	LogLevelKey = "LOG_LEVEL"
	// PriceAmount is amount used when invoking tdex-daemon MarketPrice RPC
	PriceAmount = "PRICE_AMOUNT"
	// JobPeriodInMinutes is recurring interval for running fetch balance/price jobs
	JobPeriodInMinutes = "JOB_PERIOD_IN_MINUTES"
	// SSLCertPathKey is the path to the SSL certificate
	SSLCertPathKey = "SSL_CERT"
	// SSLKeyPathKey is the path to the SSL private key
	SSLKeyPathKey = "SSL_KEY"
	// ExplorerUrl is explorer url used by tdexa
	ExplorerUrl = "EXPLORER_URL"
	//AssetCurrencyPair is the asset currency pair used by tdexa,
	//format: asset_hash:currency, asset_hash/currency pairs should be delimited by comma
	//example: 0x0000000000000000000000000000000000000000:LBTC,0x0000000000000000000000000000000000000000:USDT
	AssetCurrencyPair = "ASSET_CURRENCY_PAIRS"
)

Variables

This section is empty.

Functions

func GetAssetCurrencyPair

func GetAssetCurrencyPair() map[string]string

func GetBool

func GetBool(key string) bool

func GetInt

func GetInt(key string) int

func GetString

func GetString(key string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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