-
Notifications
You must be signed in to change notification settings - Fork 0
/
wire_gen.go
31 lines (26 loc) · 1.32 KB
/
wire_gen.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
// Code generated by Wire. DO NOT EDIT.
//go:generate go run github.com/google/wire/cmd/wire
//go:build !wireinject
// +build !wireinject
package main
import (
service2 "bitbucket.org/chattigodev/chattigo-golang-library/pkg/deserializer"
"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"
)
// Injectors from wire.go:
func InitializeServer() config.ContainerService {
restyClient := resty.New()
serializerService := service.NewSerializerServiceImpl()
deserializerService := service2.NewDeserializerServiceImpl()
messageChannelClient := client.NewMessageChannelClientImpl(restyClient, deserializerService)
messageChannelService := service3.NewMessageChannelServiceIml(messageChannelClient)
healthHandler := handler.NewHealthHandler(serializerService, messageChannelService)
messageChannelHandler := handler.NewMessageChannelHandler(serializerService, deserializerService, messageChannelService)
containerService := config.NewContainerServiceImp(restyClient, healthHandler, messageChannelHandler)
return containerService
}