github.com/topi314/pogo-icons@v0.0.0-20250403082451-64aa0bf0322a/internal/pokeapi/client.go (about) 1 package pokeapi 2 3 import ( 4 "context" 5 "errors" 6 "net/http" 7 ) 8 9 var ErrNotFound = errors.New("not found") 10 11 type Client interface { 12 GetPokemon(ctx context.Context) ([]PokemonForm, error) 13 GetPokemonForm(ctx context.Context, name string) (PokemonForm, error) 14 GetSprite(ctx context.Context, url string) (*http.Response, error) 15 }