-
Notifications
You must be signed in to change notification settings - Fork 0
/
wire.go
30 lines (26 loc) · 924 Bytes
/
wire.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
//go:build InitializeServer
// +build InitializeServer
package main
import (
service "bitbucket.org/chattigodev/chattigo-golang-library/pkg/deserializer"
service2 "bitbucket.org/chattigodev/chattigo-golang-library/pkg/serializer"
"github.com/castillofranciscodaniel/golang-example/config"
"github.com/castillofranciscodaniel/golang-example/pkg/client"
"github.com/castillofranciscodaniel/golang-example/pkg/handler"
service3 "github.com/castillofranciscodaniel/golang-example/pkg/service"
"github.com/go-resty/resty/v2"
"github.com/google/wire"
)
func InitializeServer() config.ContainerService {
wire.Build(
service.NewDeserializerServiceImpl,
service2.NewSerializerServiceImpl,
resty.New,
client.NewMessageChannelClientImpl,
service3.NewMessageChannelServiceIml,
handler.NewHealthHandler,
handler.NewMessageChannelHandler,
config.NewContainerServiceImp,
)
return config.ContainerService{}
}