// 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 ( "github.com/go-kratos/kratos-layout/internal/biz" "github.com/go-kratos/kratos-layout/internal/conf" "github.com/go-kratos/kratos-layout/internal/data" "github.com/go-kratos/kratos-layout/internal/server" "github.com/go-kratos/kratos-layout/internal/service" "github.com/go-kratos/kratos/v2" ) // Injectors from wire.go: // wireApp init kratos application. func wireApp(confServer *conf.Server, confData *conf.Data) (*kratos.App, func(), error) { dataData, cleanup, err := data.NewData(confData) if err != nil { return nil, nil, err } greeterRepo := data.NewGreeterRepo(dataData) greeterUsecase := biz.NewGreeterUsecase(greeterRepo) greeterService := service.NewGreeterService(greeterUsecase) httpServer := server.NewHTTPServer(confServer, greeterService) grpcServer := server.NewGRPCServer(confServer, greeterService) app := newApp(httpServer, grpcServer) return app, func() { cleanup() }, nil }