settings

package
v0.0.0-...-7e6829a Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	APPLICATION_SETTINGS = AppSettings{
		Host:  "127.0.0.1",
		Port:  8083,
		Debug: os.Getenv("PAYAKA_DEBUG") == "1",
	}

	PAYMENT_GATE_SETTINGS = LoadPaymentGateSettings()
)

Functions

This section is empty.

Types

type AppSettings

type AppSettings struct {
	Host  string
	Port  int
	Debug bool
}

type PaymentGateSettings

type PaymentGateSettings struct {
	BitcoinInsightAPIURL     string `json:"bitcoin_insight_api_url"`
	EthereumAPIURL           string `json:"etherium_api_url"`
	BTCCommissionWallet      string `json:"btc_commission_wallet"`
	BCHCommissionWallet      string `json:"bch_commission_wallet"`
	PostgresConnectionString string `json:"pg_connection_string"`
	EtherscanAPIKey          string `json:"etherscan_api_key"`
}

func LoadPaymentGateSettings

func LoadPaymentGateSettings() PaymentGateSettings

Jump to

Keyboard shortcuts

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