Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrokerConfig ¶
type EmailConfig ¶
type EventsConfig ¶
type EventsConfig struct {
TickDelay int // in seconds
}
type NotificationConfig ¶
type NotificationConfig struct { ServiceTopic string Email EmailConfig }
type PubsubConfig ¶
type PubsubConfig struct {
Debug bool
}
type RestAPIConfig ¶
type SignalsConfig ¶
type SignalsConfig struct {
ServiceTopic string
}
type StorageConfig ¶
type StorageConfig struct { EnabledTicks []TickConfig GCPBucket struct { RotateInterval int // in seconds } }
type StrategyConfig ¶
type StrategyConfig struct { }
type SystemConfig ¶
type SystemConfig struct { RestAPI RestAPIConfig Tickers map[string]TickerConfig Notification NotificationConfig Signals SignalsConfig MQProvider string ProjectName string Events EventsConfig Pubsub PubsubConfig Broker BrokerConfig Trader TraderConfig Storage StorageConfig }
func CreateConfig ¶
func CreateConfig(r io.ReadCloser) (*SystemConfig, error)
func Init ¶
func Init() (*SystemConfig, error)
func LoadConfig ¶
func LoadConfig(filePath string) (*SystemConfig, error)
type TickConfig ¶
type TickerConfig ¶
type TickerConfig struct { Enabled bool URI string `toml:"uri"` ApiKey string `toml:"api_key"` EnabledTicks map[string]bool `toml:"enabled_ticks"` EnabledExchanges map[string]string `toml:"enabled_exchanges"` // gocryptotrader GRPC struct { Host string CertPath string `toml:"cert_path"` Username string Password string } }
type TraderConfig ¶
type TraderConfig struct {
Strategy map[string]StrategyConfig
}
Click to show internal directories.
Click to hide internal directories.