Documentation
¶
Index ¶
- type WateringPlanMappers
- type WateringPlanRepository
- func (w *WateringPlanRepository) Create(ctx context.Context, ...) (*entities.WateringPlan, error)
- func (w *WateringPlanRepository) Delete(ctx context.Context, id int32) error
- func (w *WateringPlanRepository) GetAll(ctx context.Context, query entities.Query) ([]*entities.WateringPlan, int64, error)
- func (w *WateringPlanRepository) GetAllUserCount(ctx context.Context) (int64, error)
- func (w *WateringPlanRepository) GetByID(ctx context.Context, id int32) (*entities.WateringPlan, error)
- func (w *WateringPlanRepository) GetCount(ctx context.Context, query entities.Query) (int64, 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) GetTotalConsumedWater(ctx context.Context) (int64, error)
- func (w *WateringPlanRepository) Update(ctx context.Context, id int32, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 NewWateringPlanRepository ¶
func NewWateringPlanRepository(s *store.Store, mappers WateringPlanMappers) *WateringPlanRepository
func (*WateringPlanRepository) Create ¶
func (w *WateringPlanRepository) Create(ctx context.Context, createFn func(*entities.WateringPlan, storage.WateringPlanRepository) (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, query entities.Query) ([]*entities.WateringPlan, int64, error)
func (*WateringPlanRepository) GetAllUserCount ¶ added in v1.2.0
func (w *WateringPlanRepository) GetAllUserCount(ctx context.Context) (int64, 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)
func (*WateringPlanRepository) GetTotalConsumedWater ¶ added in v1.2.0
func (w *WateringPlanRepository) GetTotalConsumedWater(ctx context.Context) (int64, error)
func (*WateringPlanRepository) Update ¶
func (w *WateringPlanRepository) Update(ctx context.Context, id int32, updateFn func(*entities.WateringPlan, storage.WateringPlanRepository) (bool, error)) error
Click to show internal directories.
Click to hide internal directories.