Documentation ¶
Index ¶
- type Annotation
- type Author
- type Binary
- type CoverPage
- type FB2
- func (fb *FB2) GetAuthors() []*model.Author
- func (fb *FB2) GetCover() string
- func (fb *FB2) GetFormat() string
- func (fb *FB2) GetGenres() []string
- func (fb *FB2) GetLanguage() *model.Language
- func (fb *FB2) GetPlot() string
- func (fb *FB2) GetSerie() *model.Serie
- func (fb *FB2) GetSerieNumber() int
- func (fb *FB2) GetSort() string
- func (fb *FB2) GetTitle() string
- func (fb *FB2) GetYear() string
- func (fb *FB2) String() string
- type Image
- type Serie
- type TitleInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
type Annotation struct {
Text string `xml:",innerxml"`
}
type Binary ¶
type Binary struct { Id string `xml:"id,attr"` ContentType string `xml:"content-type,attr"` Content []byte `xml:",chardata"` }
func GetCoverPageBinary ¶
func GetCoverPageBinary(coverLink string, rc io.ReadCloser) (*Binary, error)
type FB2 ¶
type FB2 struct {
*TitleInfo
}
func (*FB2) GetAuthors ¶
func (*FB2) GetLanguage ¶
func (*FB2) GetSerieNumber ¶
type TitleInfo ¶
type TitleInfo struct { Authors []Author `xml:"author"` Title string `xml:"book-title"` Gengres []string `xml:"genre"` Annotation Annotation `xml:"annotation"` Date string `xml:"date"` Year string `xml:"year"` Lang string `xml:"lang"` Serie Serie `xml:"sequence"` CoverPage Image `xml:"coverpage>image"` }
Click to show internal directories.
Click to hide internal directories.