Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAvailability ¶
func GetAvailability(isbn string)
GetAvailability fetches availability of a given book
func GetBookURLByTitle ¶
GetBookURLByTitle searches NLB's catalogue by title and returns the URL of the book ENTRY_NAME=BS is basic search, ENTRY_NAME=TI is title search ENTRY_TYPE=K is keyword, ENTRY_TYPE=E is exact search QRYTEXT specifies category of items
Types ¶
type AvailabilityInfo ¶
AvailabilityInfo models the information about the status of the item at each branch
type Book ¶
type Book struct { Title string CallNumber string Availability []AvailabilityInfo }
Book models the info returned from the NLB API
func GetAvailabilityByTitle ¶
GetAvailabilityByTitle takes a book title and returns the availability info
func GetAvailabilityByURL ¶
GetAvailabilityByURL takes a book URL and returns availability info
Click to show internal directories.
Click to hide internal directories.