wateringplan

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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
}

type WateringPlanRepository

type WateringPlanRepository struct {
	WateringPlanMappers
	// contains filtered or unexported fields
}

func (*WateringPlanRepository) Create

func (*WateringPlanRepository) Delete

func (w *WateringPlanRepository) Delete(ctx context.Context, id int32) error

func (*WateringPlanRepository) GetAll

func (*WateringPlanRepository) GetByID

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 (w *WateringPlanRepository) GetLinkedUsersByID(ctx context.Context, id int32) ([]*uuid.UUID, error)

func (*WateringPlanRepository) GetLinkedVehicleByIDAndType

func (w *WateringPlanRepository) GetLinkedVehicleByIDAndType(ctx context.Context, id int32, vehicleType entities.VehicleType) (*entities.Vehicle, error)

func (*WateringPlanRepository) Update

func (w *WateringPlanRepository) Update(ctx context.Context, id int32, updateFn func(*entities.WateringPlan) (bool, error)) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL