models

package
v0.0.0-...-f377a24 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	Isbn            string
	Title           string
	Url             string
	Authors         string
	Publisher       string
	Categories      string
	Ccode           string
	Target          string
	Format          string
	Content         string
	PubDate         time.Time
	CreatedDate     time.Time
	LastUpdatedDate time.Time
}

func (*Book) AsNotificationMessage

func (b *Book) AsNotificationMessage() string

func (*Book) UpdateDetails

func (b *Book) UpdateDetails(detailedInfo *details.DetailedInformation)

type BookList

type BookList struct {
	UploadDate time.Time
	Books      []*Book
}

func NewBookListFromFeed

func NewBookListFromFeed(feed *gofeed.Feed) *BookList

func (*BookList) FilterOut

func (bl *BookList) FilterOut(isbns []string) *BookList

Jump to

Keyboard shortcuts

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