30 lines
970 B
Go
30 lines
970 B
Go
//go:build wireinject
|
|
// +build wireinject
|
|
|
|
// The build tag makes sure the stub is not built in the final build.
|
|
|
|
package main
|
|
|
|
import (
|
|
"eino-project/internal/ai"
|
|
"eino-project/internal/biz"
|
|
"eino-project/internal/conf"
|
|
contextpkg "eino-project/internal/context"
|
|
"eino-project/internal/data"
|
|
"eino-project/internal/data/repoimpl"
|
|
"eino-project/internal/monitor"
|
|
"eino-project/internal/server"
|
|
"eino-project/internal/service"
|
|
"eino-project/internal/session"
|
|
"eino-project/internal/vector"
|
|
|
|
"github.com/go-kratos/kratos/v2"
|
|
"github.com/go-kratos/kratos/v2/log"
|
|
"github.com/google/wire"
|
|
)
|
|
|
|
// wireApp init kratos application.
|
|
func wireApp(*conf.Server, *conf.Data, *conf.Bootstrap, log.Logger) (*kratos.App, func(), error) {
|
|
panic(wire.Build(server.ProviderSet, data.ProviderSet, repoimpl.ProviderSet, biz.ProviderSet, service.ProviderSet, ai.ProviderSet, session.ProviderSet, vector.ProviderSet, monitor.ProviderSet, contextpkg.ProviderSet, newApp))
|
|
}
|