Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Feeds []FeedConfig `yaml:"feeds"` Env EnvConfig Dashboard Dashboard `yaml:"dashboard"` }
func (*Config) FeedByName ¶
func (c *Config) FeedByName(name string) *FeedConfig
type EnvConfig ¶
type EnvConfig struct { RedisUrl string `env:"REDIS_URL"` RedisAddress string `env:"REDIS_ADDRESS"` RedisUsername string `env:"REDIS_USERNAME"` RedisPassword string `env:"REDIS_PASSWORD"` RedisDatabase int `env:"REDIS_DATABASE"` Port string `env:"PORT" envDefault:"8080"` Address string `env:"ADDRESS" envDefault:"0.0.0.0"` TickDuration time.Duration `env:"TICK_DURATION" envDefault:"15m"` }
EnvConfig contains values expected from the environment
type FeedConfig ¶
type FeedConfig struct { Name string `yaml:"name"` Query FeedQuery `yaml:"query"` Schedule FeedSchedule `yaml:"schedule"` Store []FeedStore `yaml:"store"` }
type FeedSchedule ¶
type FeedSchedule struct {
Every string `yaml:"every"`
}
Click to show internal directories.
Click to hide internal directories.