Documentation ¶
Index ¶
- type AreaEvent
- type AreaEventStorage
- type AreaFarm
- type AreaInstalled
- type AreaLocation
- type AreaNote
- type AreaPhoto
- type AreaRead
- type AreaReadStorage
- type AreaReservoir
- type AreaSize
- type AreaStatus
- type AreaType
- type Container
- type CropRead
- type FarmEvent
- type FarmEventStorage
- type FarmRead
- type FarmReadStorage
- type InitialArea
- type Inventory
- type MaterialEvent
- type MaterialEventStorage
- type MaterialQuantity
- type MaterialRead
- type MaterialReadStorage
- type MaterialType
- type MovedArea
- type PricePerUnit
- type ReservoirEvent
- type ReservoirEventStorage
- type ReservoirFarm
- type ReservoirNote
- type ReservoirRead
- type ReservoirReadStorage
- type WaterSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AreaEventStorage ¶
func CreateAreaEventStorage ¶
func CreateAreaEventStorage() *AreaEventStorage
type AreaInstalled ¶
type AreaLocation ¶
type AreaLocation domain.AreaLocation
type AreaRead ¶
type AreaRead struct { UID uuid.UUID `json:"uid"` Name string `json:"name"` Size AreaSize `json:"size"` Location AreaLocation `json:"location"` Type string `json:"type"` Photo AreaPhoto `json:"photo"` CreatedDate time.Time `json:"created_date"` Notes []AreaNote `json:"notes"` Farm AreaFarm `json:"farm"` Reservoir AreaReservoir `json:"reservoir"` }
type AreaReadStorage ¶
func CreateAreaReadStorage ¶
func CreateAreaReadStorage() *AreaReadStorage
type AreaReservoir ¶
type AreaStatus ¶
type CropRead ¶
type CropRead struct { UID uuid.UUID `json:"uid"` BatchID string `json:"batch_id"` Status string `json:"status"` Type string `json:"type"` Container Container `json:"container"` Inventory Inventory `json:"inventory"` AreaStatus AreaStatus `json:"area_status"` FarmUID uuid.UUID `json:"farm_id"` // Fields to track crop's movement InitialArea InitialArea `json:"initial_area"` MovedArea []MovedArea `json:"moved_area"` }
type FarmEventStorage ¶
func CreateFarmEventStorage ¶
func CreateFarmEventStorage() *FarmEventStorage
type FarmRead ¶
type FarmRead struct { UID uuid.UUID `json:"uid"` Name string `json:"name"` Latitude string `json:"latitude"` Longitude string `json:"longitude"` Type string `json:"type"` Country string `json:"country"` City string `json:"city"` IsActive bool `json:"is_active"` CreatedDate time.Time `json:"created_date"` }
type FarmReadStorage ¶
func CreateFarmReadStorage ¶
func CreateFarmReadStorage() *FarmReadStorage
type InitialArea ¶
type InitialArea struct { AreaUID uuid.UUID `json:"area_id"` Name string `json:"name"` InitialQuantity int `json:"initial_quantity"` CurrentQuantity int `json:"current_quantity"` LastWatered *time.Time `json:"last_watered"` LastFertilized *time.Time `json:"last_fertilized"` LastPruned *time.Time `json:"last_pruned"` LastPesticided *time.Time `json:"last_pesticided"` CreatedDate time.Time `json:"created_date"` LastUpdated time.Time `json:"last_updated"` }
type MaterialEvent ¶
type MaterialEventStorage ¶
type MaterialEventStorage struct { Lock *deadlock.RWMutex MaterialEvents []MaterialEvent }
func CreateMaterialEventStorage ¶
func CreateMaterialEventStorage() *MaterialEventStorage
type MaterialQuantity ¶
type MaterialQuantity domain.MaterialQuantity
type MaterialRead ¶
type MaterialRead struct { UID uuid.UUID `json:"uid"` Name string `json:"name"` PricePerUnit PricePerUnit `json:"price_per_unit"` Type MaterialType `json:"type"` Quantity MaterialQuantity `json:"quantity"` ExpirationDate *time.Time `json:"expiration_date"` Notes *string `json:"notes"` IsExpense *bool `json:"is_expense"` ProducedBy *string `json:"produced_by"` CreatedDate time.Time `json:"created_date"` }
type MaterialReadStorage ¶
type MaterialReadStorage struct { Lock *deadlock.RWMutex MaterialReadMap map[uuid.UUID]MaterialRead }
func CreateMaterialReadStorage ¶
func CreateMaterialReadStorage() *MaterialReadStorage
type MaterialType ¶
type MaterialType domain.MaterialType
type MovedArea ¶
type MovedArea struct { AreaUID uuid.UUID `json:"area_id"` Name string `json:"name"` InitialQuantity int `json:"initial_quantity"` CurrentQuantity int `json:"current_quantity"` LastWatered *time.Time `json:"last_watered"` LastFertilized *time.Time `json:"last_fertilized"` LastPruned *time.Time `json:"last_pruned"` LastPesticided *time.Time `json:"last_pesticided"` CreatedDate time.Time `json:"created_date"` LastUpdated time.Time `json:"last_updated"` }
type PricePerUnit ¶
type PricePerUnit domain.PricePerUnit
type ReservoirEvent ¶
type ReservoirEventStorage ¶
type ReservoirEventStorage struct { Lock *deadlock.RWMutex ReservoirEvents []ReservoirEvent }
func CreateReservoirEventStorage ¶
func CreateReservoirEventStorage() *ReservoirEventStorage
type ReservoirFarm ¶
type ReservoirNote ¶
type ReservoirNote domain.ReservoirNote
type ReservoirRead ¶
type ReservoirRead struct { UID uuid.UUID `json:"uid"` Name string `json:"name"` WaterSource WaterSource `json:"water_source"` Farm ReservoirFarm `json:"farm"` Notes []ReservoirNote `json:"notes"` CreatedDate time.Time `json:"created_date"` InstalledToArea []AreaInstalled `json:"installed_to_area"` }
type ReservoirReadStorage ¶
type ReservoirReadStorage struct { Lock *deadlock.RWMutex ReservoirReadMap map[uuid.UUID]ReservoirRead }
func CreateReservoirReadStorage ¶
func CreateReservoirReadStorage() *ReservoirReadStorage
type WaterSource ¶
Click to show internal directories.
Click to hide internal directories.