Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoEpisodes = errors.New("jerkcity: the api returned no episodes")
ErrNoEpisodes is returned when the Jerkcity API does not return a comic.
Functions ¶
This section is empty.
Types ¶
type APIEpisode ¶
type APIEpisode struct {
Episodes []*Episode `json:"episodes"`
}
APIEpisode is a partial, common response from the Jerkcity API.
type APIQuotedEpisode ¶
type APIQuotedEpisode struct {
Episodes []*QuotedEpisode `json:"episodes"`
}
APIQuotedEpisode is a partial response from the quote/random endpoint.
type Episode ¶
type Episode struct { Episode int `json:"episode"` Thumb string `json:"thumb"` Image string `json:"image"` Title string `json:"title"` Height int `json:"height"` Width int `json:"width"` Day int `json:"day"` Month int `json:"month"` Year int `json:"year"` Dialog [][]string `json:"dialog"` Tags []string Players []string }
Episode is a Jerkcity comic as defined by the API.
func GetEpisode ¶
GetEpisode returns an Episode by its number.
type QuotedEpisode ¶
QuotedEpisode is a Jerkcity comic including a quote from the aforementioned.
Click to show internal directories.
Click to hide internal directories.