config

package
v0.0.0-...-d0dd730 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: Apache-2.0 Imports: 5 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bitcoin

type Bitcoin struct {
	Enabled   bool
	RPCServer string
	RPCUser   string
	RPCPass   string
	Testnet   bool
}

Bitcoin data for bitcoin client

type Config

type Config struct {
	Port                  int
	ApplicationDir        string
	IsDevSystem           bool
	AllowFakeTransactions bool

	DBService                     Service
	CustomerDB                    DBConfig
	Bitcoin                       Bitcoin
	Ethereum                      Ethereum
	Stellar                       Stellar
	Fiat                          Fiat
	StellarHorizenDB              DBConfig
	StellarOperationFeeDenom      string
	StellarBaseReserveDenom       string
	StellarChannelStartBalanceXLM string
}

Config for the app

func ReadConfig

func ReadConfig(cmd *cobra.Command) (*Config, error)

ReadConfig reads the configuration from the file

type DBConfig

type DBConfig struct {
	DBUser     string
	DBPassword string
	DBHost     string
	DBPort     int64
	DBName     string
}

DBConfig is the definition for a DB connection

type Ethereum

type Ethereum struct {
	Enabled   bool
	RPCServer string
	NetworkID string
	Testnet   bool
}

Ethereum data for ethereum client

type Fiat

type Fiat struct {
	IBAN            string
	BIC             string
	TokenPrice      float64
	DestiantionName string
	PaymentUsage    string
}

Fiat is the definition for the fiat payment

type Service

type Service struct {
	ServicePort int64
	ServiceHost string
}

Service definition for a service confifuration

type Stellar

type Stellar struct {
	Enabled           bool
	Horizon           string
	NetworkPassphrase string
	Testnet           bool
}

Stellar data for stellar network

Jump to

Keyboard shortcuts

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