library

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChapterMetadata

type ChapterMetadata struct {
	Slug  string   `json:"slug"`
	Name  string   `json:"name"`
	Pages []string `json:"pages"`
}

type Library

type Library struct {
	Base   string
	Series []SerieMetadata
}

func ReadFromDir

func ReadFromDir(dir string) (*Library, error)

func (*Library) AddSerie added in v0.5.3

func (lib *Library) AddSerie(serie SerieMetadata) error

func (*Library) FlushToDisk added in v0.5.3

func (lib *Library) FlushToDisk() error

type SerieMetadata

type SerieMetadata struct {
	Title    string            `json:"title"`
	CoverArt string            `json:"coverArt"`
	Chapters []ChapterMetadata `json:"chapters"`
	// contains filtered or unexported fields
}

func (*SerieMetadata) MarkChanged added in v0.5.3

func (s *SerieMetadata) MarkChanged()

func (SerieMetadata) Path added in v0.5.3

func (s SerieMetadata) Path() string

Jump to

Keyboard shortcuts

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