Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
Category struct represents an Iplayer programme category. It has the name of the category, like "films" or "comedy" and a list of the tv programmes of said category.
func LoadAllCategories ¶
func NewCategory ¶
NewCategory returns a new Category struct for a given category name and list of programmes.
type IplayerDocument ¶
type IplayerDocument struct {
// contains filtered or unexported fields
}
func NewIplayerDocument ¶
func NewIplayerDocument(doc *goquery.Document) *IplayerDocument
type IplayerDocumentResult ¶
type IplayerDocumentResult struct {
Error error
// contains filtered or unexported fields
}
type MainCategoryDocument ¶
type MainCategoryDocument struct {
NextPages []string
// contains filtered or unexported fields
}
type Programme ¶
type Programme struct {
Title string `json:"title"`
Subtitle string `json:"subtitle"`
Synopsis string `json:"synopsis"`
Pid string `json:"pid"`
Thumbnail string `json:"thumbnail"`
URL string `json:"url"`
Index int `json:"index"`
}
Programme represents an Iplayer TV programme. It consists of the programme's title, subtitle, a short programme description, The Iplayer Programme ID, the url to its thumbnail, and the url to the programme's website.
type TestHtmlURL ¶
type TestHtmlURL struct {
// contains filtered or unexported fields
}
type TestMainCategoryDocument ¶
type TestMainCategoryDocument struct {
NextPages []string
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.