Commit cfbfb2f1 authored by kzkzzzz's avatar kzkzzzz

修改全局log

parent ae2e6415
// 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
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment