mirror of
https://github.com/emo2007/block-accounting.git
synced 2025-04-12 08:56:28 +00:00
23 lines
468 B
Go
23 lines
468 B
Go
//go:build wireinject
|
|
// +build wireinject
|
|
|
|
package factory
|
|
|
|
import (
|
|
"github.com/emochka2007/block-accounting/internal/pkg/config"
|
|
"github.com/emochka2007/block-accounting/internal/service"
|
|
"github.com/google/wire"
|
|
)
|
|
|
|
func ProvideService(c config.Config) (service.Service, func(), error) {
|
|
wire.Build(
|
|
provideUsersRepository,
|
|
provideLogger,
|
|
provideControllers,
|
|
provideRestServer,
|
|
service.NewService,
|
|
)
|
|
|
|
return &service.ServiceImpl{}, func() {}, nil
|
|
}
|