feat(gateway): added first implement of the Gateway (MQTT, Influx, REST)

Signed-off-by: Klagarge <remi@heredero.ch>
This commit is contained in:
2025-04-14 22:39:47 +02:00
parent d33a6a1d02
commit e6ef490314
14 changed files with 928 additions and 0 deletions

41
gateway/src/docs/docs.go Normal file
View File

@@ -0,0 +1,41 @@
// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs
import "github.com/swaggo/swag"
const docTemplate = `{
"schemes": {{ marshal .Schemes }},
"swagger": "2.0",
"info": {
"description": "{{escape .Description}}",
"title": "{{.Title}}",
"contact": {},
"version": "{{.Version}}"
},
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {},
"securityDefinitions": {
"BasicAuth": {
"type": "basic"
}
}
}`
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "1.0",
Host: "rest.mse.kb28.ch",
BasePath: "/",
Schemes: []string{},
Title: "Swagger SoftwEng API",
Description: "REST API for the SoftwEng course in MSE",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
LeftDelim: "{{",
RightDelim: "}}",
}
func init() {
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
}

View File

@@ -0,0 +1,17 @@
{
"swagger": "2.0",
"info": {
"description": "REST API for the SoftwEng course in MSE",
"title": "Swagger SoftwEng API",
"contact": {},
"version": "1.0"
},
"host": "rest.mse.kb28.ch",
"basePath": "/",
"paths": {},
"securityDefinitions": {
"BasicAuth": {
"type": "basic"
}
}
}

View File

@@ -0,0 +1,12 @@
basePath: /
host: rest.mse.kb28.ch
info:
contact: {}
description: REST API for the SoftwEng course in MSE
title: Swagger SoftwEng API
version: "1.0"
paths: {}
securityDefinitions:
BasicAuth:
type: basic
swagger: "2.0"