Documentation
¶
Index ¶
- func MapDrivingLicense(drivingLicense sqlc.DrivingLicense) entities.DrivingLicense
- func MapSensorData(src []byte) (*entities.MqttPayload, error)
- func MapSensorStatus(src sqlc.SensorStatus) entities.SensorStatus
- func MapSoilCondition(condition sqlc.TreeSoilCondition) entities.TreeSoilCondition
- func MapVehicleStatus(vehicleStatus sqlc.VehicleStatus) entities.VehicleStatus
- func MapVehicleType(vehicleType sqlc.VehicleType) entities.VehicleType
- func MapWateringPlanStatus(wateringPlanStatus sqlc.WateringPlanStatus) entities.WateringPlanStatus
- func MapWateringStatus(status sqlc.WateringStatus) entities.WateringStatus
- type InternalFlowerbedRepoMapper
- type InternalImageRepoMapper
- type InternalRegionRepoMapper
- type InternalSensorRepoMapper
- type InternalTreeClusterRepoMapper
- type InternalTreeRepoMapper
- type InternalVehicleRepoMapper
- type InternalWateringPlanRepoMapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapDrivingLicense ¶ added in v1.1.0
func MapDrivingLicense(drivingLicense sqlc.DrivingLicense) entities.DrivingLicense
func MapSensorData ¶
func MapSensorData(src []byte) (*entities.MqttPayload, error)
func MapSensorStatus ¶
func MapSensorStatus(src sqlc.SensorStatus) entities.SensorStatus
func MapSoilCondition ¶
func MapSoilCondition(condition sqlc.TreeSoilCondition) entities.TreeSoilCondition
func MapVehicleStatus ¶ added in v1.1.0
func MapVehicleStatus(vehicleStatus sqlc.VehicleStatus) entities.VehicleStatus
func MapVehicleType ¶ added in v1.1.0
func MapVehicleType(vehicleType sqlc.VehicleType) entities.VehicleType
func MapWateringPlanStatus ¶ added in v1.1.0
func MapWateringPlanStatus(wateringPlanStatus sqlc.WateringPlanStatus) entities.WateringPlanStatus
func MapWateringStatus ¶
func MapWateringStatus(status sqlc.WateringStatus) entities.WateringStatus
Types ¶
type InternalFlowerbedRepoMapper ¶
type InternalFlowerbedRepoMapper interface { // goverter:ignore Sensor Images Region FromSql(src *sqlc.Flowerbed) *entities.Flowerbed FromSqlList(src []*sqlc.Flowerbed) []*entities.Flowerbed }
goverter:converter goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:PgTimestampToTime goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:PgTimestampToTimePtr
type InternalImageRepoMapper ¶
type InternalImageRepoMapper interface { // goverter:map Url URL FromSql(src *sqlc.Image) *entities.Image FromSqlList(src []*sqlc.Image) []*entities.Image }
goverter:converter goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:PgTimestampToTime goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:PgTimestampToTimePtr
type InternalRegionRepoMapper ¶
type InternalRegionRepoMapper interface { FromSql(src *sqlc.Region) *entities.Region FromSqlList(src []*sqlc.Region) []*entities.Region }
goverter:converter goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:PgTimestampToTime
type InternalSensorRepoMapper ¶
type InternalSensorRepoMapper interface { // goverter:ignore Data FromSql(src *sqlc.Sensor) *entities.Sensor FromSqlList(src []*sqlc.Sensor) []*entities.Sensor // goverter:ignore Data FromSqlSensorData(src *sqlc.SensorDatum) *entities.SensorData FromDomainSensorData(src *entities.MqttPayload) *mqtt.MqttPayload }
goverter:converter goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:PgTimestampToTime goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:PgTimestampToTimePtr goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:TimeToTime goverter:extend MapSensorStatus
type InternalTreeClusterRepoMapper ¶
type InternalTreeClusterRepoMapper interface { FromSql(*sqlc.TreeCluster) *entities.TreeCluster FromSqlList([]*sqlc.TreeCluster) []*entities.TreeCluster }
goverter:converter goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:PgTimestampToTime goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:PgTimestampToTimePtr goverter:extend MapWateringStatus MapSoilCondition goverter:ignoreMissing
type InternalTreeRepoMapper ¶
type InternalTreeRepoMapper interface { // goverter:ignore Sensor Images TreeCluster // goverter:map TreeNumber Number FromSql(*sqlc.Tree) *entities.Tree FromSqlList([]*sqlc.Tree) []*entities.Tree }
goverter:converter goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:PgTimestampToTime goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:PgTimestampToTimePtr goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:StringPtrToString goverter:extend MapWateringStatus MapSoilCondition
type InternalVehicleRepoMapper ¶
type InternalVehicleRepoMapper interface { FromSql(src *sqlc.Vehicle) *entities.Vehicle FromSqlList(src []*sqlc.Vehicle) []*entities.Vehicle }
goverter:converter goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:PgTimestampToTime goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:PgTimestampToTimePtr goverter:extend MapDrivingLicense MapVehicleStatus MapVehicleType
type InternalWateringPlanRepoMapper ¶ added in v1.1.0
type InternalWateringPlanRepoMapper interface { // goverter:ignore Users Treecluster Transporter Trailer FromSql(src *sqlc.WateringPlan) *entities.WateringPlan FromSqlList(src []*sqlc.WateringPlan) []*entities.WateringPlan }
goverter:converter goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:PgTimestampToTime goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:PgTimestampToTimePtr goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:PgDateToTime goverter:extend MapWateringPlanStatus