Documentation ¶
Index ¶
- type InMemoryPetsService
- func (petService *InMemoryPetsService) CreatePets(c models.PetsCreate) (models.Pets, error)
- func (petService *InMemoryPetsService) DeletePets(id string) (any, error)
- func (petService *InMemoryPetsService) FilterPets(filter controller.PetsFilter) ([]models.Pets, error)
- func (petService *InMemoryPetsService) GetAllPets() ([]models.Pets, error)
- func (petService *InMemoryPetsService) GetAllPetsByAge() ([][]models.Pets, error)
- func (petService *InMemoryPetsService) GetPetByName(name string) (models.Pets, error)
- func (petService *InMemoryPetsService) GetPets(id string) (models.Pets, error)
- func (petService *InMemoryPetsService) UpdatePets(id string, input models.PetsUpdate) (models.Pets, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryPetsService ¶
func NewInMemoryPetsService ¶
func NewInMemoryPetsService() *InMemoryPetsService
func (*InMemoryPetsService) CreatePets ¶
func (petService *InMemoryPetsService) CreatePets(c models.PetsCreate) (models.Pets, error)
CreatePets implements controller.PetsService.
func (*InMemoryPetsService) DeletePets ¶
func (petService *InMemoryPetsService) DeletePets(id string) (any, error)
DeletePets implements controller.PetsService.
func (*InMemoryPetsService) FilterPets ¶ added in v0.15.0
func (petService *InMemoryPetsService) FilterPets(filter controller.PetsFilter) ([]models.Pets, error)
FilterPets implements controller.PetsService.
func (*InMemoryPetsService) GetAllPets ¶
func (petService *InMemoryPetsService) GetAllPets() ([]models.Pets, error)
GetAllPets implements controller.PetsService.
func (*InMemoryPetsService) GetAllPetsByAge ¶ added in v0.15.0
func (petService *InMemoryPetsService) GetAllPetsByAge() ([][]models.Pets, error)
GetAllPetsByAge implements controller.PetsService.
func (*InMemoryPetsService) GetPetByName ¶
func (petService *InMemoryPetsService) GetPetByName(name string) (models.Pets, error)
GetPetByName implements controller.PetsService.
func (*InMemoryPetsService) GetPets ¶
func (petService *InMemoryPetsService) GetPets(id string) (models.Pets, error)
GetPets implements controller.PetsService.
func (*InMemoryPetsService) UpdatePets ¶
func (petService *InMemoryPetsService) UpdatePets(id string, input models.PetsUpdate) (models.Pets, error)
UpdatePets implements controller.PetsService.
Click to show internal directories.
Click to hide internal directories.