Browse Source

utils移动到common库下的一个包中

gitlink
Sydonian 2 years ago
parent
commit
1221c1ca3c
6 changed files with 12 additions and 15 deletions
  1. +0
    -3
      go.mod
  2. +3
    -3
      internal/config/config.go
  3. +1
    -1
      internal/services/client_command_ec.go
  4. +5
    -5
      internal/services/object.go
  5. +1
    -1
      internal/services/service.go
  6. +2
    -2
      main.go

+ 0
- 3
go.mod View File

@@ -11,7 +11,6 @@ require (
gitlink.org.cn/cloudream/ec v0.0.0
gitlink.org.cn/cloudream/proto v0.0.0
gitlink.org.cn/cloudream/rabbitmq v0.0.0
gitlink.org.cn/cloudream/utils v0.0.0
google.golang.org/grpc v1.54.0
)

@@ -69,8 +68,6 @@ require (
)

// 运行go mod tidy时需要将下面几行取消注释
// replace gitlink.org.cn/cloudream/utils => ../utils
//
// replace gitlink.org.cn/cloudream/rabbitmq => ../rabbitmq
//
// replace gitlink.org.cn/cloudream/ec => ../ec


+ 3
- 3
internal/config/config.go View File

@@ -1,10 +1,10 @@
package config

import (
"gitlink.org.cn/cloudream/common/utils/config"
"gitlink.org.cn/cloudream/common/utils/ipfs"
"gitlink.org.cn/cloudream/common/utils/logger"
racfg "gitlink.org.cn/cloudream/rabbitmq/config"
"gitlink.org.cn/cloudream/utils/config"
"gitlink.org.cn/cloudream/utils/ipfs"
"gitlink.org.cn/cloudream/utils/logger"
)

type Config struct {


+ 1
- 1
internal/services/client_command_ec.go View File

@@ -10,8 +10,8 @@ import (
"sync"

"gitlink.org.cn/cloudream/client/internal/config"
"gitlink.org.cn/cloudream/common/utils"
"gitlink.org.cn/cloudream/ec"
"gitlink.org.cn/cloudream/utils"
)

func EcWrite(localFilePath string, bucketID int, objectName string, ecName string) error {


+ 5
- 5
internal/services/object.go View File

@@ -7,17 +7,17 @@ import (

"gitlink.org.cn/cloudream/client/internal/config"
"gitlink.org.cn/cloudream/common/consts"
mygrpc "gitlink.org.cn/cloudream/common/utils/grpc"
myio "gitlink.org.cn/cloudream/common/utils/io"
log "gitlink.org.cn/cloudream/common/utils/logger"
serder "gitlink.org.cn/cloudream/common/utils/serder"
mysort "gitlink.org.cn/cloudream/common/utils/sort"
"gitlink.org.cn/cloudream/db/model"
agentcaller "gitlink.org.cn/cloudream/proto"
agtcli "gitlink.org.cn/cloudream/rabbitmq/client/agent"
ramsg "gitlink.org.cn/cloudream/rabbitmq/message"
agtmsg "gitlink.org.cn/cloudream/rabbitmq/message/agent"
coormsg "gitlink.org.cn/cloudream/rabbitmq/message/coordinator"
mygrpc "gitlink.org.cn/cloudream/utils/grpc"
myio "gitlink.org.cn/cloudream/utils/io"
log "gitlink.org.cn/cloudream/utils/logger"
serder "gitlink.org.cn/cloudream/utils/serder"
mysort "gitlink.org.cn/cloudream/utils/sort"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"



+ 1
- 1
internal/services/service.go View File

@@ -1,8 +1,8 @@
package services

import (
"gitlink.org.cn/cloudream/common/utils/ipfs"
racli "gitlink.org.cn/cloudream/rabbitmq/client/coordinator"
"gitlink.org.cn/cloudream/utils/ipfs"
)

type Service struct {


+ 2
- 2
main.go View File

@@ -9,9 +9,9 @@ import (
"gitlink.org.cn/cloudream/client/internal/cmdline"
"gitlink.org.cn/cloudream/client/internal/config"
"gitlink.org.cn/cloudream/client/internal/services"
"gitlink.org.cn/cloudream/common/utils/ipfs"
log "gitlink.org.cn/cloudream/common/utils/logger"
coorcli "gitlink.org.cn/cloudream/rabbitmq/client/coordinator"
"gitlink.org.cn/cloudream/utils/ipfs"
log "gitlink.org.cn/cloudream/utils/logger"
)

func main() {


Loading…
Cancel
Save