novelrss

package module
v0.0.0-...-259ef3f Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UpdateTime time.Time

Functions

func LoadTemplate

func LoadTemplate(path string) (*template.Template, error)

func ToRSS

func ToRSS(novellist NovelList) []byte

func Update

func Update(novellist NovelList)

func WebAssetsDir

func WebAssetsDir(path string) *binaryFileSystem

Types

type Chapter

type Chapter struct {
	Author string    `json:"author"`
	Title  string    `json:"title"`
	Link   string    `json:"link"`
	MD5    string    `json:"md5"`
	Time   time.Time `json:"updated_at"`
	IsNew  bool
}

type NovelItem

type NovelItem struct {
	Title         string `json:"title"`
	Url           string `json:"url"`
	UpdateChapter Chapter
}

type NovelList

type NovelList []NovelItem

func (NovelList) Len

func (l NovelList) Len() int

func (NovelList) Less

func (l NovelList) Less(i, j int) bool

func (NovelList) Swap

func (l NovelList) Swap(i, j int)

type NovelSite

type NovelSite struct {
	Selector map[string]string
	BaseUrl  string
}

Directories

Path Synopsis
doc

Jump to

Keyboard shortcuts

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