Remove HTTP server support and streamline config (#75)

The HTTP server-related code, documentation, and configurations have been removed as part of a shift towards prioritizing gRPC for service communication. This update includes deletions of HTTP host and port configs across various components, the manager HTTP API alongside its Swagger definition, and the removal of related scaffolding and utility code. This change simplifies the overall architecture and eliminates redundant HTTP support, focusing on optimizing gRPC performance and security features.

Signed-off-by: SammyOina <sammyoina@gmail.com>
This commit is contained in:
Sammy Kerata Oina
2024-02-07 13:03:46 +03:00
committed by GitHub
parent 6f42135ec0
commit 046b549079
20 changed files with 32 additions and 553 deletions
-9
View File
@@ -10,7 +10,6 @@ import (
"log/slog"
mglog "github.com/absmach/magistrala/logger"
"github.com/absmach/magistrala/pkg/uuid"
"github.com/mdlayher/vsock"
"github.com/ultravioletrs/cocos/agent"
"github.com/ultravioletrs/cocos/agent/api"
@@ -50,14 +49,6 @@ func main() {
return
}
if cfg.AgentConfig.InstanceID == "" {
cfg.AgentConfig.InstanceID, err = uuid.New().ID()
if err != nil {
log.Printf("Failed to generate instanceID: %s", err)
return
}
}
eventSvc, err := events.New(svcName, cfg.ID)
if err != nil {
log.Printf("failed to create events service %s", err.Error())