repository

package
v0.0.0-...-f957326 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PokemonsRepository

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

func NewPokemonsRepository

func NewPokemonsRepository() *PokemonsRepository

func (*PokemonsRepository) Create

func (r *PokemonsRepository) Create(e *presenter.Pokemon) error

func (*PokemonsRepository) Delete

func (*PokemonsRepository) FindAll

func (r *PokemonsRepository) FindAll(ctx context.Context, pokemons []*presenter.Pokemon) ([]*presenter.Pokemon, error)

func (*PokemonsRepository) FindOne

func (r *PokemonsRepository) FindOne(ctx context.Context, pokeID string, pokemon *presenter.Pokemon) error

func (*PokemonsRepository) Update

func (r *PokemonsRepository) Update(ctx context.Context, pokeID string, updateData *presenter.UpdatePokemon) (*mongo.UpdateResult, error)

Jump to

Keyboard shortcuts

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