models

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: MIT-0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	Author    string
	Profile   AuthorProfile
	Works     []Work
	Bookmarks []Bookmark
	Gift      []Work
	Series    []Series
}

type AuthorParams

type AuthorParams struct {
	Addr           string
	Author         string
	Debug          bool
	WorkPageSpleep int
	ProxyURLs      []string
	Login          Login
}

type AuthorProfile

type AuthorProfile struct {
	Pseuds   []string
	JoinDate string
	Bio      string
}

type Bookmark

type Bookmark struct {
	Title          string
	URL            string
	WorkID         string
	Author         []string
	DatePublished  time.Time
	DateBookmarked time.Time
	Updated        time.Time
	Language       string
	NBChapters     string
	Words          string
	Comments       int
	Kudos          int
	Bookmarks      int
	Hits           int
	// RequiredTags    RequiredTags
	RequiredTags    []string
	Fandom          []string
	Summary         []string
	Relationship    []string
	AlternativeTags []string
	Downloads       []string
	Chapters        []Chapter
}

type Chapter

type Chapter struct {
	ChapterID string    `bson:"chapter_id"`
	Name      string    `bson:"chapter_name"`
	Date      time.Time `bson:"date_posted"`
}

type FanficParams

type FanficParams struct {
	Scheme    string
	Addr      string
	WorkID    string
	ChapterID string
	Debug     bool
	ProxyURLs []string
	Login     Login
}

type Login

type Login struct {
	Scheme     string
	Addr       string
	Username   string
	Password   string
	RememberMe bool
}

type RequiredTags

type RequiredTags struct {
	ContentRating  string `bson:""`
	ContentWarning string `bson:""`
	Relationship   string `bson:""`
	WorkStatus     string `bson:""`
}

type Series

type Series struct {
	Name  string
	ID    string
	Works []Work
}

type Work

type Work struct {
	Title         string    `bson:"title"`
	URL           string    `bson:"url"`
	WorkID        string    `bson:"workid"`
	Author        []string  `bson:"author"`
	DatePublished time.Time `bson:"datepublished"`
	Updated       time.Time `bson:"updated"`
	Language      string    `bson:"language"`
	NBChapters    string    `bson:"nbchapters"`
	Words         string    `bson:"words"`
	Comments      int       `bson:"comments"`
	Kudos         int       `bson:"kudos"`
	Bookmarks     int       `bson:"bookmarks"`
	Hits          int       `bson:"hits"`
	// RequiredTags    RequiredTags
	RequiredTags    []string  `bson:"required"`
	Fandom          []string  `bson:"fandom"`
	Summary         []string  `bson:"summary"`
	Relationship    []string  `bson:"relationship"`
	AlternativeTags []string  `bson:"alternativetags"`
	Downloads       []string  `bson:"download"`
	Chapters        []Chapter `bson:"chapters"`
}

Jump to

Keyboard shortcuts

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