Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
Port string `yaml:"port",json:"port"`
}
AppConfig stores the applications configuration
func NewAppConfig ¶
Functions ****************************** NewAppConfig return an application configuration for use with the API and app
type CronConfig ¶
type CronConfig struct { DB CronConfigDB `yaml:"db",json:"db"` API CronConfigAPI `yaml:"api",json:"api"` }
CronConfig stores the cron job configuration
func NewCronConfig ¶
func NewCronConfig() (*CronConfig, error)
NewCronConfig return a cron job configuration from the environment variables TODO: Switch to viper
type CronConfigAPI ¶
type CronConfigAPI struct {
Keys CronConfigAPIKeys `yaml:"keys",json:"keys"`
}
CronConfigAPI
type CronConfigAPIKeys ¶
type CronConfigAPIKeys struct {
AlphaVantage string `yaml:"alphavantage",json:"alphavantage"`
}
CronConfigAPIKeys
Click to show internal directories.
Click to hide internal directories.