handlers

package
v0.0.0-...-6cd7eb2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleAPIRoot

func HandleAPIRoot(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleAPIRoot will return a JSON array of the available SensorThings resource endpoints.

func HandleDeleteDatastream

func HandleDeleteDatastream(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleDeleteDatastream ...

func HandleDeleteFeatureOfInterest

func HandleDeleteFeatureOfInterest(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleDeleteFeatureOfInterest ...

func HandleDeleteHistoricalLocations

func HandleDeleteHistoricalLocations(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleDeleteHistoricalLocations ...

func HandleDeleteLocation

func HandleDeleteLocation(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleDeleteLocation deletes a location

func HandleDeleteObservation

func HandleDeleteObservation(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleDeleteObservation ...

func HandleDeleteObservedProperty

func HandleDeleteObservedProperty(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleDeleteObservedProperty Deletes an ObservedProperty by id

func HandleDeleteSensor

func HandleDeleteSensor(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleDeleteSensor ...

func HandleDeleteThing

func HandleDeleteThing(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleDeleteThing deletes a thing by given id

func HandleGetDatastream

func HandleGetDatastream(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetDatastream retrieves a datastream by given id

func HandleGetDatastreamByObservation

func HandleGetDatastreamByObservation(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetDatastreamByObservation ...

func HandleGetDatastreams

func HandleGetDatastreams(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetDatastreams retrieves datastreams based on Query Parameters

func HandleGetDatastreamsByObservedProperty

func HandleGetDatastreamsByObservedProperty(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetDatastreamsByObservedProperty ...

func HandleGetDatastreamsBySensor

func HandleGetDatastreamsBySensor(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetDatastreamsBySensor ...

func HandleGetDatastreamsByThing

func HandleGetDatastreamsByThing(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetDatastreamsByThing ...

func HandleGetFeatureOfInterest

func HandleGetFeatureOfInterest(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetFeatureOfInterest ...

func HandleGetFeatureOfInterestByObservation

func HandleGetFeatureOfInterestByObservation(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetFeatureOfInterestByObservation ...

func HandleGetFeatureOfInterests

func HandleGetFeatureOfInterests(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetFeatureOfInterests ...

func HandleGetHistoricalLocation

func HandleGetHistoricalLocation(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetHistoricalLocation ...

func HandleGetHistoricalLocations

func HandleGetHistoricalLocations(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetHistoricalLocations ...

func HandleGetHistoricalLocationsByLocation

func HandleGetHistoricalLocationsByLocation(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetHistoricalLocationsByLocation ...

func HandleGetHistoricalLocationsByThing

func HandleGetHistoricalLocationsByThing(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetHistoricalLocationsByThing ...

func HandleGetLocation

func HandleGetLocation(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetLocation retrieves a location by given id

func HandleGetLocations

func HandleGetLocations(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetLocations retrieves multiple locations based on query parameters

func HandleGetLocationsByHistoricalLocations

func HandleGetLocationsByHistoricalLocations(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetLocationsByHistoricalLocations retrieves the locations linked to the given Historical Location (id)

func HandleGetLocationsByThing

func HandleGetLocationsByThing(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetLocationsByThing retrieves the locations by given thing (id)

func HandleGetObservation

func HandleGetObservation(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetObservation ...

func HandleGetObservations

func HandleGetObservations(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetObservations ...

func HandleGetObservationsByDatastream

func HandleGetObservationsByDatastream(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetObservationsByDatastream ...

func HandleGetObservationsByFeatureOfInterest

func HandleGetObservationsByFeatureOfInterest(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetObservationsByFeatureOfInterest ...

func HandleGetObservedProperties

func HandleGetObservedProperties(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetObservedProperties retrieves ObservedProperties

func HandleGetObservedProperty

func HandleGetObservedProperty(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetObservedProperty retrieves an ObservedProperty by id

func HandleGetObservedPropertyByDatastream

func HandleGetObservedPropertyByDatastream(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetObservedPropertyByDatastream retrieves the ObservedProperty by given Datastream id

func HandleGetSensor

func HandleGetSensor(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetSensor ...

func HandleGetSensorByDatastream

func HandleGetSensorByDatastream(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetSensorByDatastream ...

func HandleGetSensors

func HandleGetSensors(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetSensors ...

func HandleGetThing

func HandleGetThing(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetThing retrieves and sends a specific Thing based on the given ID and filter

func HandleGetThingByDatastream

func HandleGetThingByDatastream(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetThingByDatastream retrieves and sends a specific Thing based on the given datastream ID and filter

func HandleGetThingByHistoricalLocation

func HandleGetThingByHistoricalLocation(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetThingByHistoricalLocation retrieves and sends a specific Thing based on the given HistoricalLocation ID and filter

func HandleGetThings

func HandleGetThings(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetThings retrieves and sends Things based on the given filter if provided

func HandleGetThingsByLocation

func HandleGetThingsByLocation(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleGetThingsByLocation retrieves and sends Things based on the given Location ID and filter

func HandlePatchDatastream

func HandlePatchDatastream(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePatchDatastream ...

func HandlePatchFeatureOfInterest

func HandlePatchFeatureOfInterest(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePatchFeatureOfInterest ...

func HandlePatchHistoricalLocations

func HandlePatchHistoricalLocations(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePatchHistoricalLocations ...

func HandlePatchLocation

func HandlePatchLocation(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePatchLocation patches a location by given id

func HandlePatchObservation

func HandlePatchObservation(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePatchObservation ...

func HandlePatchObservedProperty

func HandlePatchObservedProperty(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePatchObservedProperty patches an Observes property by id

func HandlePatchSensor

func HandlePatchSensor(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePatchSensor ...

func HandlePatchThing

func HandlePatchThing(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePatchThing patches a thing by given id

func HandlePostCreateObservations

func HandlePostCreateObservations(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePostCreateObservations ...

func HandlePostDatastream

func HandlePostDatastream(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePostDatastream ...

func HandlePostDatastreamByThing

func HandlePostDatastreamByThing(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePostDatastreamByThing ...

func HandlePostFeatureOfInterest

func HandlePostFeatureOfInterest(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePostFeatureOfInterest ...

func HandlePostHistoricalLocation

func HandlePostHistoricalLocation(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePostHistoricalLocation ...

func HandlePostLocation

func HandlePostLocation(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePostLocation posts a new location

func HandlePostLocationByThing

func HandlePostLocationByThing(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePostLocationByThing posts a new location linked to the given thing

func HandlePostObservation

func HandlePostObservation(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePostObservation ...

func HandlePostObservationByDatastream

func HandlePostObservationByDatastream(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePostObservationByDatastream ...

func HandlePostObservedProperty

func HandlePostObservedProperty(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePostObservedProperty posts a new ObservedProperty

func HandlePostSensors

func HandlePostSensors(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePostSensors ...

func HandlePostThing

func HandlePostThing(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePostThing tries to insert a new Thing and sends back the created Thing

func HandlePutDatastream

func HandlePutDatastream(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePutDatastream ...

func HandlePutFeatureOfInterest

func HandlePutFeatureOfInterest(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePutFeatureOfInterest ...

func HandlePutHistoricalLocation

func HandlePutHistoricalLocation(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePutHistoricalLocation ...

func HandlePutLocation

func HandlePutLocation(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePutLocation patches a location by given id

func HandlePutObservation

func HandlePutObservation(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePutObservation ...

func HandlePutObservedProperty

func HandlePutObservedProperty(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePutObservedProperty posts a new ObservedProperty

func HandlePutSensor

func HandlePutSensor(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePutSensor ...

func HandlePutThing

func HandlePutThing(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandlePutThing patches a thing by given id

func HandleVersion

func HandleVersion(w http.ResponseWriter, r *http.Request, endpoint *models.Endpoint, api *models.API)

HandleVersion retrieves current version information and sends it back to the user

Types

This section is empty.

Jump to

Keyboard shortcuts

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