storage

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

This section is empty.

Types

type DeviceDomainCropArea

type DeviceDomainCropArea struct {
	AreaID   *uuid.UUID `json:"area_id"`
	AreaName string     `json:"area_name"`
}

DeviceDomainCropArea is used ...

type DeviceDomainCropBatch

type DeviceDomainCropBatch struct {
	CropID      *uuid.UUID `json:"crop_id"`
	CropBatchID string     `json:"crop_batch_id"`
}

DeviceDomainCropBatch is used...

type DeviceDomainCropMaterial

type DeviceDomainCropMaterial struct {
	MaterialID           *uuid.UUID `json:"material_id"`
	MaterialName         string     `json:"material_name"`
	MaterialType         string     `json:"material_type"`
	MaterialDetailedType string     `json:"material_detailed_type"`
}

DeviceDomainCropMaterial is used ...

type DeviceDomainDetailedArea

type DeviceDomainDetailedArea struct {
	MaterialID           *uuid.UUID `json:"material_id"`
	MaterialName         string     `json:"material_name"`
	MaterialType         string     `json:"material_type"`
	MaterialDetailedType string     `json:"material_detailed_type"`
}

DeviceDomainDetailedArea is used ...

func (DeviceDomainDetailedArea) Code

Code is used ...

type DeviceDomainDetailedCrop

type DeviceDomainDetailedCrop struct {
	Material *DeviceDomainCropMaterial `json:"material"`
	Area     *DeviceDomainCropArea     `json:"area"`
	Crop     *DeviceDomainCropBatch    `json:"crop"`
}

DeviceDomainDetailedCrop interface in domain But contains more detailed information of material, area and crop

func (DeviceDomainDetailedCrop) Code

Code is used ...

type DeviceDomainDetailedReservoir

type DeviceDomainDetailedReservoir struct {
	MaterialID           *uuid.UUID `json:"material_id"`
	MaterialName         string     `json:"material_name"`
	MaterialType         string     `json:"material_type"`
	MaterialDetailedType string     `json:"material_detailed_type"`
}

DeviceDomainDetailedReservoir is used ...

func (DeviceDomainDetailedReservoir) Code

Code is used ...

type DeviceEvent

type DeviceEvent struct {
	DeviceUID   uuid.UUID
	Version     int
	CreatedDate time.Time
	Event       interface{}
}

DeviceEvent is used ...

type DeviceEventStorage

type DeviceEventStorage struct {
	Lock         *deadlock.RWMutex
	DeviceEvents []DeviceEvent
}

DeviceEventStorage is used ...

func CreateDeviceEventStorage

func CreateDeviceEventStorage() *DeviceEventStorage

CreateDeviceEventStorage is used

type DeviceRead

type DeviceRead struct {
	Title       string    `json:"title"`
	UID         uuid.UUID `json:"uid"`
	Description string    `json:"description"`
	CreatedDate time.Time `json:"created_date"`
	//DueDate       *time.Time        `json:"due_date, omitempty"`
	//CompletedDate *time.Time        `json:"completed_date"`
	//CancelledDate *time.Time        `json:"cancelled_date"`
	//Priority      string            `json:"priority"`
	Status        string              `json:"status"`
	Domain        string              `json:"domain"`
	DomainDetails domain.DeviceDomain `json:"domain_details"`
	Category      string              `json:"category"`
	//IsDue         bool              `json:"is_due"`
	AssetID *uuid.UUID `json:"asset_id"`
}

DeviceRead is used ...

type DeviceReadStorage

type DeviceReadStorage struct {
	Lock          *deadlock.RWMutex
	DeviceReadMap map[uuid.UUID]DeviceRead
}

DeviceReadStorage is used

func CreateDeviceReadStorage

func CreateDeviceReadStorage() *DeviceReadStorage

CreateDeviceReadStorage is used ...

Jump to

Keyboard shortcuts

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