feat: refactor go.mod.

This commit is contained in:
tx7do
2024-11-14 09:03:48 +08:00
parent 883b23dbbb
commit da4a21ce62
16 changed files with 2807 additions and 1701 deletions

View File

@@ -2,6 +2,7 @@ package bootstrap
import (
"fmt"
"github.com/tx7do/kratos-bootstrap/utils"
"github.com/go-kratos/kratos/v2"
"github.com/go-kratos/kratos/v2/log"
@@ -40,7 +41,7 @@ func NewApp(ll log.Logger, rr kratosRegistry.Registrar, srv ...transport.Server)
}
// DoBootstrap 执行引导
func DoBootstrap(serviceInfo *config.ServiceInfo) (*conf.Bootstrap, log.Logger, kratosRegistry.Registrar) {
func DoBootstrap(serviceInfo *utils.ServiceInfo) (*conf.Bootstrap, log.Logger, kratosRegistry.Registrar) {
// inject command flags
Flags := config.NewCommandFlags()
Flags.Init()

View File

@@ -10,15 +10,13 @@ replace (
github.com/tx7do/kratos-bootstrap/api => ../api
github.com/tx7do/kratos-bootstrap/cache/redis => ../cache/redis
github.com/tx7do/kratos-bootstrap/config => ../config
github.com/tx7do/kratos-bootstrap/logger => ../logger
github.com/tx7do/kratos-bootstrap/oss/minio => ../oss/minio
github.com/tx7do/kratos-bootstrap/registry => ../registry
github.com/tx7do/kratos-bootstrap/tracer => ../tracer
github.com/tx7do/kratos-bootstrap/rpc => ../rpc
github.com/tx7do/kratos-bootstrap/cache/redis => ../cache/redis
github.com/tx7do/kratos-bootstrap/oss/minio => ../oss/minio
)
require (