File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11package main
22
33import (
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
1012func 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}
You can’t perform that action at this time.
0 commit comments