feat:#7 extracted ical-service in own microservice

This commit is contained in:
Elmar Kresse
2024-05-26 01:53:46 +02:00
parent ded7fc2894
commit 2f55076e36
25 changed files with 2515 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
package connector
import (
"github.com/gofiber/fiber/v3/client"
"time"
)
func RequestApi(path string) (*client.Response, error) {
var host = "http://localhost"
cc := client.New()
cc.SetTimeout(5 * time.Second)
// set retry to 0
response, err := cc.Get(host + path)
if err != nil {
return nil, err
}
return response, nil
}