model

package
v0.0.0-...-16f82d3 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ComicInfoXmlName = "ComicInfo.xml"

Variables

This section is empty.

Functions

func Convert

func Convert(name string, value string) (any, error)

Convert a string representation of a value to the correct data type.

Types

type AgeRating

type AgeRating string

type ArrayOfComicPageInfo

type ArrayOfComicPageInfo []ComicPageInfo

type ComicInfo

type ComicInfo struct {
	Title               string               `xml:",omitempty"`
	Series              string               `xml:",omitempty"`
	Number              string               `xml:",omitempty"`
	Count               int64                `xml:",omitempty"`
	Volume              int64                `xml:",omitempty"`
	AlternativeSeries   string               `xml:",omitempty"`
	AlternativeNumber   string               `xml:",omitempty"`
	AlternativeCount    int64                `xml:",omitempty"`
	Summary             string               `xml:",omitempty"`
	Notes               string               `xml:",omitempty"`
	Year                int64                `xml:",omitempty"`
	Month               int64                `xml:",omitempty"`
	Day                 int64                `xml:",omitempty"`
	Writer              string               `xml:",omitempty"`
	Penciller           string               `xml:",omitempty"`
	Inker               string               `xml:",omitempty"`
	Colorist            string               `xml:",omitempty"`
	Letterer            string               `xml:",omitempty"`
	CoverArtist         string               `xml:",omitempty"`
	Editor              string               `xml:",omitempty"`
	Translator          string               `xml:",omitempty"`
	Publisher           string               `xml:",omitempty"`
	Imprint             string               `xml:",omitempty"`
	Genre               string               `xml:",omitempty"`
	Web                 string               `xml:",omitempty"`
	PageCount           int64                `xml:",omitempty"`
	LanguageISO         string               `xml:",omitempty"`
	Format              string               `xml:",omitempty"`
	BlackAndWhite       YesNo                `xml:",omitempty"`
	Manga               Manga                `xml:",omitempty"`
	Characters          string               `xml:",omitempty"`
	Teams               string               `xml:",omitempty"`
	Locations           string               `xml:",omitempty"`
	ScanInformation     string               `xml:",omitempty"`
	StoryArc            string               `xml:",omitempty"`
	SeriesGroup         string               `xml:",omitempty"`
	AgeRating           AgeRating            `xml:",omitempty"`
	Pages               ArrayOfComicPageInfo `xml:"Pages>Page,omitempty"`
	CommunityRating     Rating               `xml:",omitempty"`
	MainCharacterOrTeam string               `xml:",omitempty"`
	Review              string               `xml:",omitempty"`
}

func Unmarshal

func Unmarshal(file *zip.File) (*ComicInfo, error)

func (*ComicInfo) String

func (c *ComicInfo) String() string

func (*ComicInfo) Validate

func (c *ComicInfo) Validate() error

type ComicPageInfo

type ComicPageInfo struct {
	Image       int           `xml:",attr"`
	Type        ComicPageType `xml:",attr,omitempty"`
	DoublePage  bool          `xml:",attr,omitempty"`
	ImageSize   int64         `xml:",attr,omitempty"`
	Key         string        `xml:",attr,omitempty"`
	Bookmark    string        `xml:",attr,omitempty"`
	ImageWidth  int           `xml:",attr,omitempty"`
	ImageHeight int           `xml:",attr,omitempty"`
}

type ComicPageType

type ComicPageType string

type Manga

type Manga string

type Rating

type Rating float64

type YesNo

type YesNo string

Jump to

Keyboard shortcuts

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