Documentation ¶
Index ¶
- func FindOwnerByID(ses gocqlx.Session) operations.FindOwnerByIDHandlerFunc
- func FindPetsByOwnerID(ses gocqlx.Session) operations.FindPetsByOwnerIDHandlerFunc
- func FindSensorAvgBySensorIDAndDay(ses gocqlx.Session) operations.FindSensorAvgBySensorIDAndDayHandlerFunc
- func FindSensorDataBySensorIDAndTimeRange(ses gocqlx.Session) operations.FindSensorDataBySensorIDAndTimeRangeHandlerFunc
- func FindSensorsByPetID(ses gocqlx.Session) operations.FindSensorsByPetIDHandlerFunc
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.