inmemory

package
v0.0.0-...-87346ed Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

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

Jump to

Keyboard shortcuts

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