config

package
v3.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: GPL-3.0 Imports: 4 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 {
	LogPath           string `yaml:"log_path"`
	EnableFileLogging bool   `yaml:"enable_file_logging"`
	BaseURL           string `yaml:"base_url"`
	Host              string `yaml:"host"`
	Port              int    `yaml:"port"`
	DownloadPath      string `yaml:"downloadPath"`
	DownloaderPath    string `yaml:"downloaderPath"`
	RequireAuth       bool   `yaml:"require_auth"`
	Username          string `yaml:"username"`
	Password          string `yaml:"password"`
	QueueSize         int    `yaml:"queue_size"`
	LocalDatabasePath string `yaml:"local_database_path"`
	SessionFilePath   string `yaml:"session_file_path"`

	UseOpenId          bool   `yaml:"use_openid"`
	OpenIdProviderURL  string `yaml:"openid_provider_url"`
	OpenIdClientId     string `yaml:"openid_client_id"`
	OpenIdClientSecret string `yaml:"openid_client_secret"`
	OpenIdRedirectURL  string `yaml:"openid_redirect_url"`
	FrontendPath       string `yaml:"frontend_path"`
	// contains filtered or unexported fields
}

func Instance

func Instance() *Config

func (*Config) Dir

func (c *Config) Dir() string

Path of the directory containing the config file

func (*Config) LoadFile

func (c *Config) LoadFile(filename string) error

Initialises the Config struct given its config file

func (*Config) Path

func (c *Config) Path() string

Absolute path of the config file

Jump to

Keyboard shortcuts

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