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 ¶
Click to show internal directories.
Click to hide internal directories.