Documentation ¶
Index ¶
- type PokemonsRepository
- func (r *PokemonsRepository) Create(e *presenter.Pokemon) error
- func (r *PokemonsRepository) Delete(ctx context.Context, pokeID presenter.DeletePokemon) (*mongo.DeleteResult, error)
- func (r *PokemonsRepository) FindAll(ctx context.Context, pokemons []*presenter.Pokemon) ([]*presenter.Pokemon, error)
- func (r *PokemonsRepository) FindOne(ctx context.Context, pokeID string, pokemon *presenter.Pokemon) error
- func (r *PokemonsRepository) Update(ctx context.Context, pokeID string, updateData *presenter.UpdatePokemon) (*mongo.UpdateResult, error)
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) Delete ¶
func (r *PokemonsRepository) Delete(ctx context.Context, pokeID presenter.DeletePokemon) (*mongo.DeleteResult, error)
func (*PokemonsRepository) Update ¶
func (r *PokemonsRepository) Update(ctx context.Context, pokeID string, updateData *presenter.UpdatePokemon) (*mongo.UpdateResult, error)
Click to show internal directories.
Click to hide internal directories.