types

package
v0.0.0-...-39a5570 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	BaseURL         *url.URL    `cfg:"config.api.baseUrl,strict"`
	AlbumPath       string      `cfg:"config.api.albumPath,strict"`
	SeriesPath      string      `cfg:"config.api.seriesPath,strict"`
	AccountPath     string      `cfg:"config.api.accountPath,strict"`
	ProfilePath     string      `cfg:"config.api.profilePath,strict"`
	TradePath       string      `cfg:"config.api.tradePath,strict"`
	RefreshPath     string      `cfg:"config.api.refreshPath,strict"`
	BasicHeaders    http.Header `cfg:"config.api.basicHeaders,strict"`
	TradeHeaders    http.Header `cfg:"config.api.tradeHeaders,strict"`
	PlaybookHeaders http.Header `cfg:"config.api.playbookHeaders,strict"`
}

type Account

type Account struct {
	AccountStatus string    `json:"accountStatus"`
	Profiles      []Profile `json:"profiles"`
}

type Album

type Album struct {
	ProductID               types.Nil   `json:"productId"`
	EAN                     string      `json:"ean"`
	Language                string      `json:"language"`
	AgeRating               int         `json:"ageRating"`
	PublicationDate         string      `json:"publicationDate"`
	Authors                 []string    `json:"authors"`
	Illustrators            []string    `json:"illustrators"`
	Genres                  []string    `json:"genres"`
	Publisher               string      `json:"publisher"`
	Summary                 string      `json:"summary"`
	StatusForProfile        string      `json:"statusForProfile"`
	ID                      string      `json:"id"`
	Title                   string      `json:"title"`
	Series                  AlbumSeries `json:"series"`
	Thumbnail               string      `json:"thumbnail"`
	HighResolutionThumbnail string      `json:"highResolutionThumbnail"`
	Number                  int         `json:"sequence"`
	AmountOfPages           int
}

type AlbumContent

type AlbumContent struct {
	URI string `json:"uri"`
}

type AlbumSeries

type AlbumSeries struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type Asset

type Asset struct {
	Images []Image `json:"images"`
}

type Auth

type Auth struct {
	BaseURL       *url.URL    `cfg:"config.auth.baseUrl,strict"`
	VerifyPath    string      `cfg:"config.auth.verifyPath,strict"`
	OtpPath       string      `cfg:"config.auth.otpPath,strict"`
	OtpRedirectTo string      `cfg:"config.auth.otpRedirectTo,strict"`
	Headers       http.Header `cfg:"config.auth.headers,strict"`
	Account       AuthAccount
}

type AuthAccount

type AuthAccount struct {
	AccessToken  string `cfg:"config.auth.account.accessToken,strict"`
	RefreshToken string `cfg:"config.auth.account.refreshToken,strict"`
	DeviceID     string `cfg:"config.auth.account.deviceId,strict"`
}

type Book

type Book struct {
	Assets Asset `json:"assets"`
}

type ComicInfo

type ComicInfo struct {
	Title       string `xml:"Title,omitempty"`
	Series      string `xml:"Series,omitempty"`
	Number      int    `xml:"Number,omitempty"`
	Summary     string `xml:"Summary,omitempty"`
	Year        int    `xml:"Year,omitempty"`
	Month       int    `xml:"Month,omitempty"`
	Day         int    `xml:"Day,omitempty"`
	Writer      string `xml:"Writer,omitempty"`
	Penciller   string `xml:"Penciller,omitempty"`
	Publisher   string `xml:"Publisher,omitempty"`
	Genre       string `xml:"Genre,omitempty"`
	PageCount   int    `xml:"PageCount,omitempty"`
	LanguageISO string `xml:"LanguageISO,omitempty"`
	Format      string `xml:"Format,omitempty"`
	AgeRating   int    `xml:"AgeRating,omitempty"`
	GTIN        string `xml:"GTIN,omitempty"`
}

type ComicInfoWrapper

type ComicInfoWrapper struct {
	XMLName xml.Name `xml:"ComicInfo"`
	XSI     string   `xml:"xmlns:xsi,attr"`
	XSD     string   `xml:"xmlns:xsd,attr"`
	ComicInfo
}

type Image

type Image struct {
	Reference string `json:"reference"`
	Path      string `json:"path"`
	URL       *url.URL
}

type Playbook

type Playbook struct {
	LogicalBooks []Book `json:"logicalBooks"`
}

type Profile

type Profile struct {
	ID string `json:"id"`
}

type Series

type Series struct {
	ID         string  `json:"id"`
	Name       string  `json:"name"`
	CoverImage string  `json:"coverImage"`
	Intro      string  `json:"intro"`
	Albums     []Album `json:"albums"`
}

Jump to

Keyboard shortcuts

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