config

package
v0.0.0-...-76e708a Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Mail           mailConfig
	Crawl          crawlConfig
	DB             dbConfig
	WebServer      webConfig
	ReportInterval int64
}

Config is the base struct for Rss2Go configuration information.

func NewConfig

func NewConfig() *Config

NewConfig returns a Config struct with reasonable defaults set.

func NewTestConfig

func NewTestConfig() *Config

NewTestConfig returns a Config instance suitable for use in testing.

func (*Config) ReadConfig

func (c *Config) ReadConfig(configPath string) error

ReadConfig Decodes and evaluates a json config file, watching for include cycles.

Jump to

Keyboard shortcuts

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