Documentation ¶
Index ¶
- type CarRepository
- func (r *CarRepository) DeleteCar(ctx context.Context, regNumber string) error
- func (r *CarRepository) GetCar(ctx context.Context, regNumber string) (model.Car, error)
- func (r *CarRepository) GetCars(ctx context.Context, limit, offset int, filterOptions filter.Options) ([]model.Car, error)
- func (r *CarRepository) InsertCar(ctx context.Context, car model.Car) error
- func (r *CarRepository) UpdateCar(ctx context.Context, car model.Car) error
- type OwnerRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CarRepository ¶
type CarRepository struct {
// contains filtered or unexported fields
}
func NewCarRepository ¶
func NewCarRepository(postgres *postgres.Postgres) *CarRepository
func (*CarRepository) DeleteCar ¶
func (r *CarRepository) DeleteCar(ctx context.Context, regNumber string) error
type OwnerRepository ¶
type OwnerRepository struct {
// contains filtered or unexported fields
}
func NewOwnerRepository ¶
func NewOwnerRepository(postgres *postgres.Postgres) *OwnerRepository
func (*OwnerRepository) InsertOwner ¶
Click to show internal directories.
Click to hide internal directories.