pokedex

package
v0.0.0-...-e3bdef5 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct{}

func (*Module) Configure

func (*Module) Configure(injector *dingo.Injector)

func (*Module) Depends

func (*Module) Depends() []dingo.Module

type Pokemon

type Pokemon struct {
	ID      int
	Name    string
	Type    []string
	Catched bool
}

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver definition

func (*Resolver) Inject

func (resolver *Resolver) Inject(cfg *struct {
	BaseURL string `inject:"config:pokedex.baseurl"`
})

func (*Resolver) Pokemon

func (resolver *Resolver) Pokemon(ctx context.Context, ids []int, catched *bool) ([]*Pokemon, error)

func (*Resolver) SetCatched

func (resolver *Resolver) SetCatched(ctx context.Context, id int, catched bool) (int, error)

func (*Resolver) Total

func (resolver *Resolver) Total(ctx context.Context) (int, error)

func (*Resolver) TotalCatched

func (resolver *Resolver) TotalCatched(ctx context.Context) (int, error)

Jump to

Keyboard shortcuts

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