Documentation
¶
Index ¶
- func NewWateringPlanRepository(s *store.Store, mappers WateringPlanMappers) storage.WateringPlanRepository
- type WateringPlanMappers
- type WateringPlanRepository
- func (w *WateringPlanRepository) Create(ctx context.Context, createFn func(*entities.WateringPlan) (bool, error)) (*entities.WateringPlan, error)
- func (w *WateringPlanRepository) Delete(ctx context.Context, id int32) error
- func (w *WateringPlanRepository) GetAll(ctx context.Context) ([]*entities.WateringPlan, error)
- func (w *WateringPlanRepository) GetByID(ctx context.Context, id int32) (*entities.WateringPlan, error)
- func (w *WateringPlanRepository) GetEvaluationValues(ctx context.Context, id int32) ([]*entities.EvaluationValue, error)
- func (w *WateringPlanRepository) GetLinkedTreeClustersByID(ctx context.Context, id int32) ([]*entities.TreeCluster, error)
- func (w *WateringPlanRepository) GetLinkedUsersByID(ctx context.Context, id int32) ([]*uuid.UUID, error)
- func (w *WateringPlanRepository) GetLinkedVehicleByIDAndType(ctx context.Context, id int32, vehicleType entities.VehicleType) (*entities.Vehicle, error)
- func (w *WateringPlanRepository) Update(ctx context.Context, id int32, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWateringPlanRepository ¶
func NewWateringPlanRepository(s *store.Store, mappers WateringPlanMappers) storage.WateringPlanRepository
Types ¶
type WateringPlanMappers ¶
type WateringPlanMappers struct {
// contains filtered or unexported fields
}
func NewWateringPlanRepositoryMappers ¶
func NewWateringPlanRepositoryMappers( wMapper mapper.InternalWateringPlanRepoMapper, vMapper mapper.InternalVehicleRepoMapper, tcMapper mapper.InternalTreeClusterRepoMapper, ) WateringPlanMappers
type WateringPlanRepository ¶
type WateringPlanRepository struct { WateringPlanMappers // contains filtered or unexported fields }
func (*WateringPlanRepository) Create ¶
func (w *WateringPlanRepository) Create(ctx context.Context, createFn func(*entities.WateringPlan) (bool, error)) (*entities.WateringPlan, error)
func (*WateringPlanRepository) Delete ¶
func (w *WateringPlanRepository) Delete(ctx context.Context, id int32) error
func (*WateringPlanRepository) GetAll ¶
func (w *WateringPlanRepository) GetAll(ctx context.Context) ([]*entities.WateringPlan, error)
func (*WateringPlanRepository) GetByID ¶
func (w *WateringPlanRepository) GetByID(ctx context.Context, id int32) (*entities.WateringPlan, error)
func (*WateringPlanRepository) GetEvaluationValues ¶
func (w *WateringPlanRepository) GetEvaluationValues(ctx context.Context, id int32) ([]*entities.EvaluationValue, error)
func (*WateringPlanRepository) GetLinkedTreeClustersByID ¶
func (w *WateringPlanRepository) GetLinkedTreeClustersByID(ctx context.Context, id int32) ([]*entities.TreeCluster, error)
func (*WateringPlanRepository) GetLinkedUsersByID ¶
func (*WateringPlanRepository) GetLinkedVehicleByIDAndType ¶
func (w *WateringPlanRepository) GetLinkedVehicleByIDAndType(ctx context.Context, id int32, vehicleType entities.VehicleType) (*entities.Vehicle, error)
Click to show internal directories.
Click to hide internal directories.