inmemory

package
v0.0.0-...-ae75a06 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAreaReadQueryInMemory

func NewAreaReadQueryInMemory(s *storage.AreaReadStorage) query.AreaReadQuery

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 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.Result

type CropActivityQueryInMemory

type CropActivityQueryInMemory struct {
	Storage *storage.CropActivityStorage
}

func (CropActivityQueryInMemory) FindAllByCropID

func (s CropActivityQueryInMemory) FindAllByCropID(uid uuid.UUID) <-chan query.Result

func (CropActivityQueryInMemory) FindByCropIDAndActivityType

func (s CropActivityQueryInMemory) FindByCropIDAndActivityType(uid uuid.UUID, activityType interface{}) <-chan query.Result

type CropEventQueryInMemory

type CropEventQueryInMemory struct {
	Storage *storage.CropEventStorage
}

func (*CropEventQueryInMemory) FindAllByCropID

func (f *CropEventQueryInMemory) FindAllByCropID(uid uuid.UUID) <-chan query.Result

type CropReadQueryInMemory

type CropReadQueryInMemory struct {
	Storage *storage.CropReadStorage
}

func (CropReadQueryInMemory) CountAllArchivedCropsByFarm

func (s CropReadQueryInMemory) CountAllArchivedCropsByFarm(farmUID uuid.UUID) <-chan query.Result

func (CropReadQueryInMemory) CountAllCropsByFarm

func (s CropReadQueryInMemory) CountAllCropsByFarm(farmUID uuid.UUID, status string) <-chan query.Result

func (CropReadQueryInMemory) CountTotalBatch

func (s CropReadQueryInMemory) CountTotalBatch(farmUID uuid.UUID) <-chan query.Result

func (CropReadQueryInMemory) FindAllCropsArchives

func (s CropReadQueryInMemory) FindAllCropsArchives(farmUID uuid.UUID, page, limit int) <-chan query.Result

func (CropReadQueryInMemory) FindAllCropsByArea

func (s CropReadQueryInMemory) FindAllCropsByArea(areaUID uuid.UUID) <-chan query.Result

func (CropReadQueryInMemory) FindAllCropsByFarm

func (s CropReadQueryInMemory) FindAllCropsByFarm(farmUID uuid.UUID, status string, page, limit int) <-chan query.Result

func (CropReadQueryInMemory) FindByBatchID

func (s CropReadQueryInMemory) FindByBatchID(batchID string) <-chan query.Result

func (CropReadQueryInMemory) FindByID

func (s CropReadQueryInMemory) FindByID(uid uuid.UUID) <-chan query.Result

func (CropReadQueryInMemory) FindCropsInformation

func (s CropReadQueryInMemory) FindCropsInformation(farmUID uuid.UUID) <-chan query.Result

type FarmReadQueryInMemory

type FarmReadQueryInMemory struct {
	Storage *storage.FarmReadStorage
}

func (FarmReadQueryInMemory) FindByID

func (s FarmReadQueryInMemory) FindByID(uid uuid.UUID) <-chan query.Result

type MaterialReadQueryInMemory

type MaterialReadQueryInMemory struct {
	Storage *storage.MaterialReadStorage
}

func (MaterialReadQueryInMemory) FindByID

func (q MaterialReadQueryInMemory) FindByID(inventoryUID uuid.UUID) <-chan query.Result

func (MaterialReadQueryInMemory) FindMaterialByPlantTypeCodeAndName

func (q MaterialReadQueryInMemory) FindMaterialByPlantTypeCodeAndName(plantTypeCode string, name string) <-chan query.Result

type TaskReadQueryInMemory

type TaskReadQueryInMemory struct {
	Storage *storage.TaskReadStorage
}

func (TaskReadQueryInMemory) FindByID

func (s TaskReadQueryInMemory) FindByID(uid uuid.UUID) <-chan query.Result

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL