Back to

Package dsuapi

Latest Go to latest

The highest tagged major version is v2.

Published: May 1, 2020 | License: MIT | Module:


type DSUMiddleware

type DSUMiddleware struct {
	Xodb pgsqldriver.XODB

DSUMiddleware is a gin middleware for handling DSU data requests.

func (*DSUMiddleware) DeleteDataPointsHandler

func (dsu *DSUMiddleware) DeleteDataPointsHandler(c *gin.Context)

DeleteDataPointsHandler deletes a datapoint

func (*DSUMiddleware) GetDataPointsHandler

func (dsu *DSUMiddleware) GetDataPointsHandler(c *gin.Context)

GetDataPointsHandler returns a single datapoint identified in the id parameter

func (*DSUMiddleware) PostDataPointsHandler

func (dsu *DSUMiddleware) PostDataPointsHandler(c *gin.Context)

PostDataPointsHandler saves a omh.DataPoint.

func (*DSUMiddleware) PutDataPointsHandler

func (dsu *DSUMiddleware) PutDataPointsHandler(c *gin.Context)

UpdateDataPointsHandler deletes a datapoint

func (*DSUMiddleware) QueryDataPointsHandler

func (dsu *DSUMiddleware) QueryDataPointsHandler(c *gin.Context)

QueryDataPointsHandler queries for datapoints

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier