Documentation
¶
Index ¶
- func Fetch[C any](ctx context.Context, u string, params map[string]string) (consumer C, err error)
- type Book
- type Character
- type HPapi
- func (hp *HPapi) FetchBook(ctx context.Context) (book Book, err error)
- func (hp *HPapi) FetchBooks(ctx context.Context) (books []Book, err error)
- func (hp *HPapi) FetchCharacter(ctx context.Context) (character Character, err error)
- func (hp *HPapi) FetchCharacters(ctx context.Context) (characters []Character, err error)
- func (hp *HPapi) FetchHouse(ctx context.Context) (house House, err error)
- func (hp *HPapi) FetchHouses(ctx context.Context) (houses []House, err error)
- func (hp *HPapi) FetchMovie(ctx context.Context) (movie Movie, err error)
- func (hp *HPapi) FetchMovies(ctx context.Context) (movies []Movie, err error)
- func (hp *HPapi) FetchQuote(ctx context.Context) (quote Quote, err error)
- func (hp *HPapi) FetchSpell(ctx context.Context) (spell Spell, err error)
- func (hp *HPapi) FetchSpells(ctx context.Context) (spells []Spell, err error)
- func (hp *HPapi) Reset()
- func (hp *HPapi) SetID(id string)
- func (hp *HPapi) SetLang(lang string)
- func (hp *HPapi) SetMax(max int)
- func (hp *HPapi) SetSearch(search string)
- type House
- type Movie
- type Params
- type Quote
- type Spell
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HPapi ¶
type HPapi struct {
ExportedParams Params
}
func (*HPapi) FetchBooks ¶
func (*HPapi) FetchCharacter ¶
func (*HPapi) FetchCharacters ¶
func (*HPapi) FetchHouse ¶
func (*HPapi) FetchHouses ¶
func (*HPapi) FetchMovie ¶ added in v0.2.1
func (*HPapi) FetchMovies ¶ added in v0.2.1
func (*HPapi) FetchQuote ¶
func (*HPapi) FetchSpell ¶
func (*HPapi) FetchSpells ¶
type Movie ¶ added in v0.2.1
type Movie struct { Number int Title string Summary string Directors []string ScreenWriters []string Producers []string Cinematographers []string Editors []string Distributors []string MusicComposers []string ReleaseDate string RunningTime string Budget string BoxOffice string Rating string Trailer string Poster string Wiki string }
Click to show internal directories.
Click to hide internal directories.