handler

package
v0.0.0-...-c3bed66 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AboutHandler

func AboutHandler(c echo.Context) error

AboutHandler is a default handler to serve up memory of 18.20.

Types

type QueriesHandler

type QueriesHandler struct {
	Store store.Data
}

QueriesHandler handles useful queries on database

func (QueriesHandler) Fetch

func (q QueriesHandler) Fetch(c echo.Context) error

Fetch fetches given things data in given time range from database. please consider that this fuction returns data in ascending time order. This function is mapped to the path POST /queries/fetch

func (QueriesHandler) FetchSingle

func (q QueriesHandler) FetchSingle(c echo.Context) error

FetchSingle fetches the given thing data in given time range from database. please consider that this fuction returns data in ascending time order. This function is mapped to the path GET /queries/things/thing_id/fetch

func (QueriesHandler) List

func (q QueriesHandler) List(c echo.Context) error

List lists things and count of their data in database. This function is mapped to the path GET /projects/{project_id}/things/{thing_id}/qeuries/list

func (QueriesHandler) Register

func (q QueriesHandler) Register(g *echo.Group)

Register registers the routes of things handler on given echo group

Jump to

Keyboard shortcuts

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