model

package
v0.0.0-...-4e3d77a Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const COVER_IMAGE_FILENAME = "cover"
View Source
const SERIES_IMAGE_BASEDIR = "series"

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

type Archive struct {
	ID                int
	RelPath           string
	Series            *Series
	Volume            *string
	Chapter           *string
	PageCount         *int
	CoverImageRelPath *string
}

Archives are things the relate to physical files/directories on disk. The are (or can be) packaged up in a single CBZ file.

func EmptyArchive

func EmptyArchive(relpath string) *Archive

func (*Archive) Assume

func (this *Archive) Assume(other *Archive)

Assume all the attributes of other.

func (*Archive) String

func (this *Archive) String() string

type MetadataCrawl

type MetadataCrawl struct {
	ID                int
	MetadataSource    string
	MetadataSourceID  string
	SourceSeries      *Series
	Name              string
	AltNames          *string
	Author            *string
	Year              *int
	URL               *string
	Description       *string
	CoverImageRelPath *string
	Timestamp         time.Time
}

func EmptyCrawl

func EmptyCrawl(source string, sourceID string) *MetadataCrawl

func (*MetadataCrawl) String

func (this *MetadataCrawl) String() string

type MetadataCrawlRequest

type MetadataCrawlRequest struct {
	ID        int
	Series    *Series
	Query     string
	Timestamp time.Time
}

func EmptyCrawlRequest

func EmptyCrawlRequest() *MetadataCrawlRequest

func (*MetadataCrawlRequest) String

func (this *MetadataCrawlRequest) String() string

type Series

type Series struct {
	ID                int
	Name              string
	AltNames          *string
	Author            *string
	Year              *int
	URL               *string
	Description       *string
	CoverImageRelPath *string
	MetadataSource    *string
	MetadataSourceID  *string
}

func EmptySeries

func EmptySeries() *Series

func (*Series) AssumeCrawl

func (this *Series) AssumeCrawl(crawl *MetadataCrawl) error

func (*Series) String

func (this *Series) String() string

Jump to

Keyboard shortcuts

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