-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
28 lines (24 loc) · 782 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
package main
import (
_ "github.com/balcieren/go-monolithic-boilerplate/docs"
"github.com/balcieren/go-monolithic-boilerplate/pkg/infrastructure"
"go.uber.org/fx"
ownerApiV1 "github.com/balcieren/go-monolithic-boilerplate/app/owner/api/v1"
petApiV1 "github.com/balcieren/go-monolithic-boilerplate/app/pet/api/v1"
)
// @title Go-Monolithic-Boilerplate API Documentation
// @version 1.0
// @description This is a boilerplate for a monolithic application using Go.
// @host localhost:8000
// @BasePath /api
// @schemes http
func main() {
fx.New(
infrastructure.CommonModule(),
infrastructure.HTTPModule("go-monolithic-boilerplate"),
infrastructure.SwaggerModule(),
petApiV1.Module,
ownerApiV1.Module,
fx.Invoke(infrastructure.LaunchHTTPServer),
).Run()
}