Merge branch 'refs/heads/development' into 49-add-htwkarte-linkout-at-ics-event-info

# Conflicts:
#	services/ical/main.go
#	services/ical/service/ical/ical.go
#	services/ical/service/routes.go
This commit is contained in:
Elmar Kresse
2024-10-17 10:54:29 +02:00
26 changed files with 883 additions and 40 deletions

View File

@@ -39,8 +39,15 @@ func main() {
}
grpcClient := grpc.ConnectGRPCServer(host)
// Close the grpc connection when the main function ends
defer grpc.CloseGRPCServer(grpcClient)
// Log the grpc connection
// Test the connection to the grpc server
grpcClient.Connect()
slog.Info("GRPC connection state", "state", grpcClient.GetState())
// Initialize a new Fiber app
webdavRequestMethods := []string{"PROPFIND", "MKCOL", "COPY", "MOVE"}
@@ -64,7 +71,7 @@ func main() {
fiberApp.Use(logger.New(
logger.Config{
Format: "[${time}] ${status} - ${latency} ${method} ${path} ${error}\n",
Format: "${time} | ${status} | ${latency} | ${method} - ${path} | ${error}\n",
TimeFormat: "02-01-2006 15:04:05",
},
))