Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownError = errors.New("Something is wrong") ErrAbilityNotFound = errors.New("Pokedex ability cannot be found") )
Functions ¶
func WithClientTimeout ¶
Types ¶
type Client ¶
type Service ¶
type Service interface { GetAbilityByID(id int) (godex.Ability, error) GetAbilitiesByIDs(ids []int) godex.Abilities }
func NewService ¶
func NewService(config ServiceConfig) Service
type ServiceConfig ¶
type ServiceConfig struct {
APIBaseURL string
}
Click to show internal directories.
Click to hide internal directories.