Documentation ¶
Index ¶
- type ConstructionPGRepository
- func (c *ConstructionPGRepository) Create(ctx *gofr.Context, data *usecase.ConstructionEntity) (bool, error)
- func (c *ConstructionPGRepository) Delete(ctx *gofr.Context, id int64) (bool, error)
- func (c *ConstructionPGRepository) GetAll(ctx *gofr.Context) (*[]usecase.ConstructionEntity, error)
- func (c *ConstructionPGRepository) GetById(ctx *gofr.Context, id int64) (*usecase.ConstructionEntity, error)
- func (c *ConstructionPGRepository) Update(ctx *gofr.Context, data *usecase.ConstructionEntity) (bool, error)
- func (c *ConstructionPGRepository) UpdateOrDelete(ctx *gofr.Context, data *usecase.ConstructionEntity) (bool, error)
- func (c *ConstructionPGRepository) UpdateOrInsert(ctx *gofr.Context, data *usecase.ConstructionEntity) (bool, error)
- type ConstructionRepo
- type Schema
- type SchemaTest
- type TelemetryRepo
- type TelemetryTSRepository
- type TimeEnum
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConstructionPGRepository ¶
type ConstructionPGRepository struct{}
func (*ConstructionPGRepository) Create ¶
func (c *ConstructionPGRepository) Create(ctx *gofr.Context, data *usecase.ConstructionEntity) (bool, error)
func (*ConstructionPGRepository) GetAll ¶
func (c *ConstructionPGRepository) GetAll(ctx *gofr.Context) (*[]usecase.ConstructionEntity, error)
func (*ConstructionPGRepository) GetById ¶
func (c *ConstructionPGRepository) GetById(ctx *gofr.Context, id int64) (*usecase.ConstructionEntity, error)
func (*ConstructionPGRepository) Update ¶
func (c *ConstructionPGRepository) Update(ctx *gofr.Context, data *usecase.ConstructionEntity) (bool, error)
func (*ConstructionPGRepository) UpdateOrDelete ¶
func (c *ConstructionPGRepository) UpdateOrDelete(ctx *gofr.Context, data *usecase.ConstructionEntity) (bool, error)
func (*ConstructionPGRepository) UpdateOrInsert ¶
func (c *ConstructionPGRepository) UpdateOrInsert(ctx *gofr.Context, data *usecase.ConstructionEntity) (bool, error)
type ConstructionRepo ¶
type ConstructionRepo interface { GetAll(ctx *gofr.Context) (*[]usecase.ConstructionEntity, error) GetById(ctx *gofr.Context, id int64) (*usecase.ConstructionEntity, error) Create(ctx *gofr.Context, data *usecase.ConstructionEntity) (bool, error) Update(ctx *gofr.Context, data *usecase.ConstructionEntity) (bool, error) Delete(ctx *gofr.Context, id int64) (bool, error) }
type Schema ¶
type Schema struct { Time time.Time `json:"time"` Data *SchemaTest `json:"data"` }
type SchemaTest ¶
type SchemaTest struct { Deformation []struct { Absv float64 `json:"absv"` Id int `json:"id"` Ts int64 `json:"ts"` X float64 `json:"x"` Y float64 `json:"y"` Z float64 `json:"z"` } `json:"deformation"` DeviceId string `json:"deviceId"` Environment struct { Humidity float64 `json:"humidity"` InnerTemp float64 `json:"innerTemp"` Temp float64 `json:"temp"` } `json:"environment"` RealDis int `json:"realDis"` Slant struct { X float64 `json:"x"` Y float64 `json:"y"` Z float64 `json:"z"` } `json:"slant"` Ts int64 `json:"ts"` }
func (*SchemaTest) Scan ¶
func (i *SchemaTest) Scan(value interface{}) error
type TelemetryRepo ¶
type TelemetryTSRepository ¶
func (*TelemetryTSRepository) CreateTelemetry ¶
func (t *TelemetryTSRepository) CreateTelemetry(data Schema) (bool, error)
func (*TelemetryTSRepository) GetTelemetriesByTime ¶
func (t *TelemetryTSRepository) GetTelemetriesByTime(timeEnum TimeEnum) (*[]Schema, error)
Click to show internal directories.
Click to hide internal directories.