Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MuxRouter ¶
func NewMuxRouter ¶
func NewMuxRouter(logger *zap.SugaredLogger, restHandler RestHandler) *MuxRouter
type ResetRequest ¶
type ResponseV2 ¶
type ResponseV2 struct { Code int `json:"code,omitempty"` Status string `json:"status,omitempty"` Result interface{} `json:"result,omitempty"` Errors []*util.ApiError `json:"errors,omitempty"` }
global response body used across api
type RestHandler ¶
type RestHandler interface {
TelemetryEventReceiver(w http.ResponseWriter, r *http.Request)
}
type RestHandlerImpl ¶
type RestHandlerImpl struct {
// contains filtered or unexported fields
}
func NewRestHandlerImpl ¶
func NewRestHandlerImpl(logger *zap.SugaredLogger) *RestHandlerImpl
func (*RestHandlerImpl) TelemetryEventReceiver ¶
func (impl *RestHandlerImpl) TelemetryEventReceiver(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.