diff --git a/client/client.go b/client/client.go index 9f6c3e6..f74cf0f 100644 --- a/client/client.go +++ b/client/client.go @@ -1,8 +1,8 @@ package client import ( - "gitee.com/timedb/wheatCache/client/middle" - "gitee.com/timedb/wheatCache/pkg/proto" + "gitee.com/wheat-os/wheatCache/client/middle" + "gitee.com/wheat-os/wheatCache/pkg/proto" "google.golang.org/grpc" ) diff --git a/client/client_test.go b/client/client_test.go index 7284f4f..897b69d 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "gitee.com/timedb/wheatCache/client/middle" - "gitee.com/timedb/wheatCache/pkg/proto" + "gitee.com/wheat-os/wheatCache/client/middle" + "gitee.com/wheat-os/wheatCache/pkg/proto" "github.com/stretchr/testify/require" ) diff --git a/client/middle/middle.go b/client/middle/middle.go index 69f3ba4..465820a 100644 --- a/client/middle/middle.go +++ b/client/middle/middle.go @@ -3,7 +3,7 @@ package middle import ( "context" - "gitee.com/timedb/wheatCache/pkg/proto" + "gitee.com/wheat-os/wheatCache/pkg/proto" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/metadata" diff --git a/doc/开发规范/单元测试.md b/doc/开发规范/单元测试.md index 6c326c7..64abe9e 100644 --- a/doc/开发规范/单元测试.md +++ b/doc/开发规范/单元测试.md @@ -7,9 +7,9 @@ package dao import ( "testing" - _ "gitee.com/timedb/wheatCache/conf" - "gitee.com/timedb/wheatCache/pkg/lru" - "gitee.com/timedb/wheatCache/pkg/proto" + _ "gitee.com/wheat-os/wheatCache/conf" + "gitee.com/wheat-os/wheatCache/pkg/lru" + "gitee.com/wheat-os/wheatCache/pkg/proto" "github.com/stretchr/testify/require" ) diff --git a/gateway/cmd/root.go b/gateway/cmd/root.go index cb68456..a3deb3a 100644 --- a/gateway/cmd/root.go +++ b/gateway/cmd/root.go @@ -4,12 +4,12 @@ import ( "fmt" "net" - _ "gitee.com/timedb/wheatCache/conf" - wheatCodec "gitee.com/timedb/wheatCache/gateway/codec" - "gitee.com/timedb/wheatCache/gateway/proxy" - "gitee.com/timedb/wheatCache/gateway/transport" - "gitee.com/timedb/wheatCache/pkg/logx" - "gitee.com/timedb/wheatCache/pkg/util/server" + _ "gitee.com/wheat-os/wheatCache/conf" + wheatCodec "gitee.com/wheat-os/wheatCache/gateway/codec" + "gitee.com/wheat-os/wheatCache/gateway/proxy" + "gitee.com/wheat-os/wheatCache/gateway/transport" + "gitee.com/wheat-os/wheatCache/pkg/logx" + "gitee.com/wheat-os/wheatCache/pkg/util/server" "github.com/spf13/cobra" "github.com/spf13/viper" "google.golang.org/grpc" diff --git a/gateway/main.go b/gateway/main.go index f77a8ee..eee025b 100644 --- a/gateway/main.go +++ b/gateway/main.go @@ -15,7 +15,7 @@ limitations under the License. */ package main -import "gitee.com/timedb/wheatCache/gateway/cmd" +import "gitee.com/wheat-os/wheatCache/gateway/cmd" func main() { cmd.Execute() diff --git a/gateway/proxy/define.go b/gateway/proxy/define.go index 42101fa..e100c5c 100644 --- a/gateway/proxy/define.go +++ b/gateway/proxy/define.go @@ -3,7 +3,7 @@ package proxy import ( "context" - "gitee.com/timedb/wheatCache/gateway/transport" + "gitee.com/wheat-os/wheatCache/gateway/transport" "google.golang.org/grpc" ) diff --git a/gateway/proxy/director.go b/gateway/proxy/director.go index 7fcd937..0215c8b 100644 --- a/gateway/proxy/director.go +++ b/gateway/proxy/director.go @@ -3,9 +3,9 @@ package proxy import ( "context" - "gitee.com/timedb/wheatCache/gateway/codec" - "gitee.com/timedb/wheatCache/gateway/transport" - "gitee.com/timedb/wheatCache/pkg/proto" + "gitee.com/wheat-os/wheatCache/gateway/codec" + "gitee.com/wheat-os/wheatCache/gateway/transport" + "gitee.com/wheat-os/wheatCache/pkg/proto" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/metadata" diff --git a/gateway/proxy/proxy.go b/gateway/proxy/proxy.go index e419433..e317a33 100644 --- a/gateway/proxy/proxy.go +++ b/gateway/proxy/proxy.go @@ -4,8 +4,8 @@ import ( "context" "io" - wheatCodec "gitee.com/timedb/wheatCache/gateway/codec" - "gitee.com/timedb/wheatCache/gateway/transport" + wheatCodec "gitee.com/wheat-os/wheatCache/gateway/codec" + "gitee.com/wheat-os/wheatCache/gateway/transport" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/gateway/transport/hash.go b/gateway/transport/hash.go index 8c0e74d..329de74 100644 --- a/gateway/transport/hash.go +++ b/gateway/transport/hash.go @@ -5,7 +5,7 @@ import ( "sort" "strconv" - "gitee.com/timedb/wheatCache/pkg/errorx" + "gitee.com/wheat-os/wheatCache/pkg/errorx" ) type HashFunc func(data []byte) uint32 diff --git a/go.mod b/go.mod index 3e13253..2ae5d98 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gitee.com/timedb/wheatCache +module gitee.com/wheat-os/wheatCache go 1.16 diff --git a/pkg/event/driver.go b/pkg/event/driver.go index 51244a4..44ef385 100644 --- a/pkg/event/driver.go +++ b/pkg/event/driver.go @@ -4,7 +4,7 @@ import ( "sync/atomic" "time" - "gitee.com/timedb/wheatCache/pkg/errorx" + "gitee.com/wheat-os/wheatCache/pkg/errorx" ) // 事件 poll 降低 new 对象的频率 diff --git a/pkg/logx/define.go b/pkg/logx/define.go index d274e3b..362bb3b 100644 --- a/pkg/logx/define.go +++ b/pkg/logx/define.go @@ -2,9 +2,10 @@ package logx import ( "context" - "gitee.com/timedb/wheatCache/pkg/event" - "github.com/spf13/viper" "sync" + + "gitee.com/wheat-os/wheatCache/pkg/event" + "github.com/spf13/viper" ) type LogLevelState int8 diff --git a/pkg/logx/logx.go b/pkg/logx/logx.go index 17c5b62..9378e86 100644 --- a/pkg/logx/logx.go +++ b/pkg/logx/logx.go @@ -8,8 +8,8 @@ import ( "strings" "time" - "gitee.com/timedb/wheatCache/pkg/event" - middleMsg "gitee.com/timedb/wheatCache/pkg/middle-msg" + "gitee.com/wheat-os/wheatCache/pkg/event" + middleMsg "gitee.com/wheat-os/wheatCache/pkg/middle-msg" ) func With(ctx context.Context, p event.ProduceInterface) *upLogger { diff --git a/pkg/logx/logx_test.go b/pkg/logx/logx_test.go index a1f0b4b..8bedbfb 100644 --- a/pkg/logx/logx_test.go +++ b/pkg/logx/logx_test.go @@ -2,9 +2,10 @@ package logx import ( "context" - _ "gitee.com/timedb/wheatCache/conf" - "gitee.com/timedb/wheatCache/pkg/event" "testing" + + _ "gitee.com/wheat-os/wheatCache/conf" + "gitee.com/wheat-os/wheatCache/pkg/event" ) func TestStd(t *testing.T) { diff --git a/pkg/lru/define.go b/pkg/lru/define.go index ce392c4..d5d3dd3 100644 --- a/pkg/lru/define.go +++ b/pkg/lru/define.go @@ -4,8 +4,8 @@ import ( "sync" "time" - "gitee.com/timedb/wheatCache/pkg/proto" - "gitee.com/timedb/wheatCache/pkg/structure" + "gitee.com/wheat-os/wheatCache/pkg/proto" + "gitee.com/wheat-os/wheatCache/pkg/structure" ) type SingleWorkFunc func() interface{} diff --git a/pkg/lru/lru.go b/pkg/lru/lru.go index cb5c9b0..951d2dc 100644 --- a/pkg/lru/lru.go +++ b/pkg/lru/lru.go @@ -4,13 +4,13 @@ import ( "container/list" "sync/atomic" - _ "gitee.com/timedb/wheatCache/conf" - "gitee.com/timedb/wheatCache/pkg/errorx" - "gitee.com/timedb/wheatCache/pkg/event" - "gitee.com/timedb/wheatCache/pkg/middle" - "gitee.com/timedb/wheatCache/pkg/proto" - "gitee.com/timedb/wheatCache/pkg/structure" - "gitee.com/timedb/wheatCache/pkg/util" + _ "gitee.com/wheat-os/wheatCache/conf" + "gitee.com/wheat-os/wheatCache/pkg/errorx" + "gitee.com/wheat-os/wheatCache/pkg/event" + "gitee.com/wheat-os/wheatCache/pkg/middle" + "gitee.com/wheat-os/wheatCache/pkg/proto" + "gitee.com/wheat-os/wheatCache/pkg/structure" + "gitee.com/wheat-os/wheatCache/pkg/util" "github.com/spf13/viper" ) diff --git a/pkg/lru/lru_test.go b/pkg/lru/lru_test.go index 369e42a..2bed8d8 100644 --- a/pkg/lru/lru_test.go +++ b/pkg/lru/lru_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "gitee.com/timedb/wheatCache/pkg/proto" - "gitee.com/timedb/wheatCache/pkg/structure/stringx" + "gitee.com/wheat-os/wheatCache/pkg/proto" + "gitee.com/wheat-os/wheatCache/pkg/structure/stringx" "github.com/stretchr/testify/require" ) diff --git a/pkg/lru/ttl.go b/pkg/lru/ttl.go index a0933d8..189aa3f 100644 --- a/pkg/lru/ttl.go +++ b/pkg/lru/ttl.go @@ -4,8 +4,8 @@ import ( "sync" "time" - "gitee.com/timedb/wheatCache/pkg/proto" - "gitee.com/timedb/wheatCache/pkg/util/skiplist" + "gitee.com/wheat-os/wheatCache/pkg/proto" + "gitee.com/wheat-os/wheatCache/pkg/util/skiplist" ) // lru 的 ttl 管理器 diff --git a/pkg/lru/ttl_test.go b/pkg/lru/ttl_test.go index 2f67610..e1483ca 100644 --- a/pkg/lru/ttl_test.go +++ b/pkg/lru/ttl_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "gitee.com/timedb/wheatCache/pkg/proto" - "gitee.com/timedb/wheatCache/pkg/structure/stringx" + "gitee.com/wheat-os/wheatCache/pkg/proto" + "gitee.com/wheat-os/wheatCache/pkg/structure/stringx" "github.com/stretchr/testify/require" ) diff --git a/pkg/lru/woker_test.go b/pkg/lru/woker_test.go index 524dcbd..c80bee2 100644 --- a/pkg/lru/woker_test.go +++ b/pkg/lru/woker_test.go @@ -5,10 +5,10 @@ import ( "testing" "time" - "gitee.com/timedb/wheatCache/pkg/event" - "gitee.com/timedb/wheatCache/pkg/logx" - "gitee.com/timedb/wheatCache/pkg/proto" - "gitee.com/timedb/wheatCache/pkg/structure/stringx" + "gitee.com/wheat-os/wheatCache/pkg/event" + "gitee.com/wheat-os/wheatCache/pkg/logx" + "gitee.com/wheat-os/wheatCache/pkg/proto" + "gitee.com/wheat-os/wheatCache/pkg/structure/stringx" "github.com/stretchr/testify/require" ) diff --git a/pkg/lru/worker.go b/pkg/lru/worker.go index 01373cd..674d5e1 100644 --- a/pkg/lru/worker.go +++ b/pkg/lru/worker.go @@ -4,10 +4,10 @@ import ( "context" "time" - "gitee.com/timedb/wheatCache/pkg/errorx" - "gitee.com/timedb/wheatCache/pkg/event" - "gitee.com/timedb/wheatCache/pkg/logx" - mMsg "gitee.com/timedb/wheatCache/pkg/middle-msg" + "gitee.com/wheat-os/wheatCache/pkg/errorx" + "gitee.com/wheat-os/wheatCache/pkg/event" + "gitee.com/wheat-os/wheatCache/pkg/logx" + mMsg "gitee.com/wheat-os/wheatCache/pkg/middle-msg" ) func (lru *SingleCache) lruSingleWork() { diff --git a/pkg/middle-msg/define.go b/pkg/middle-msg/define.go index dd3c3a9..7872962 100644 --- a/pkg/middle-msg/define.go +++ b/pkg/middle-msg/define.go @@ -3,8 +3,8 @@ package middlemsg import ( "context" - "gitee.com/timedb/wheatCache/pkg/errorx" - "gitee.com/timedb/wheatCache/pkg/event" + "gitee.com/wheat-os/wheatCache/pkg/errorx" + "gitee.com/wheat-os/wheatCache/pkg/event" ) const ( diff --git a/pkg/middle/middleware.go b/pkg/middle/middleware.go index 44a1239..50ba999 100644 --- a/pkg/middle/middleware.go +++ b/pkg/middle/middleware.go @@ -1,10 +1,10 @@ package middle import ( - _ "gitee.com/timedb/wheatCache/conf" - "gitee.com/timedb/wheatCache/pkg/event" - "gitee.com/timedb/wheatCache/plugins" - "gitee.com/timedb/wheatCache/plugins/config" + _ "gitee.com/wheat-os/wheatCache/conf" + "gitee.com/wheat-os/wheatCache/pkg/event" + "gitee.com/wheat-os/wheatCache/plugins" + "gitee.com/wheat-os/wheatCache/plugins/config" "github.com/spf13/viper" ) diff --git a/pkg/middle/worker.go b/pkg/middle/worker.go index 6673e33..b4a8a5c 100644 --- a/pkg/middle/worker.go +++ b/pkg/middle/worker.go @@ -3,8 +3,8 @@ package middle import ( "context" - "gitee.com/timedb/wheatCache/pkg/logx" - middleMsg "gitee.com/timedb/wheatCache/pkg/middle-msg" + "gitee.com/wheat-os/wheatCache/pkg/logx" + middleMsg "gitee.com/wheat-os/wheatCache/pkg/middle-msg" ) func (m *MiddleWare) startWork() { diff --git a/pkg/middle/worker_test.go b/pkg/middle/worker_test.go index 1db20bf..f90c809 100644 --- a/pkg/middle/worker_test.go +++ b/pkg/middle/worker_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - "gitee.com/timedb/wheatCache/pkg/event" - middleMsg "gitee.com/timedb/wheatCache/pkg/middle-msg" + "gitee.com/wheat-os/wheatCache/pkg/event" + middleMsg "gitee.com/wheat-os/wheatCache/pkg/middle-msg" ) func Test_middleware_loadPlugins(t *testing.T) { diff --git a/pkg/structure/listx/listx.go b/pkg/structure/listx/listx.go index 552de2b..cb2bae1 100644 --- a/pkg/structure/listx/listx.go +++ b/pkg/structure/listx/listx.go @@ -1,8 +1,8 @@ package listx import ( - "gitee.com/timedb/wheatCache/pkg/errorx" - "gitee.com/timedb/wheatCache/pkg/structure" + "gitee.com/wheat-os/wheatCache/pkg/errorx" + "gitee.com/wheat-os/wheatCache/pkg/structure" ) /* diff --git a/pkg/structure/stringx/string.go b/pkg/structure/stringx/string.go index 0bbcb74..d85f300 100644 --- a/pkg/structure/stringx/string.go +++ b/pkg/structure/stringx/string.go @@ -3,8 +3,8 @@ package stringx import ( "strconv" - "gitee.com/timedb/wheatCache/pkg/errorx" - "gitee.com/timedb/wheatCache/pkg/structure" + "gitee.com/wheat-os/wheatCache/pkg/errorx" + "gitee.com/wheat-os/wheatCache/pkg/structure" ) type StringSingle struct { diff --git a/pkg/structure/stringx/string_test.go b/pkg/structure/stringx/string_test.go index 1e77857..f8cecf1 100644 --- a/pkg/structure/stringx/string_test.go +++ b/pkg/structure/stringx/string_test.go @@ -5,7 +5,7 @@ import ( "testing" "unsafe" - "gitee.com/timedb/wheatCache/pkg/structure" + "gitee.com/wheat-os/wheatCache/pkg/structure" "github.com/stretchr/testify/require" ) diff --git a/pkg/structure/value.go b/pkg/structure/value.go index 2b101b4..ea779fd 100644 --- a/pkg/structure/value.go +++ b/pkg/structure/value.go @@ -6,7 +6,7 @@ import ( "math" "strconv" - "gitee.com/timedb/wheatCache/pkg/errorx" + "gitee.com/wheat-os/wheatCache/pkg/errorx" ) // Value 提供一个基础的 动态类型 diff --git a/pkg/util/memory.go b/pkg/util/memory.go index cc63f53..507fb9b 100644 --- a/pkg/util/memory.go +++ b/pkg/util/memory.go @@ -5,7 +5,7 @@ import ( "strconv" "strings" - "gitee.com/timedb/wheatCache/pkg/errorx" + "gitee.com/wheat-os/wheatCache/pkg/errorx" ) // ParseSizeToBit diff --git a/pkg/util/server/os.go b/pkg/util/server/os.go index 20f368c..cc4b3b1 100644 --- a/pkg/util/server/os.go +++ b/pkg/util/server/os.go @@ -5,7 +5,7 @@ import ( "os/signal" "syscall" - "gitee.com/timedb/wheatCache/pkg/logx" + "gitee.com/wheat-os/wheatCache/pkg/logx" "google.golang.org/grpc" ) diff --git a/pkg/util/skiplist/skiplist_test.go b/pkg/util/skiplist/skiplist_test.go index 7161c3e..07f176a 100644 --- a/pkg/util/skiplist/skiplist_test.go +++ b/pkg/util/skiplist/skiplist_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "gitee.com/timedb/wheatCache/pkg/logx" + "gitee.com/wheat-os/wheatCache/pkg/logx" "github.com/stretchr/testify/require" ) diff --git a/plugins/config/middle.gen.go b/plugins/config/middle.gen.go index c989fd7..53dea64 100644 --- a/plugins/config/middle.gen.go +++ b/plugins/config/middle.gen.go @@ -4,9 +4,9 @@ package config import ( - "gitee.com/timedb/wheatCache/plugins" + "gitee.com/wheat-os/wheatCache/plugins" - mockPlugin "gitee.com/timedb/wheatCache/plugins/mock-plugin" + mockPlugin "gitee.com/wheat-os/wheatCache/plugins/mock-plugin" ) func GetMiddlewareMap() map[string]plugins.PluginInterface { diff --git a/plugins/config/middle.template b/plugins/config/middle.template index b90bd12..2025ffe 100644 --- a/plugins/config/middle.template +++ b/plugins/config/middle.template @@ -4,9 +4,9 @@ package config import ( - "gitee.com/timedb/wheatCache/plugins" + "gitee.com/wheat-os/wheatCache/plugins" {%for dir in dirs %} - {{dir[0]}} "gitee.com/timedb/wheatCache/plugins/{{dir[1]}}" + {{dir[0]}} "gitee.com/wheat-os/wheatCache/plugins/{{dir[1]}}" {%- endfor%} ) diff --git a/plugins/mock-plugin/mock.go b/plugins/mock-plugin/mock.go index 07ad8e5..69a726f 100644 --- a/plugins/mock-plugin/mock.go +++ b/plugins/mock-plugin/mock.go @@ -5,8 +5,8 @@ import ( "net/http" _ "net/http/pprof" - _ "gitee.com/timedb/wheatCache/conf" - "gitee.com/timedb/wheatCache/pkg/logx" + _ "gitee.com/wheat-os/wheatCache/conf" + "gitee.com/wheat-os/wheatCache/pkg/logx" "github.com/spf13/viper" ) diff --git a/storage/cmd/root.go b/storage/cmd/root.go index 646fd64..9affc90 100644 --- a/storage/cmd/root.go +++ b/storage/cmd/root.go @@ -6,12 +6,12 @@ import ( "log" "net" - "gitee.com/timedb/wheatCache/storage/service" + "gitee.com/wheat-os/wheatCache/storage/service" - _ "gitee.com/timedb/wheatCache/conf" - "gitee.com/timedb/wheatCache/pkg/logx" - "gitee.com/timedb/wheatCache/pkg/proto" - "gitee.com/timedb/wheatCache/pkg/util/server" + _ "gitee.com/wheat-os/wheatCache/conf" + "gitee.com/wheat-os/wheatCache/pkg/logx" + "gitee.com/wheat-os/wheatCache/pkg/proto" + "gitee.com/wheat-os/wheatCache/pkg/util/server" "github.com/spf13/cobra" "github.com/spf13/viper" "google.golang.org/grpc" diff --git a/storage/dao/dao.go b/storage/dao/dao.go index de70569..ccdf1bb 100644 --- a/storage/dao/dao.go +++ b/storage/dao/dao.go @@ -1,7 +1,7 @@ package dao import ( - "gitee.com/timedb/wheatCache/pkg/lru" + "gitee.com/wheat-os/wheatCache/pkg/lru" ) type Dao struct { diff --git a/storage/dao/dao_test.go b/storage/dao/dao_test.go index 99cc981..1909f2d 100644 --- a/storage/dao/dao_test.go +++ b/storage/dao/dao_test.go @@ -1,5 +1,5 @@ package dao import ( - _ "gitee.com/timedb/wheatCache/conf" + _ "gitee.com/wheat-os/wheatCache/conf" ) diff --git a/storage/dao/interface.gen.go b/storage/dao/interface.gen.go index b64be1b..5914ce5 100644 --- a/storage/dao/interface.gen.go +++ b/storage/dao/interface.gen.go @@ -3,7 +3,7 @@ package dao -import "gitee.com/timedb/wheatCache/pkg/proto" +import "gitee.com/wheat-os/wheatCache/pkg/proto" type Interface interface { LIndex(*proto.BaseKey, int32) (*proto.LIndexResponse, error) diff --git a/storage/dao/listx.go b/storage/dao/listx.go index 85615f6..2423a58 100644 --- a/storage/dao/listx.go +++ b/storage/dao/listx.go @@ -1,10 +1,10 @@ package dao import ( - "gitee.com/timedb/wheatCache/pkg/errorx" - "gitee.com/timedb/wheatCache/pkg/proto" - "gitee.com/timedb/wheatCache/pkg/structure" - "gitee.com/timedb/wheatCache/pkg/structure/listx" + "gitee.com/wheat-os/wheatCache/pkg/errorx" + "gitee.com/wheat-os/wheatCache/pkg/proto" + "gitee.com/wheat-os/wheatCache/pkg/structure" + "gitee.com/wheat-os/wheatCache/pkg/structure/listx" ) func (d *Dao) LIndex(key *proto.BaseKey, index int32) (*proto.LIndexResponse, error) { diff --git a/storage/dao/stringx.go b/storage/dao/stringx.go index f6e6296..21cadf9 100644 --- a/storage/dao/stringx.go +++ b/storage/dao/stringx.go @@ -1,10 +1,10 @@ package dao import ( - "gitee.com/timedb/wheatCache/pkg/errorx" - "gitee.com/timedb/wheatCache/pkg/proto" - "gitee.com/timedb/wheatCache/pkg/structure" - "gitee.com/timedb/wheatCache/pkg/structure/stringx" + "gitee.com/wheat-os/wheatCache/pkg/errorx" + "gitee.com/wheat-os/wheatCache/pkg/proto" + "gitee.com/wheat-os/wheatCache/pkg/structure" + "gitee.com/wheat-os/wheatCache/pkg/structure/stringx" ) // stringx 相关的方法 diff --git a/storage/main.go b/storage/main.go index 15638de..d96a48a 100644 --- a/storage/main.go +++ b/storage/main.go @@ -16,7 +16,7 @@ limitations under the License. package main import ( - "gitee.com/timedb/wheatCache/storage/cmd" + "gitee.com/wheat-os/wheatCache/storage/cmd" ) func main() { diff --git a/storage/persisted/aof.go b/storage/persisted/aof.go index 60b6cd4..49f7da4 100644 --- a/storage/persisted/aof.go +++ b/storage/persisted/aof.go @@ -6,8 +6,8 @@ import ( "sync/atomic" "time" - "gitee.com/timedb/wheatCache/pkg/errorx" - "gitee.com/timedb/wheatCache/pkg/logx" + "gitee.com/wheat-os/wheatCache/pkg/errorx" + "gitee.com/wheat-os/wheatCache/pkg/logx" protobuf "google.golang.org/protobuf/proto" ) diff --git a/storage/persisted/aof_test.go b/storage/persisted/aof_test.go index 7dbd997..0f4c493 100644 --- a/storage/persisted/aof_test.go +++ b/storage/persisted/aof_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "gitee.com/timedb/wheatCache/pkg/proto" + "gitee.com/wheat-os/wheatCache/pkg/proto" "github.com/stretchr/testify/require" ) diff --git a/storage/persisted/codec.gen.go b/storage/persisted/codec.gen.go index 7cafce2..faf168b 100644 --- a/storage/persisted/codec.gen.go +++ b/storage/persisted/codec.gen.go @@ -7,8 +7,8 @@ import ( "encoding/hex" "fmt" - "gitee.com/timedb/wheatCache/pkg/errorx" - "gitee.com/timedb/wheatCache/pkg/proto" + "gitee.com/wheat-os/wheatCache/pkg/errorx" + "gitee.com/wheat-os/wheatCache/pkg/proto" protobuf "google.golang.org/protobuf/proto" ) diff --git a/storage/service/single.go b/storage/service/single.go index dc8ac99..499e775 100644 --- a/storage/service/single.go +++ b/storage/service/single.go @@ -3,12 +3,12 @@ package service import ( "time" - "gitee.com/timedb/wheatCache/pkg/event" - "gitee.com/timedb/wheatCache/pkg/lru" - "gitee.com/timedb/wheatCache/pkg/middle" - "gitee.com/timedb/wheatCache/pkg/proto" - "gitee.com/timedb/wheatCache/storage/dao" - "gitee.com/timedb/wheatCache/storage/persisted" + "gitee.com/wheat-os/wheatCache/pkg/event" + "gitee.com/wheat-os/wheatCache/pkg/lru" + "gitee.com/wheat-os/wheatCache/pkg/middle" + "gitee.com/wheat-os/wheatCache/pkg/proto" + "gitee.com/wheat-os/wheatCache/storage/dao" + "gitee.com/wheat-os/wheatCache/storage/persisted" "github.com/spf13/viper" ) diff --git a/storage/service/single_service.gen.go b/storage/service/single_service.gen.go index 6247dc2..354223d 100644 --- a/storage/service/single_service.gen.go +++ b/storage/service/single_service.gen.go @@ -5,9 +5,9 @@ package service import ( context "context" - "gitee.com/timedb/wheatCache/pkg/event" - "gitee.com/timedb/wheatCache/pkg/lru" - "gitee.com/timedb/wheatCache/pkg/proto" + "gitee.com/wheat-os/wheatCache/pkg/event" + "gitee.com/wheat-os/wheatCache/pkg/lru" + "gitee.com/wheat-os/wheatCache/pkg/proto" ) func (s *singleService) LIndex( diff --git a/storage/temp/aof.template b/storage/temp/aof.template index bececc4..fb10d90 100644 --- a/storage/temp/aof.template +++ b/storage/temp/aof.template @@ -7,8 +7,8 @@ import ( "encoding/hex" "fmt" - "gitee.com/timedb/wheatCache/pkg/errorx" - "gitee.com/timedb/wheatCache/pkg/proto" + "gitee.com/wheat-os/wheatCache/pkg/errorx" + "gitee.com/wheat-os/wheatCache/pkg/proto" protobuf "google.golang.org/protobuf/proto" ) diff --git a/storage/temp/dao.template b/storage/temp/dao.template index 4adde48..55a2b90 100644 --- a/storage/temp/dao.template +++ b/storage/temp/dao.template @@ -3,7 +3,7 @@ package dao -import "gitee.com/timedb/wheatCache/pkg/proto" +import "gitee.com/wheat-os/wheatCache/pkg/proto" type Interface interface { {%for key in keys %} diff --git a/storage/temp/service.template b/storage/temp/service.template index 1fd2cec..fa969b6 100644 --- a/storage/temp/service.template +++ b/storage/temp/service.template @@ -5,9 +5,9 @@ package service import ( context "context" - "gitee.com/timedb/wheatCache/pkg/event" - "gitee.com/timedb/wheatCache/pkg/lru" - "gitee.com/timedb/wheatCache/pkg/proto" + "gitee.com/wheat-os/wheatCache/pkg/event" + "gitee.com/wheat-os/wheatCache/pkg/lru" + "gitee.com/wheat-os/wheatCache/pkg/proto" ) {% for key in keys %}