domain

package
v0.0.0-...-60c21ee Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColiformsData

type ColiformsData struct {
	Fecal float64 `json:"fecal" bson:"fecal"`
	EColi float64 `json:"E_coli" bson:"E_coli"`
	Total float64 `json:"total" bson:"total"`
}

ColiformsData represents coliform data

type Device

type Device struct {
	ID          primitive.ObjectID `bson:"_id,omitempty" json:"id"`
	Name        string             `bson:"name" json:"name"`
	Description string             `bson:"description" json:"description"`
	CreatedAt   MyTime             `bson:"created_at" json:"created_at" time_format:"2006-01-02T15:04:05"`
	UpdatedAt   MyTime             `bson:"updated_at" json:"updated_at" time_format:"2006-01-02T15:04:05"`
}

type DeviceRequest

type DeviceRequest struct {
	Name        string `bson:"name" json:"name"`
	Description string `bson:"description" json:"description"`
	CreatedAt   MyTime `bson:"created_at" json:"created_at" time_format:"2006-01-02T15:04:05"`
	UpdatedAt   MyTime `bson:"updated_at" json:"updated_at" time_format:"2006-01-02T15:04:05"`
}

type MyTime

type MyTime struct {
	time.Time
}

func (*MyTime) UnmarshalJSON

func (m *MyTime) UnmarshalJSON(data []byte) error

type Sensor

type Sensor struct {
	ID          primitive.ObjectID `bson:"_id,omitempty" json:"id"`
	Name        string             `bson:"name" json:"name"`
	Description string             `bson:"description" json:"description"`
	DeviceID    primitive.ObjectID `bson:"device_id" json:"device_id"`
	CreatedAt   MyTime             `bson:"created_at" json:"created_at" time_format:"2006-01-02 15:04:05" time_utc:"true"`
	UpdatedAt   MyTime             `bson:"updated_at" json:"updated_at" time_format:"2006-01-02 15:04:05" time_utc:"true"`
}

type SensorRequest

type SensorRequest struct {
	Name        string             `bson:"name" json:"name"`
	Description string             `bson:"description" json:"description"`
	DeviceID    primitive.ObjectID `bson:"device_id" json:"device_id"`
	CreatedAt   MyTime             `bson:"created_at" json:"created_at" time_format:"2006-01-02 15:04:05" time_utc:"true"`
	UpdatedAt   MyTime             `bson:"updated_at" json:"updated_at" time_format:"2006-01-02 15:04:05" time_utc:"true"`
}

type WasteWaterData

type WasteWaterData struct {
	ID                 primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty" `
	Timestamp          time.Time          `json:"timestamp" bson:"timestamp"`
	BOD                float64            `json:"BOD" bson:"BOD"`
	COD                float64            `json:"COD" bson:"COD"`
	TOC                float64            `json:"TOC" bson:"TOC"`
	DOC                float64            `json:"DOC" bson:"DOC"`
	OpticalBrighteners float64            `json:"Optical_Brighteners" bson:"Optical_Brighteners"`
	Ammonium           float64            `json:"Ammonium"`
	DissolvedOxygen    float64            `json:"Dissolved_Oxygen"`
	Nitrate            float64            `json:"Nitrate"`
	ECSalinityTDS      float64            `json:"EC_Salinity_TDS"`
	Pressure           float64            `json:"Pressure"`
	ORPRedox           float64            `json:"ORP_REDOX"`
	Turbidity          float64            `json:"Turbidity"`
	Chloride           float64            `json:"Chloride"`
	Coliforms          ColiformsData      `json:"Coliforms" bson:"Coliforms"`
	CrudeOils          float64            `json:"Crude_Oils"`
	PH                 float64            `json:"pH"`
	Tryptophan         float64            `json:"Tryptophan"`
	CDOM               float64            `json:"CDOM"`
	Temperature        float64            `json:"Temperature"`
	RefinedOils        float64            `json:"Refined_Oils"`
}

WasteWaterData represents waste water data

type WastewaterDataRequest

type WastewaterDataRequest struct {
	Timestamp          time.Time     `json:"timestamp" bson:"timestamp"`
	BOD                float64       `json:"BOD" bson:"BOD"`
	COD                float64       `json:"COD" bson:"COD"`
	TOC                float64       `json:"TOC" bson:"TOC"`
	DOC                float64       `json:"DOC" bson:"DOC"`
	OpticalBrighteners float64       `json:"Optical_Brighteners" bson:"Optical_Brighteners"`
	Ammonium           float64       `json:"Ammonium"`
	DissolvedOxygen    float64       `json:"Dissolved_Oxygen"`
	Nitrate            float64       `json:"Nitrate"`
	ECSalinityTDS      float64       `json:"EC_Salinity_TDS"`
	Pressure           float64       `json:"Pressure"`
	ORPRedox           float64       `json:"ORP_REDOX"`
	Turbidity          float64       `json:"Turbidity"`
	Chloride           float64       `json:"Chloride"`
	Coliforms          ColiformsData `json:"Coliforms" bson:"Coliforms"`
	CrudeOils          float64       `json:"Crude_Oils"`
	PH                 float64       `json:"pH"`
	Tryptophan         float64       `json:"Tryptophan"`
	CDOM               float64       `json:"CDOM"`
	Temperature        float64       `json:"Temperature"`
	RefinedOils        float64       `json:"Refined_Oils"`
}

Jump to

Keyboard shortcuts

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