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: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

	StellarHorizenDB DBConfig

	Stellar Stellar
}

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 Stellar

type Stellar struct {
	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