-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
41 lines (30 loc) · 948 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package main
import (
"context"
"github.com/driver005/gateway/config"
"github.com/driver005/gateway/registry"
// "github.com/gofiber/fiber/v2"
// "github.com/gofiber/fiber/v2/middleware/cors"
// "github.com/gofiber/fiber/v2/middleware/logger"
)
//Swagger: swag init -g main.go --parseDependency --parseInternal --parseDepth 1 --output docs/
var ctx = context.Background()
// @title Fiber Swagger Example API
// @version 2.0
// @description This is a sample server server.
// @termsOfService http://swagger.io/terms/
// @contact.name API Support
// @contact.url http://www.swagger.io/support
// @contact.email [email protected]
// @license.name Apache 2.0
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
// @host localhost
// @BasePath /api
// @schemes http
func main() {
o := make([]registry.OptionsModifier, 0)
o = append(o, registry.DisableMigration())
r := registry.New(ctx, o)
config.Init()
r.Setup()
}