handler

package
v0.0.0-...-b28c67c Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindOwnerByID

func FindOwnerByID(ses gocqlx.Session) operations.FindOwnerByIDHandlerFunc

FindOwnerByID finds an owner by id $ curl http://127.0.0.1:8000/api/owner/{id}

func FindPetsByOwnerID

func FindPetsByOwnerID(ses gocqlx.Session) operations.FindPetsByOwnerIDHandlerFunc

FindPetsByOwnerID finds pets by owner id $ http://127.0.0.1:8000/api/owner/{id}/pets

func FindSensorAvgBySensorIDAndDay

func FindSensorAvgBySensorIDAndDay(ses gocqlx.Session) operations.FindSensorAvgBySensorIDAndDayHandlerFunc

FindSensorAvgBySensorIDAndDay reads sensor day hourly aggregates. The functions reads aggregated sensor data from the selected day. If the data is missing it aggregates measurements first. $ curl http://127.0.0.1:8000/api/sensor/{id}/values/day/{date}

func FindSensorDataBySensorIDAndTimeRange

func FindSensorDataBySensorIDAndTimeRange(ses gocqlx.Session) operations.FindSensorDataBySensorIDAndTimeRangeHandlerFunc

FindSensorDataBySensorIDAndTimeRange reads sensors data in a time window. $ curl http://127.0.0.1:8000/api/sensor/{id}/values?from=2006-01-02T15:04:05Z07:00&to=2006-01-02T15:04:05Z07:00

func FindSensorsByPetID

func FindSensorsByPetID(ses gocqlx.Session) operations.FindSensorsByPetIDHandlerFunc

FindSensorsByPetID finds pet sensors $ curl http://127.0.0.1:8000/api/pet/{id}/sensors

Types

This section is empty.

Jump to

Keyboard shortcuts

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