You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
795 B
22 lines
795 B
// +build wireinject
|
|
|
|
// The build tag makes sure the stub is not built in the final build.
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/go-kratos/kratos/examples/blog/internal/biz"
|
|
"github.com/go-kratos/kratos/examples/blog/internal/conf"
|
|
"github.com/go-kratos/kratos/examples/blog/internal/data"
|
|
"github.com/go-kratos/kratos/examples/blog/internal/server"
|
|
"github.com/go-kratos/kratos/examples/blog/internal/service"
|
|
"github.com/go-kratos/kratos/v2"
|
|
"github.com/go-kratos/kratos/v2/log"
|
|
"github.com/google/wire"
|
|
"go.opentelemetry.io/otel/trace"
|
|
)
|
|
|
|
// initApp init kratos application.
|
|
func initApp(*conf.Server, *conf.Data, trace.TracerProvider, log.Logger) (*kratos.App, func(), error) {
|
|
panic(wire.Build(server.ProviderSet, data.ProviderSet, biz.ProviderSet, service.ProviderSet, newApp))
|
|
}
|
|
|