Documentation ¶
Index ¶
- type Pokemon
- func (p Pokemon) Create(ctx context.Context, req *pb.CreatePokemonRequest) (*pb.CreatePokemonResponse, error)
- func (p Pokemon) GetAllFromOneTrainer(ctx context.Context, req *pb.GetAllFromOneTrainerRequest) (*pb.GetAllFromOneTrainerResponse, error)
- func (p Pokemon) Update(ctx context.Context, req *pb.UpdatePokemonRequest) (*pb.UpdatePokemonResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pokemon ¶
type Pokemon struct { pb.UnimplementedPokeServiceServer // contains filtered or unexported fields }
func NewPokemon ¶
func NewPokemon(repo repository.Repository) *Pokemon
func (Pokemon) Create ¶
func (p Pokemon) Create(ctx context.Context, req *pb.CreatePokemonRequest) (*pb.CreatePokemonResponse, error)
func (Pokemon) GetAllFromOneTrainer ¶
func (p Pokemon) GetAllFromOneTrainer(ctx context.Context, req *pb.GetAllFromOneTrainerRequest) (*pb.GetAllFromOneTrainerResponse, error)
func (Pokemon) Update ¶
func (p Pokemon) Update(ctx context.Context, req *pb.UpdatePokemonRequest) (*pb.UpdatePokemonResponse, error)
Click to show internal directories.
Click to hide internal directories.