package
Version:
v0.0.0-...-cc8f6e5
Opens a new window with list of versions in this module.
Published: Aug 14, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Broker struct {
DB DB `yaml:"db"`
}
Broker broker config.
type Client struct {
Token string `yaml:"token"`
}
Client telegram client config.
type Config struct {
Exchange Exchange `yaml:"exchange"`
Broker Broker `yaml:"broker"`
Client Client `yaml:"client"`
}
Config main config.
Load loads configs from a file.
type DB struct {
Host string `yaml:"host"`
Port int32 `yaml:"port"`
User string `yaml:"user"`
Password string `yaml:"password"`
DBName string `yaml:"db_name"`
TimeZone string `yaml:"time_zone"`
}
DB Postgres config.
type Exchange struct {
Tickers []string `yaml:"tickers"`
Interval time.Duration `yaml:"interval"`
}
Exchange stock exchange service config.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.