royalroadapi

package
v0.0.0-...-28d58ce Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BestRatedBook

type BestRatedBook struct {
	ID   int
	Name string
}

type BestRatedBooksResponse

type BestRatedBooksResponse struct {
	Books    []BestRatedBook
	LastPage int
}

type BookPage

type BookPage struct {
	ID          int
	Name        string
	CoverURL    string
	Description string
	Author      BookPageAuthor
	Chapters    []BookPageChapter
	Tags        []string
}

type BookPageAuthor

type BookPageAuthor struct {
	Name string
	ID   int
}

type BookPageChapter

type BookPageChapter struct {
	ID         int
	Title      string
	ReleasedAt time.Time
}

type BookWithChapters

type BookWithChapters struct {
	Book     *BookPage
	Chapters []*ChapterPage
}

type ChapterPage

type ChapterPage struct {
	Content string
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) Close

func (c *Client) Close()

func (*Client) GetBestRatedBooks

func (c *Client) GetBestRatedBooks(page int) (BestRatedBooksResponse, error)

func (*Client) GetBookPage

func (c *Client) GetBookPage(bookID int) (*BookPage, error)

func (*Client) GetBookWithChapters

func (c *Client) GetBookWithChapters(bookID int) (*BookWithChapters, error)

func (*Client) GetChapterPage

func (c *Client) GetChapterPage(bookID, chapterID int) (*ChapterPage, error)

func (*Client) Run

func (c *Client) Run()

Jump to

Keyboard shortcuts

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