From e171078934a5f25123f7276366a5d48ffb3eab7f Mon Sep 17 00:00:00 2001 From: sivan <sivanduijn@gmail.com> Date: Tue, 6 Apr 2021 12:39:22 +0200 Subject: [PATCH] add db --- internal/request/request.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/request/request.go b/internal/request/request.go index f80cd8f..13bf42d 100644 --- a/internal/request/request.go +++ b/internal/request/request.go @@ -25,7 +25,7 @@ type GeneralFormat map[string]interface{} func SendAQLQuery(AQLQuery string) (*[]byte, error) { var queryResult []Document conn, err := http.NewConnection(http.ConnectionConfig{ - Endpoints: []string{"http://arangodb.database.svc.cluster.local:8529"}, + Endpoints: []string{"https://aae8f5c054da.arangodb.cloud:8529"}, }) if err != nil { log.Println("could not connect to database") // Handle error @@ -33,7 +33,7 @@ func SendAQLQuery(AQLQuery string) (*[]byte, error) { } c, err := driver.NewClient(driver.ClientConfig{ Connection: conn, - Authentication: driver.BasicAuthentication("root", "DikkeDraak"), + Authentication: driver.BasicAuthentication("root", "kXR0PFepIVm3EqgQ2MVc"), }) if err != nil { log.Println("Could not log in to the ArangoDB") // Handle error -- GitLab