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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Area

type Area interface {
	FindByID(areaUID uuid.UUID) <-chan Result
}

type Crop

type Crop interface {
	FindCropByID(cropUID uuid.UUID) <-chan Result
}

type EventWrapper

type EventWrapper struct {
	EventName string
	EventData interface{}
}

EventWrapper is used to wrap the event interface with its struct name, so it will be easier to unmarshal later

type Material

type Material interface {
	FindMaterialByID(materialID uuid.UUID) <-chan Result
}

type Reservoir

type Reservoir interface {
	FindReservoirByID(reservoirUID uuid.UUID) <-chan Result
}

type Result

type Result struct {
	Result interface{}
	Error  error
}

type TaskAreaResult

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

type TaskCropResult

type TaskCropResult struct {
	UID     uuid.UUID `json:"uid"`
	BatchID string    `json:"batch_id"`
}

type TaskEvent

type TaskEvent interface {
	FindAllByTaskID(uid uuid.UUID) <-chan Result
}

type TaskMaterialResult

type TaskMaterialResult struct {
	UID              uuid.UUID `json:"uid"`
	TypeCode         string    `json:"type"`
	DetailedTypeCode string    `json:"detailed_type"`
	Name             string    `json:"name"`
}

type TaskRead

type TaskRead interface {
	FindAll(page, limit int) <-chan Result
	FindByID(taskUID uuid.UUID) <-chan Result
	FindTasksWithFilter(params map[string]string, page, limit int) <-chan Result
	CountAll() <-chan Result
	CountTasksWithFilter(params map[string]string) <-chan Result
}

type TaskReservoirResult

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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