config

package
v0.0.0-...-bc4c757 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

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 LoadConfig(configFilename string) *Config

func (*Config) GetDbConnStr

func (c *Config) GetDbConnStr() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL