Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Log *zap.Logger
Functions ¶
This section is empty.
Types ¶
type SystemConfig ¶
type SystemConfig struct { Application struct { ID string Version string Log struct { Level zap.AtomicLevel Outputs []string } } Server struct { Mode string Port string Host string } Crawler struct { UserAgent string `yaml:"user-agent"` Proxies []string } Data struct { Mongo struct { MongoUrl string `yaml:"mongo-url"` Database string Collections struct { Htmlpages string `yaml:"htmlpages"` Feeditems string `yaml:"feeditems"` } } Redis struct { RedisUrl string `yaml:"redis-url"` Branches struct { RobotsTxt struct { Name string Ttl int } `yaml:"robots-txt"` } } NatsIO struct { NatsUrl string `yaml:"nats-url"` KvBuckets struct { RobotsTxt string `yaml:"robots-txt"` } `yaml:"kv-buckets"` } } }
var Config *SystemConfig
Click to show internal directories.
Click to hide internal directories.