query

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AreaQuery

type AreaQuery interface {
	FindByID(areaUID uuid.UUID) <-chan QueryResult
}

type CropQuery

type CropQuery interface {
	FindCropByID(cropUID uuid.UUID) <-chan QueryResult
}

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 MaterialQuery

type MaterialQuery interface {
	FindMaterialByID(materialID uuid.UUID) <-chan QueryResult
}

type QueryResult

type QueryResult struct {
	Result interface{}
	Error  error
}

type ReservoirQuery

type ReservoirQuery interface {
	FindReservoirByID(reservoirUID uuid.UUID) <-chan QueryResult
}

type TaskAreaQueryResult

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

type TaskCropQueryResult

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

type TaskEventQuery

type TaskEventQuery interface {
	FindAllByTaskID(uid uuid.UUID) <-chan QueryResult
}

type TaskMaterialQueryResult

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

type TaskReadQuery

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

type TaskReservoirQueryResult

type TaskReservoirQueryResult 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