services

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryPetsService

type InMemoryPetsService struct {
	Pets []models.Pets
	Incr *int
}

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.

Jump to

Keyboard shortcuts

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