Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Crawler *CrawlerConfig `mapstructure:"crawler"` HTTPServer *HTTPServerConfig `mapstructure:"server"` DB *DBConfig `mapstructure:"database"` }
Config stores the configuration for the application.
type CrawlerConfig ¶
type CrawlerConfig struct {
Agent string `mapstructure:"agent"`
}
CrawlerConfig stores the configuration for the crawler.
type DBConfig ¶
type DBConfig struct { Server string `mapstructure:"server"` Port int `mapstructure:"port"` User string `mapstructure:"user"` Pass string `mapstructure:"password"` Name string `mapstructure:"database"` }
DBConfig stores the configuration for the database store.
type HTTPServerConfig ¶
type HTTPServerConfig struct { Server string `mapstructure:"host"` Port int `mapstructure:"port"` URL string `mapstructure:"url"` }
HTTPServerConfig stores the configuration for the HTTP server.
Click to show internal directories.
Click to hide internal directories.