-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.go
25 lines (19 loc) · 710 Bytes
/
server.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
package main
import (
"github.com/rulanugrh/orion/handler"
"github.com/rulanugrh/orion/repository"
"github.com/rulanugrh/orion/routes"
"github.com/rulanugrh/orion/services"
)
func main() {
commentRepo := repository.NewCommentRepository()
commentServ := services.NewCommentService(commentRepo)
commentHandler := handler.NewCommentHandler(commentServ)
userRepo := repository.NewUserRepository()
userServ := services.NewUserServices(userRepo)
userHandler := handler.NewUserHandler(userServ)
eventRepo := repository.NewEventRepository()
eventServ := services.NewEventServices(eventRepo)
eventHandler := handler.NewEventHandler(eventServ)
routes.Run(eventHandler, commentHandler, userHandler)
}