Documentation
¶
Overview ¶
Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
Package api Code generated by swaggo/swag. DO NOT EDIT
Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var SwaggerInfo = &swag.Spec{ Version: "1.0.0", Host: "localhost:8098", BasePath: "/api/", Schemes: []string{}, Title: "cc-event-store REST API", Description: "API for cc-event-store", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, LeftDelim: "{{", RightDelim: "}}", }
SwaggerInfo holds exported Swagger Info so clients can modify it
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface {
Init(wg *sync.WaitGroup, store storage.StorageManager, rawConfig json.RawMessage) error
Start()
Close()
}
func NewAPI ¶
func NewAPI(wg *sync.WaitGroup, store storage.StorageManager, rawConfig json.RawMessage) (API, error)
type ApiMetricData ¶
type ApiMetricData struct {
Error *string `json:"error,omitempty"`
Data []ApiMetricDataEntry `json:"data,omitempty"`
From int64 `json:"from"`
To int64 `json:"to"`
}
type ApiMetricDataEntry ¶
type ApiQueryRequest ¶
type ApiQueryResponse ¶
type ApiQueryResponse struct {
Queries []ApiQuery `json:"queries,omitempty"`
Results [][]ApiMetricData `json:"results"`
}
type ErrorResponse ¶
type ErrorResponse struct {
// Statustext of Errorcode
Status string `json:"status"`
Error string `json:"error"` // Error Message
}
ErrorResponse model