Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kratos-layout
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizifeng
kratos-layout
Commits
cfbfb2f1
Commit
cfbfb2f1
authored
Jun 08, 2022
by
kzkzzzz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改全局log
parent
ae2e6415
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
wire_gen.go
cmd/server/wire_gen.go
+35
-0
No files found.
cmd/server/wire_gen.go
0 → 100644
View file @
cfbfb2f1
// 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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment