Documentation ¶
Index ¶
- func NewAreaReadQueryInMemory(s *storage.AreaReadStorage) query.AreaReadQuery
- func NewCropActivityQueryInMemory(s *storage.CropActivityStorage) query.CropActivityQuery
- func NewCropEventQueryInMemory(s *storage.CropEventStorage) query.CropEventQuery
- func NewCropReadQueryInMemory(s *storage.CropReadStorage) query.CropReadQuery
- func NewFarmReadQueryInMemory(s *storage.FarmReadStorage) query.FarmReadQuery
- func NewMaterialReadQueryInMemory(s *storage.MaterialReadStorage) query.MaterialReadQuery
- func NewTaskReadQueryInMemory(s *storage.TaskReadStorage) query.TaskReadQuery
- type AreaReadQueryInMemory
- type CropActivityQueryInMemory
- type CropEventQueryInMemory
- type CropReadQueryInMemory
- func (s CropReadQueryInMemory) CountAllArchivedCropsByFarm(farmUID uuid.UUID) <-chan query.QueryResult
- func (s CropReadQueryInMemory) CountAllCropsByFarm(farmUID uuid.UUID, status string) <-chan query.QueryResult
- func (s CropReadQueryInMemory) CountTotalBatch(farmUID uuid.UUID) <-chan query.QueryResult
- func (s CropReadQueryInMemory) FindAllCropsArchives(farmUID uuid.UUID, page, limit int) <-chan query.QueryResult
- func (s CropReadQueryInMemory) FindAllCropsByArea(areaUID uuid.UUID) <-chan query.QueryResult
- func (s CropReadQueryInMemory) FindAllCropsByFarm(farmUID uuid.UUID, status string, page, limit int) <-chan query.QueryResult
- func (s CropReadQueryInMemory) FindByBatchID(batchID string) <-chan query.QueryResult
- func (s CropReadQueryInMemory) FindByID(uid uuid.UUID) <-chan query.QueryResult
- func (s CropReadQueryInMemory) FindCropsInformation(farmUID uuid.UUID) <-chan query.QueryResult
- type FarmReadQueryInMemory
- type MaterialReadQueryInMemory
- type TaskReadQueryInMemory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAreaReadQueryInMemory ¶
func NewAreaReadQueryInMemory(s *storage.AreaReadStorage) query.AreaReadQuery
func NewCropActivityQueryInMemory ¶
func NewCropActivityQueryInMemory(s *storage.CropActivityStorage) query.CropActivityQuery
func NewCropEventQueryInMemory ¶
func NewCropEventQueryInMemory(s *storage.CropEventStorage) query.CropEventQuery
func NewCropReadQueryInMemory ¶
func NewCropReadQueryInMemory(s *storage.CropReadStorage) query.CropReadQuery
func NewFarmReadQueryInMemory ¶
func NewFarmReadQueryInMemory(s *storage.FarmReadStorage) query.FarmReadQuery
func NewMaterialReadQueryInMemory ¶
func NewMaterialReadQueryInMemory(s *storage.MaterialReadStorage) query.MaterialReadQuery
func NewTaskReadQueryInMemory ¶
func NewTaskReadQueryInMemory(s *storage.TaskReadStorage) query.TaskReadQuery
Types ¶
type AreaReadQueryInMemory ¶
type AreaReadQueryInMemory struct {
Storage *storage.AreaReadStorage
}
func (AreaReadQueryInMemory) FindByID ¶
func (s AreaReadQueryInMemory) FindByID(uid uuid.UUID) <-chan query.QueryResult
type CropActivityQueryInMemory ¶
type CropActivityQueryInMemory struct {
Storage *storage.CropActivityStorage
}
func (CropActivityQueryInMemory) FindAllByCropID ¶
func (s CropActivityQueryInMemory) FindAllByCropID(uid uuid.UUID) <-chan query.QueryResult
func (CropActivityQueryInMemory) FindByCropIDAndActivityType ¶
func (s CropActivityQueryInMemory) FindByCropIDAndActivityType(uid uuid.UUID, activityType interface{}) <-chan query.QueryResult
type CropEventQueryInMemory ¶
type CropEventQueryInMemory struct {
Storage *storage.CropEventStorage
}
func (*CropEventQueryInMemory) FindAllByCropID ¶
func (f *CropEventQueryInMemory) FindAllByCropID(uid uuid.UUID) <-chan query.QueryResult
type CropReadQueryInMemory ¶
type CropReadQueryInMemory struct {
Storage *storage.CropReadStorage
}
func (CropReadQueryInMemory) CountAllArchivedCropsByFarm ¶
func (s CropReadQueryInMemory) CountAllArchivedCropsByFarm(farmUID uuid.UUID) <-chan query.QueryResult
func (CropReadQueryInMemory) CountAllCropsByFarm ¶
func (s CropReadQueryInMemory) CountAllCropsByFarm(farmUID uuid.UUID, status string) <-chan query.QueryResult
func (CropReadQueryInMemory) CountTotalBatch ¶
func (s CropReadQueryInMemory) CountTotalBatch(farmUID uuid.UUID) <-chan query.QueryResult
func (CropReadQueryInMemory) FindAllCropsArchives ¶
func (s CropReadQueryInMemory) FindAllCropsArchives(farmUID uuid.UUID, page, limit int) <-chan query.QueryResult
func (CropReadQueryInMemory) FindAllCropsByArea ¶
func (s CropReadQueryInMemory) FindAllCropsByArea(areaUID uuid.UUID) <-chan query.QueryResult
func (CropReadQueryInMemory) FindAllCropsByFarm ¶
func (s CropReadQueryInMemory) FindAllCropsByFarm(farmUID uuid.UUID, status string, page, limit int) <-chan query.QueryResult
func (CropReadQueryInMemory) FindByBatchID ¶
func (s CropReadQueryInMemory) FindByBatchID(batchID string) <-chan query.QueryResult
func (CropReadQueryInMemory) FindByID ¶
func (s CropReadQueryInMemory) FindByID(uid uuid.UUID) <-chan query.QueryResult
func (CropReadQueryInMemory) FindCropsInformation ¶
func (s CropReadQueryInMemory) FindCropsInformation(farmUID uuid.UUID) <-chan query.QueryResult
type FarmReadQueryInMemory ¶
type FarmReadQueryInMemory struct {
Storage *storage.FarmReadStorage
}
func (FarmReadQueryInMemory) FindByID ¶
func (s FarmReadQueryInMemory) FindByID(uid uuid.UUID) <-chan query.QueryResult
type MaterialReadQueryInMemory ¶
type MaterialReadQueryInMemory struct {
Storage *storage.MaterialReadStorage
}
func (MaterialReadQueryInMemory) FindByID ¶
func (s MaterialReadQueryInMemory) FindByID(inventoryUID uuid.UUID) <-chan query.QueryResult
func (MaterialReadQueryInMemory) FindMaterialByPlantTypeCodeAndName ¶
func (q MaterialReadQueryInMemory) FindMaterialByPlantTypeCodeAndName(plantTypeCode string, name string) <-chan query.QueryResult
type TaskReadQueryInMemory ¶
type TaskReadQueryInMemory struct {
Storage *storage.TaskReadStorage
}
func (TaskReadQueryInMemory) FindByID ¶
func (s TaskReadQueryInMemory) FindByID(uid uuid.UUID) <-chan query.QueryResult
Click to show internal directories.
Click to hide internal directories.