libjw

package
v0.0.0-...-8291da2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: GPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

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 CreateAlert(alert Alert) int

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 GetCatalog

func GetCatalog(path string, onlyifrequired bool)

GetCatalog downloads catalog.db

func GetLanguages

func GetLanguages() structs.Languages

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

func ParseCatalog(catalog string, target string) error

ParseCatalog - convert sqlite3 catalog.db into few json files

func UpdateDescription

func UpdateDescription(alert int, title string, description string)

Types

type Alert

type Alert struct {
	Title       string
	Description string
	Color       string
	Cause       string
	Callbacks   []AlertCallback
}

type AlertCallback

type AlertCallback struct {
	Title    string
	Endpoint string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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