Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfigFiles = []string{"gemplex.toml", "/etc/gemplex.toml"}
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Db struct { Name string Host string Port int User string Password string SslMode string } Index struct { // the path in which we look for the index directories Path string // batch size used when indexing; higher values increase indexing // performance, but also increase memory consumption. BatchSize int } Search struct { UnixSocketPath string } Crawl struct { // the period (in seconds) in between "queue size" logs. if set to zero // (default) those logs will be disabled. QueueStatusLogPeriod int } Blacklist struct { Domains []string Prefixes []string } }
func LoadConfig ¶
func (*Config) GetDbConnStr ¶
Click to show internal directories.
Click to hide internal directories.