goodreads

package
v0.0.0-...-37719a7 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// There are five spaces between a books
	// title and its series information if
	// the series information is given
	TITLE_AND_SERIES_INFO_SEPERATOR = regexp.MustCompile("[ ]{3,}")
	// Goodreads returns 30 books per page
	BOOK_COUNT_PER_PAGE = 30
	// Base URL that book links are built on
	GOODREADS_BASE_BOOK_URL = "https://www.goodreads.com"
	// Crude to check if a roughly  valid
	// shelf URL is being queried
	GOODREADS_SHELF_URL_PREFIX = GOODREADS_BASE_BOOK_URL + "/review/list/"
	ONLY_NUMBERS               = regexp.MustCompile(`([0-9]+)`)

	AVG_RATING_FLOAT_ZERO_VALUE   = "\"avgRating\":0.0,"
	FIXED_AVG_RATING_STRING_VALUE = "\"avgRating\":\"0.0\","
)

Functions

func GetBookDetailsWs

func GetBookDetailsWs(ctx context.Context, ID string) (dtos.BookBreadcrumb, error)

func SetLogger

func SetLogger(newLogger *zap.Logger)

Types

This section is empty.

Jump to

Keyboard shortcuts

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