config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host    string
	Key     string
	Secret  string
	Timeout int64
	DB      struct {
		Host     string
		Login    string
		Password string
		Name     string
	}
	Neural struct {
		Iterations int
		Predict    float64
	}
	Strategy struct {
		Profit   float64
		StopLose float64
		Quantity float32
	}
}

func LoadConfig

func LoadConfig(path string) Config

type MasterConfig

type MasterConfig struct {
	IsDev  bool
	Master Config
	Dev    Config
}

func LoadMasterConfig

func LoadMasterConfig(path string) MasterConfig

Jump to

Keyboard shortcuts

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