Documentation ¶
Index ¶
- func NewAreaEventQueryInMemory(s *storage.AreaEventStorage) query.AreaEventQuery
- func NewAreaReadQueryInMemory(s *storage.AreaReadStorage) query.AreaReadQuery
- func NewCropReadQueryInMemory(s *storage.CropReadStorage) query.CropReadQuery
- func NewFarmEventQueryInMemory(s *storage.FarmEventStorage) query.FarmEventQuery
- func NewFarmReadQueryInMemory(s *storage.FarmReadStorage) query.FarmReadQuery
- func NewMaterialEventQueryInMemory(s *storage.MaterialEventStorage) query.MaterialEventQuery
- func NewMaterialReadQueryInMemory(s *storage.MaterialReadStorage) query.MaterialReadQuery
- func NewReservoirEventQueryInMemory(s *storage.ReservoirEventStorage) query.ReservoirEventQuery
- func NewReservoirReadQueryInMemory(s *storage.ReservoirReadStorage) query.ReservoirReadQuery
- type AreaEventQueryInMemory
- type AreaReadQueryInMemory
- func (s AreaReadQueryInMemory) CountAreas(farmUID uuid.UUID) <-chan query.QueryResult
- func (s AreaReadQueryInMemory) FindAllByFarm(farmUID uuid.UUID) <-chan query.QueryResult
- func (s AreaReadQueryInMemory) FindAreasByReservoirID(reservoirUID uuid.UUID) <-chan query.QueryResult
- func (s AreaReadQueryInMemory) FindByID(uid uuid.UUID) <-chan query.QueryResult
- func (s AreaReadQueryInMemory) FindByIDAndFarm(areaUID, farmUID uuid.UUID) <-chan query.QueryResult
- type CropReadQueryInMemory
- type FarmEventQueryInMemory
- type FarmReadQueryInMemory
- type MaterialEventQueryInMemory
- type MaterialReadQueryInMemory
- func (q MaterialReadQueryInMemory) CountAll(materialType, materialTypeDetail string) <-chan query.QueryResult
- func (q *MaterialReadQueryInMemory) FindAll(materialType, materialTypeDetail string, page, limit int) <-chan query.QueryResult
- func (q *MaterialReadQueryInMemory) FindByID(materialUID uuid.UUID) <-chan query.QueryResult
- type ReservoirEventQueryInMemory
- type ReservoirReadQueryInMemory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAreaEventQueryInMemory ¶
func NewAreaEventQueryInMemory(s *storage.AreaEventStorage) query.AreaEventQuery
func NewAreaReadQueryInMemory ¶
func NewAreaReadQueryInMemory(s *storage.AreaReadStorage) query.AreaReadQuery
func NewCropReadQueryInMemory ¶
func NewCropReadQueryInMemory(s *storage.CropReadStorage) query.CropReadQuery
func NewFarmEventQueryInMemory ¶
func NewFarmEventQueryInMemory(s *storage.FarmEventStorage) query.FarmEventQuery
func NewFarmReadQueryInMemory ¶
func NewFarmReadQueryInMemory(s *storage.FarmReadStorage) query.FarmReadQuery
func NewMaterialEventQueryInMemory ¶
func NewMaterialEventQueryInMemory(s *storage.MaterialEventStorage) query.MaterialEventQuery
func NewMaterialReadQueryInMemory ¶
func NewMaterialReadQueryInMemory(s *storage.MaterialReadStorage) query.MaterialReadQuery
func NewReservoirEventQueryInMemory ¶
func NewReservoirEventQueryInMemory(s *storage.ReservoirEventStorage) query.ReservoirEventQuery
func NewReservoirReadQueryInMemory ¶
func NewReservoirReadQueryInMemory(s *storage.ReservoirReadStorage) query.ReservoirReadQuery
Types ¶
type AreaEventQueryInMemory ¶
type AreaEventQueryInMemory struct {
Storage *storage.AreaEventStorage
}
func (*AreaEventQueryInMemory) FindAllByID ¶
func (f *AreaEventQueryInMemory) FindAllByID(uid uuid.UUID) <-chan query.QueryResult
type AreaReadQueryInMemory ¶
type AreaReadQueryInMemory struct {
Storage *storage.AreaReadStorage
}
func (AreaReadQueryInMemory) CountAreas ¶
func (s AreaReadQueryInMemory) CountAreas(farmUID uuid.UUID) <-chan query.QueryResult
func (AreaReadQueryInMemory) FindAllByFarm ¶
func (s AreaReadQueryInMemory) FindAllByFarm(farmUID uuid.UUID) <-chan query.QueryResult
func (AreaReadQueryInMemory) FindAreasByReservoirID ¶
func (s AreaReadQueryInMemory) FindAreasByReservoirID(reservoirUID uuid.UUID) <-chan query.QueryResult
func (AreaReadQueryInMemory) FindByID ¶
func (s AreaReadQueryInMemory) FindByID(uid uuid.UUID) <-chan query.QueryResult
func (AreaReadQueryInMemory) FindByIDAndFarm ¶
func (s AreaReadQueryInMemory) FindByIDAndFarm(areaUID, farmUID uuid.UUID) <-chan query.QueryResult
type CropReadQueryInMemory ¶
type CropReadQueryInMemory struct {
Storage *storage.CropReadStorage
}
func (CropReadQueryInMemory) CountCropsByArea ¶
func (q CropReadQueryInMemory) CountCropsByArea(areaUID uuid.UUID) <-chan query.QueryResult
func (CropReadQueryInMemory) FindAllCropByArea ¶
func (q CropReadQueryInMemory) FindAllCropByArea(areaUID uuid.UUID) <-chan query.QueryResult
type FarmEventQueryInMemory ¶
type FarmEventQueryInMemory struct {
Storage *storage.FarmEventStorage
}
func (*FarmEventQueryInMemory) FindAllByID ¶
func (f *FarmEventQueryInMemory) FindAllByID(uid uuid.UUID) <-chan query.QueryResult
type FarmReadQueryInMemory ¶
type FarmReadQueryInMemory struct {
Storage *storage.FarmReadStorage
}
func (FarmReadQueryInMemory) FindAll ¶
func (s FarmReadQueryInMemory) FindAll() <-chan query.QueryResult
func (FarmReadQueryInMemory) FindByID ¶
func (s FarmReadQueryInMemory) FindByID(uid uuid.UUID) <-chan query.QueryResult
type MaterialEventQueryInMemory ¶
type MaterialEventQueryInMemory struct {
Storage *storage.MaterialEventStorage
}
func (*MaterialEventQueryInMemory) FindAllByID ¶
func (f *MaterialEventQueryInMemory) FindAllByID(uid uuid.UUID) <-chan query.QueryResult
type MaterialReadQueryInMemory ¶
type MaterialReadQueryInMemory struct {
Storage *storage.MaterialReadStorage
}
func (MaterialReadQueryInMemory) CountAll ¶
func (q MaterialReadQueryInMemory) CountAll(materialType, materialTypeDetail string) <-chan query.QueryResult
func (*MaterialReadQueryInMemory) FindAll ¶
func (q *MaterialReadQueryInMemory) FindAll(materialType, materialTypeDetail string, page, limit int) <-chan query.QueryResult
func (*MaterialReadQueryInMemory) FindByID ¶
func (q *MaterialReadQueryInMemory) FindByID(materialUID uuid.UUID) <-chan query.QueryResult
type ReservoirEventQueryInMemory ¶
type ReservoirEventQueryInMemory struct {
Storage *storage.ReservoirEventStorage
}
func (*ReservoirEventQueryInMemory) FindAllByID ¶
func (f *ReservoirEventQueryInMemory) FindAllByID(uid uuid.UUID) <-chan query.QueryResult
type ReservoirReadQueryInMemory ¶
type ReservoirReadQueryInMemory struct {
Storage *storage.ReservoirReadStorage
}
func (ReservoirReadQueryInMemory) FindAllByFarm ¶
func (s ReservoirReadQueryInMemory) FindAllByFarm(farmUID uuid.UUID) <-chan query.QueryResult
func (ReservoirReadQueryInMemory) FindByID ¶
func (s ReservoirReadQueryInMemory) FindByID(uid uuid.UUID) <-chan query.QueryResult
Click to show internal directories.
Click to hide internal directories.