api

package
v0.0.0-...-0fe5296 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorComment

type AuthorComment struct {
	Comment string `goquery:"#footer_plus"`
}

func GetAuthorComment

func GetAuthorComment(id int) (AuthorComment, error)

type Chapter

type Chapter struct {
	Name string
	Id   int
	Type string
}

type Comment

type Comment struct {
	Id            int    `json:"comment_idx"`
	UserName      string `json:"user_name"`
	RegDate       string `json:"comment_regdate"`
	Message       string `json:"comment_msg"`
	ChildrenCount string `json:"comment_child_cnt"`
	UserImage     string `json:"user_img"`
	Image         string `json:"comment_img"`
	Upvotes       int    `json:"comment_vote"`
	Downvotes     int    `json:"comment_bad"`
}

type Comments

type Comments struct {
	Comments []Comment
	Page     Page
}

func GetComments

func GetComments(id int) (Comments, error)

type Novel

type Novel struct {
	Title     string   `goquery:".epnew-novel-title"`
	Cover     string   `goquery:".cover_img,[src]"`
	CoverFull string   `goquery:".venobox:has(.cover_img),[href]"`
	Author    string   `goquery:".in-writer .writer-name"`
	Synopsis  string   `goquery:".epnew-novel-info .synopsis"`
	Tags      []string `goquery:".epnew-novel-info .writer-tag > .tag"`
}

func GetNovel

func GetNovel(id int) (Novel, error)

type Page

type Page struct {
	Current int `json:"CNT"`
	All     int `json:"ALL"`
	Max     int `json:"MAX"`
	MaxPage int `json:"MAX_PAGE"`
	Start   int `json:"START"`
	End     int `json:"END"`
	Back    int `json:"BACK"`
	Next    int `json:"NEXT"`
}

type Script

type Script struct {
	Lines []string
}

func GetScript

func GetScript(id int) (Script, error)

func (*Script) Textify

func (script *Script) Textify() string

type Toc

type Toc struct {
	Chapters []Chapter
}

func GetToc

func GetToc(id int, page int) (Toc, error)

Jump to

Keyboard shortcuts

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