vehicle

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2025 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

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) Create

func (*VehicleRepository) Delete

func (r *VehicleRepository) Delete(ctx context.Context, id int32) error

func (*VehicleRepository) GetAll

func (r *VehicleRepository) GetAll(ctx context.Context, query entities.Query) ([]*entities.Vehicle, int64, error)

func (*VehicleRepository) GetAllArchived added in v1.2.0

func (r *VehicleRepository) GetAllArchived(ctx context.Context) ([]*entities.Vehicle, error)

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 (r *VehicleRepository) GetAllWithArchived(ctx context.Context, provider string) ([]*entities.Vehicle, int64, error)

func (*VehicleRepository) GetAllWithWateringPlanCount added in v1.2.0

func (r *VehicleRepository) GetAllWithWateringPlanCount(ctx context.Context) ([]*entities.VehicleEvaluation, error)

func (*VehicleRepository) GetByID

func (r *VehicleRepository) GetByID(ctx context.Context, id int32) (*entities.Vehicle, error)

func (*VehicleRepository) GetByPlate

func (r *VehicleRepository) GetByPlate(ctx context.Context, plate string) (*entities.Vehicle, error)

func (*VehicleRepository) Update

type VehicleRepositoryMappers

type VehicleRepositoryMappers struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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