config

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadLocales

func LoadLocales()

Types

type Config

type Config struct {
	Library struct {
		BOOK_STOCK       string `yaml:"BOOK_STOCK"`
		NEW_ACQUISITIONS string `yaml:"NEW_ACQUISITIONS"`
		TRASH            string `yaml:"TRASH"`
	}
	Language struct {
		DEFAULT string `yaml:"DEFAULT"`
	}
	Database struct {
		DSN              string `yaml:"DSN"`
		INIT_SCRIPT      string `yaml:"INIT_SCRIPT"`
		DROP_SCRIPT      string `yaml:"DROP_SCRIPT"`
		POLL_PERIOD      int    `yaml:"POLL_PERIOD"`
		MAX_SCAN_THREADS int    `yaml:"MAX_SCAN_THREADS"`
		ACCEPTED_LANGS   string `yaml:"ACCEPTED_LANGS"`
	}
	Genres struct {
		TREE_FILE string `yaml:"TREE_FILE"`
	}
	Logs struct {
		OPDS  string `yaml:"OPDS"`
		SCAN  string `yaml:"SCAN"`
		LEVEL string `yaml:"LEVEL"`
	}
	OPDS struct {
		PORT      int `yaml:"PORT"`
		PAGE_SIZE int `yaml:"PAGE_SIZE"`
	}
}

See config.yml for comments about this struct

func LoadConfig

func LoadConfig(configFile string) *Config

func (*Config) MkDirAll added in v1.1.0

func (cfg *Config) MkDirAll()

Jump to

Keyboard shortcuts

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