store

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: GPL-3.0 Imports: 2 Imported by: 3

Documentation

Overview

Package store is download cache file struct

Index

Constants

View Source
const FileExt = "FictionDown"

FileExt is filename extension (without dot)

Variables

This section is empty.

Functions

This section is empty.

Types

type Chapter

type Chapter struct {
	Name    string
	URL     string
	TURL    []string
	Text    []string
	Example []string
	Alias   []string   `yaml:"-"`
	MuxLock sync.Mutex `yaml:"-"`
}

Chapter 章节

type Store

type Store struct {
	BookURL     string
	BookName    string
	Author      string    // 作者
	CoverURL    string    // 封面链接
	Description string    // 介绍
	LastUpdate  time.Time `yaml:",omitempty"` // 数据更新时间
	Tmap        []string  //盗版源
	Volumes     []Volume
}

Store is store yaml data file format

func (Store) Total added in v0.1.2

func (store Store) Total() (Done, Example, ExampleDone, AllChaper int)

type Volume

type Volume struct {
	Name     string
	IsVIP    bool
	Chapters []Chapter
}

Volume 卷

func DiffStoreVolume added in v0.1.3

func DiffStoreVolume(oldVolumes, newVolumes Volume) (sub, add []Volume)

DiffStoreVolume 对比两个卷信息,得到减少的部分和增加的部分

Jump to

Keyboard shortcuts

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