history

package
v0.0.0-...-d9242b9 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() (chapters map[string]*SavedChapter, err error)

Get returns all chapters from the history file

func Remove

func Remove(chapter *SavedChapter) error

Remove removes the chapter from the history file

func Save

func Save(chapter *source.Chapter) error

Save saves the chapter to the history file

Types

type SavedChapter

type SavedChapter struct {
	SourceID           string `json:"source_id"`
	MangaName          string `json:"manga_name"`
	MangaURL           string `json:"manga_url"`
	MangaChaptersTotal int    `json:"manga_chapters_total"`
	Name               string `json:"name"`
	URL                string `json:"url"`
	ID                 string `json:"id"`
	Index              int    `json:"index"`
	MangaID            string `json:"manga_id"`
}

func (*SavedChapter) String

func (c *SavedChapter) String() string

Jump to

Keyboard shortcuts

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