Documentation
¶
Index ¶
- type VehicleRepository
- func (r *VehicleRepository) Archive(ctx context.Context, id int32) error
- func (r *VehicleRepository) Create(ctx context.Context, ...) (*entities.Vehicle, error)
- func (r *VehicleRepository) Delete(ctx context.Context, id int32) error
- func (r *VehicleRepository) GetAll(ctx context.Context, query entities.Query) ([]*entities.Vehicle, int64, error)
- func (r *VehicleRepository) GetAllArchived(ctx context.Context) ([]*entities.Vehicle, error)
- func (r *VehicleRepository) GetAllByType(ctx context.Context, provider string, vehicleType entities.VehicleType) ([]*entities.Vehicle, int64, error)
- func (r *VehicleRepository) GetAllByTypeWithArchived(ctx context.Context, provider string, vehicleType entities.VehicleType) ([]*entities.Vehicle, int64, error)
- func (r *VehicleRepository) GetAllWithArchived(ctx context.Context, provider string) ([]*entities.Vehicle, int64, error)
- func (r *VehicleRepository) GetAllWithWateringPlanCount(ctx context.Context) ([]*entities.VehicleEvaluation, error)
- func (r *VehicleRepository) GetByID(ctx context.Context, id int32) (*entities.Vehicle, error)
- func (r *VehicleRepository) GetByPlate(ctx context.Context, plate string) (*entities.Vehicle, error)
- func (r *VehicleRepository) Update(ctx context.Context, id int32, ...) error
- type VehicleRepositoryMappers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VehicleRepository ¶
type VehicleRepository struct { VehicleRepositoryMappers // contains filtered or unexported fields }
func NewVehicleRepository ¶
func NewVehicleRepository(s *store.Store, mappers VehicleRepositoryMappers) *VehicleRepository
func (*VehicleRepository) Archive ¶ added in v1.2.0
func (r *VehicleRepository) Archive(ctx context.Context, id int32) error
func (*VehicleRepository) Delete ¶
func (r *VehicleRepository) Delete(ctx context.Context, id int32) error
func (*VehicleRepository) GetAllArchived ¶ added in v1.2.0
func (*VehicleRepository) GetAllByType ¶ added in v1.1.0
func (r *VehicleRepository) GetAllByType(ctx context.Context, provider string, vehicleType entities.VehicleType) ([]*entities.Vehicle, int64, error)
func (*VehicleRepository) GetAllByTypeWithArchived ¶ added in v1.2.0
func (r *VehicleRepository) GetAllByTypeWithArchived(ctx context.Context, provider string, vehicleType entities.VehicleType) ([]*entities.Vehicle, int64, error)
func (*VehicleRepository) GetAllWithArchived ¶ added in v1.2.0
func (*VehicleRepository) GetAllWithWateringPlanCount ¶ added in v1.2.0
func (r *VehicleRepository) GetAllWithWateringPlanCount(ctx context.Context) ([]*entities.VehicleEvaluation, error)
func (*VehicleRepository) GetByPlate ¶
type VehicleRepositoryMappers ¶
type VehicleRepositoryMappers struct {
// contains filtered or unexported fields
}
func NewVehicleRepositoryMappers ¶
func NewVehicleRepositoryMappers(vMapper mapper.InternalVehicleRepoMapper) VehicleRepositoryMappers
Click to show internal directories.
Click to hide internal directories.