query

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: 2 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AreaCropResult

type AreaCropResult struct {
	CropUID          uuid.UUID   `json:"uid"`
	BatchID          string      `json:"batch_id"`
	InitialArea      InitialArea `json:"initial_area"`
	MovingDate       time.Time   `json:"moving_date"`
	CreatedDate      time.Time   `json:"created_date"`
	DaysSinceSeeding int         `json:"days_since_seeding"`
	Inventory        Inventory   `json:"inventory"`
	Container        Container   `json:"container"`
}

type AreaEvent

type AreaEvent interface {
	FindAllByID(areaUID uuid.UUID) <-chan Result
}

type AreaRead

type AreaRead interface {
	FindByID(reservoirUID uuid.UUID) <-chan Result
	FindAllByFarm(farmUID uuid.UUID) <-chan Result
	FindByIDAndFarm(areaUID, farmUID uuid.UUID) <-chan Result
	FindAreasByReservoirID(reservoirUID uuid.UUID) <-chan Result
	CountAreas(farmUID uuid.UUID) <-chan Result
}

type Container

type Container struct {
	Type     ContainerType `json:"type"`
	Quantity int           `json:"quantity"`
}

type ContainerType

type ContainerType struct {
	Code string `json:"code"`
	Cell int    `json:"cell"`
}

type CountAreaCropResult

type CountAreaCropResult struct {
	PlantQuantity  int
	TotalCropBatch int
}

type CropRead

type CropRead interface {
	FindAllCropByArea(areaUID uuid.UUID) <-chan Result
	CountCropsByArea(areaUID uuid.UUID) <-chan Result
}

type FarmEvent

type FarmEvent interface {
	FindAllByID(farmUID uuid.UUID) <-chan Result
}

type FarmRead

type FarmRead interface {
	FindByID(farmUID uuid.UUID) <-chan Result
	FindAll() <-chan Result
}

type FarmResult

type FarmResult struct {
	UID         uuid.UUID
	Name        string
	Type        string
	Latitude    string
	Longitude   string
	CountryCode string
	CityCode    string
	CreatedDate time.Time
}

type InitialArea

type InitialArea struct {
	AreaUID uuid.UUID `json:"uid"`
	Name    string    `json:"name"`
}

type Inventory

type Inventory struct {
	UID  uuid.UUID `json:"uid"`
	Name string    `json:"name"`
}

type MaterialEvent

type MaterialEvent interface {
	FindAllByID(materialUID uuid.UUID) <-chan Result
}

type MaterialRead

type MaterialRead interface {
	FindAll(materialType, materialTypeDetail string, page, limit int) <-chan Result
	CountAll(materialType, materialTypeDetail string) <-chan Result
	FindByID(materialUID uuid.UUID) <-chan Result
}

type ReservoirEvent

type ReservoirEvent interface {
	FindAllByID(reservoirUID uuid.UUID) <-chan Result
}

type ReservoirNote

type ReservoirNote struct {
	UID         uuid.UUID
	Content     string
	CreatedDate time.Time
}

type ReservoirRead

type ReservoirRead interface {
	FindByID(reservoirUID uuid.UUID) <-chan Result
	FindAllByFarm(farmUID uuid.UUID) <-chan Result
}

type ReservoirResult

type ReservoirResult struct {
	UID         uuid.UUID
	Name        string
	WaterSource WaterSource
	FarmUID     uuid.UUID
	Notes       []ReservoirNote
	CreatedDate time.Time
}

type Result

type Result struct {
	Result interface{}
	Error  error
}

type WaterSource

type WaterSource struct {
	Type     string
	Capacity float32
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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