handlers

package
v0.0.0-...-8f9ebe2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING Autogenerated by goscinny handler -p ../../../pkg/contracts DO NOT EDIT

Package handlers has the http handler for all resources all the handlers here are autogenerated using the details from contracts

DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING Autogenerated by goscinny handler -p ../../../pkg/contracts DO NOT EDIT

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(err error) contracts.SingleResponse

Error defines

func RawResponse

func RawResponse(c echo.Context, response interface{}, httpCode int) error

RawResponse creates response and responds it it encode the respone in the format that requester `accpets` checks the accept header for the same

func Response

func Response(c echo.Context, response contracts.Response, httpCode int) error

Response accepts valid response object and sets basic response fields httpcode,requestid and method and set and it encodes the response in the format that requester `accepts` checks the accept header for the same

Types

type DataPointHandler

type DataPointHandler struct{}

DataPointHandler is the implementation object of IHandler forDataPointCRUD requests

func (DataPointHandler) Any

func (handler DataPointHandler) Any(c echo.Context) error

Any handles any method onDataPoint

func (DataPointHandler) Create

func (DataPointHandler) Create(c echo.Context) error

Createis the handler for Createrequests toDataPoint

type MetricsHandler

type MetricsHandler struct{}

MetricsHandler is the implementation object of IHandler forMetricsCRUD requests

func (MetricsHandler) Any

func (handler MetricsHandler) Any(c echo.Context) error

Any handles any method onMetrics

func (MetricsHandler) Create

func (MetricsHandler) Create(c echo.Context) error

Createis the handler for Createrequests toMetrics

Jump to

Keyboard shortcuts

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