libsync

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOrCreateChapter

func GetOrCreateChapter(ctx context.Context, db *database.Database, chapter *Chapter, serie *database.Serie) (database.Chapter, error)

func GetOrCreateSerie

func GetOrCreateSerie(ctx context.Context, db *database.Database, serie *Serie) (database.Serie, error)

Types

type Chapter

type Chapter struct {
	Slug   string
	Title  string
	Pages  []string
	Number int

	Path string
}

type Library

type Library struct {
	Base   string
	Series []Serie
}

func ReadFromDir

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

func (*Library) Sync

func (lib *Library) Sync(db *database.Database, workDir types.WorkDir)

type Serie

type Serie struct {
	Slug      string
	Path      string
	Title     string
	CoverPath string
	Chapters  []Chapter
}

Jump to

Keyboard shortcuts

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