Skip to content

Commit 1255eba

Browse files
committed
chore: update driver files
1 parent cb5e29d commit 1255eba

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ require (
77
github.com/docker/docker v24.0.6+incompatible
88
github.com/go-git/go-git/v5 v5.9.0
99
github.com/go-redis/redis/v8 v8.11.5
10-
github.com/gorilla/websocket v1.5.0
1110
github.com/labstack/echo/v4 v4.11.2
1211
github.com/mholt/acmez v1.2.0
1312
github.com/vektah/gqlparser/v2 v2.5.10
@@ -35,6 +34,7 @@ require (
3534
github.com/go-git/go-billy/v5 v5.5.0 // indirect
3635
github.com/go-redis/redis_rate/v9 v9.1.2 // indirect
3736
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
37+
github.com/gorilla/websocket v1.5.0 // indirect
3838
github.com/hashicorp/golang-lru v0.5.4 // indirect
3939
github.com/hashicorp/golang-lru/v2 v2.0.3 // indirect
4040
github.com/jackc/pgpassfile v1.0.0 // indirect

main.go

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
package main
22

33
import (
4+
"github.com/labstack/echo/v4"
5+
"github.com/swiftwave-org/swiftwave/swiftwave_manager"
6+
"github.com/swiftwave-org/swiftwave/swiftwave_manager/core"
47
"log"
58

69
"github.com/joho/godotenv"
7-
SERVER "github.com/swiftwave-org/swiftwave/server"
810
)
911

1012
func main() {
1113
err := godotenv.Load()
1214
if err != nil {
13-
log.Println("Error loading .env file. Ignoring")
15+
log.Println("WARN: error loading .env file. Ignoring")
1416
}
15-
server := SERVER.Server{}
16-
server.Init()
17-
server.Start()
17+
// Load the manager
18+
config := core.ServiceConfig{}
19+
manager := core.ServiceManager{}
20+
echoServer := echo.New()
21+
swiftwave_manager.Load(&config, &manager, echoServer)
22+
// Start the manager
23+
swiftwave_manager.StartServer(&config, &manager, echoServer)
1824
}

0 commit comments

Comments
 (0)