rest

package
v0.0.0-...-faa9808 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPokeapiRESTRepository

func NewPokeapiRESTRepository() domain.IPokeapiRESTRepository

NewPokeapiRESTRepository use in main app

func ProceedData

func ProceedData(
	client *httpclient.HTTPClient,
	transformData func(*httpclient.HTTPClient, *domain.Pokemon) *domain.Monster,
) ([]*domain.Monster, error)

ProceedData - helper function to proceed data

func RandomSubset

func RandomSubset(slice []domain.Moves, size int) []string

RandomSubset helper function to get random skills/moves

func TransformData

func TransformData(
	client *httpclient.HTTPClient,
	pokemon *domain.Pokemon,
) *domain.Monster

TransformData function to transform origin data

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL