responses

package
v0.0.0-...-2853941 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 0 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	ID               string       `xml:"id"`
	Name             string       `xml:"name"`
	ImageURL         string       `xml:"image_url"`
	SmallImageURL    string       `xml:"small_image_url"`
	LargeImageURL    string       `xml:"large_image_url"`
	Link             string       `xml:"link"`
	AverageRating    float32      `xml:"average_rating"`
	RatingsCount     int          `xml:"ratings_count"`
	TextReviewsCount int          `xml:"text_reviews_count"`
	FansCount        int          `xml:"fans_count"`
	AuthorFollowers  int          `xml:"author_followers"`
	About            string       `xml:"about"`
	WorksCount       int          `xml:"works_count"`
	Gender           string       `xml:"gender"`
	Hometown         string       `xml:"hometown"`
	BornAt           string       `xml:"born_at"`
	DiedAt           string       `xml:"died_at"`
	GoodreadsAuthor  bool         `xml:"goodreads_author"`
	UserID           string       `xml:"user>user_id"`
	Books            []AuthorBook `xml:"books>book"`
}

type AuthorBook

type AuthorBook struct {
	ID                 string   `xml:"id"`
	ISBN               string   `xml:"isbn"`
	ISBN13             string   `xml:"isbn13"`
	TextReviewsCount   int      `xml:"text_reviews_count"`
	URI                string   `xml:"uri"`
	Title              string   `xml:"title"`
	TitleWithoutSeries string   `xml:"title_without_series"`
	ImageURL           string   `xml:"image_url"`
	SmallImageURL      string   `xml:"small_image_url"`
	LargeImageURL      string   `xml:"large_image_url"`
	Link               string   `xml:"link"`
	NumPages           int      `xml:"num_pages"`
	Format             string   `xml:"format"`
	EditionInformation string   `xml:"edition_information"`
	Publisher          string   `xml:"publisher"`
	PublicationDay     int      `xml:"publication_day"`
	PublicationYear    int      `xml:"publication_year"`
	PublicationMonth   int      `xml:"publication_month"`
	AverageRating      float32  `xml:"average_rating"`
	RatingsCount       int      `xml:"ratings_count"`
	Description        string   `xml:"description"`
	Authors            []Author `xml:"authors>author"`
}

type Review

type Review struct {
	ID          string     `xml:"id"`
	Book        AuthorBook `xml:"book"`
	Rating      int        `xml:"rating"`
	StartedAt   string     `xml:"started_at"`
	ReadAt      string     `xml:"read_at"`
	DateAdded   string     `xml:"date_added"`
	DateUpdated string     `xml:"date_updated"`
	ReadCount   int        `xml:"read_count"`
	Body        string     `xml:"body"`
}

type ReviewCounts

type ReviewCounts struct {
	ID                   int    `json:"id"`
	ISBN                 string `json:"isbn"`
	ISBN13               string `json:"isbn13"`
	RatingsCount         int    `json:"ratings_count"`
	ReviewsCount         int    `json:"reviews_count"`
	TextReviewsCount     int    `json:"text_reviews_count"`
	WorkRatingsCount     int    `json:"work_ratings_count"`
	WorkReviewsCount     int    `json:"work_reviews_count"`
	WorkTextReviewsCount int    `json:"work_text_reviews_count"`
	AverageRating        string `json:"average_rating"`
}

ReviewCounts defines the review statistics from the book.review_counts method in the Goodreads API.

type User

type User struct {
	ID            string      `xml:"id"`
	Name          string      `xml:"name"`
	Link          string      `xml:"link"`
	ImageURL      string      `xml:"image_url"`
	SmallImageURL string      `xml:"small_image_url"`
	About         string      `xml:"about"`
	Gender        string      `xml:"gender"`
	Location      string      `xml:"location"`
	Website       string      `xml:"website"`
	Joined        string      `xml:"joined"`
	LastActive    string      `xml:"last_active"`
	FriendsCount  int         `xml:"friends_count"`
	GroupsCount   int         `xml:"groups_count"`
	ReviewCount   int         `xml:"reviews_count"`
	UserShelves   []UserShelf `xml:"user_shelves>user_shelf"`
}

type UserShelf

type UserShelf struct {
	ID            string `xml:"id"`
	Name          string `xml:"name"`
	BookCount     string `xml:"book_count"`
	ExclusiveFlag bool   `xml:"exclusive_flag"`
	Description   string `xml:"description"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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