config

package
v0.0.0-...-4b28c8f Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadViper

func LoadViper[T any](cfgPath, prefix string) (*viper.Viper, error)

LoadViper loads the configuration from the file and environment variables.

Types

type Config

type Config struct {
	Collector  collector.CollectorConfig
	Downloader collector.TransmissionConfig
	Memory     memory.Config
	Sources    map[string]collector.Source
	Entries    map[string]filter.Entry
}

Config struct contains the configuration for the application.

func Load

func Load(cfgPath string) (*Config, error)

Load initializes the configuration.

func LoadYaml

func LoadYaml(cfgPath string) (*Config, error)

Jump to

Keyboard shortcuts

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