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 ¶
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