vehicle

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithDescription

func WithDescription(description string) entities.EntityFunc[entities.Vehicle]

func WithNumberPlate

func WithNumberPlate(numberPlate string) entities.EntityFunc[entities.Vehicle]

func WithWaterCapacity

func WithWaterCapacity(waterCapacity float64) entities.EntityFunc[entities.Vehicle]

Types

type VehicleRepository

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

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) ([]*entities.Vehicle, 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