Documentation ¶
Index ¶
- type AddNewCarInput
- type Service
- func (s *Service) AddNewCar(ctx context.Context, car AddNewCarInput) error
- func (s *Service) AddNewCars(ctx context.Context, cars []AddNewCarInput, errs chan error) *sync.Map
- func (s *Service) DeleteCar(ctx context.Context, regNumber string) error
- func (s *Service) GetCars(ctx context.Context, limit, offset int, filterOptions filter.Options) ([]model.Car, error)
- func (s *Service) UpdateCar(ctx context.Context, car UpdateCarInput) error
- type UpdateCarInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddNewCarInput ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewCarService ¶
func NewCarService(carRepository carRepository) *Service
func (*Service) AddNewCar ¶
func (s *Service) AddNewCar(ctx context.Context, car AddNewCarInput) error
func (*Service) AddNewCars ¶
Click to show internal directories.
Click to hide internal directories.