Documentation ¶
Index ¶
- Variables
- func BuildPublications(catalog string)
- func CreateAlert(alert Alert) int
- func DecodeContentOpf(path string) structs.EPUBContentOpf
- func DecodeContentToc(path string) structs.EPUBTocNcx
- func DeleteAlert(alert int)
- func GetCatalog(path string, onlyifrequired bool)
- func GetLanguages() structs.Languages
- func GetPublication(publication string, language string, format string, issue string) (pub structs.PublicationV2, e error)
- func ParseCatalog(catalog string, target string) error
- func UpdateDescription(alert int, title string, description string)
- type Alert
- type AlertCallback
Constants ¶
This section is empty.
Variables ¶
View Source
var Alerts []Alert
View Source
var MepsMap = map[int]string{}/* 439 elements not displayed */
View Source
var Publications = make(map[string]*structs.Publication)
Publications - Store information about all Publications
Functions ¶
func BuildPublications ¶
func BuildPublications(catalog string)
BuildPublications fill Publications map with all publications
func CreateAlert ¶
func DecodeContentOpf ¶
func DecodeContentOpf(path string) structs.EPUBContentOpf
DecodeContentOpf - decode XML content.opf from extraced EPUB
func DecodeContentToc ¶
func DecodeContentToc(path string) structs.EPUBTocNcx
DecodeContentToc - decode XML content.opf from extraced EPUB
func DeleteAlert ¶
func DeleteAlert(alert int)
func GetLanguages ¶
GetLanguages - return struct of all languages
func GetPublication ¶
func GetPublication(publication string, language string, format string, issue string) (pub structs.PublicationV2, e error)
GetPublication - Fetch publication and extract it, so it can be later displayed in webui
func ParseCatalog ¶
ParseCatalog - convert sqlite3 catalog.db into few json files
func UpdateDescription ¶
Types ¶
type Alert ¶
type Alert struct { Title string Description string Color string Cause string Callbacks []AlertCallback }
type AlertCallback ¶
Click to show internal directories.
Click to hide internal directories.