diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1f70f66..2103590 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -22,7 +22,7 @@ This document explains how to contribute changes to the Ledisdb project. Please search the issues on the issue tracker with a variety of keywords to ensure your bug is not already reported. -If unique, [open an issue](https://github.com/ledisdb/ledisdb/issues/new) +If unique, [open an issue](https://git.internal/re/ledisdb/issues/new) and answer the questions so we can understand and reproduce the problematic behavior. diff --git a/Dockerfile b/Dockerfile index 34857d8..7191598 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,16 +23,16 @@ RUN apt-get update && \ libgflags-dev # get LedisDB -RUN wget -O ledisdb-src.tar.gz "https://github.com/ledisdb/ledisdb/archive/v$LEDISDB_VERSION.tar.gz" && \ +RUN wget -O ledisdb-src.tar.gz "https://git.internal/re/ledisdb/archive/v$LEDISDB_VERSION.tar.gz" && \ tar -zxf ledisdb-src.tar.gz && \ mkdir -p /go/src/github.com/ledisdb/ && \ - mv ledisdb-$LEDISDB_VERSION /go/src/github.com/ledisdb/ledisdb + mv ledisdb-$LEDISDB_VERSION /go/src/git.internal/re/ledisdb # build LevelDB RUN wget -O leveldb-src.tar.gz "https://github.com/google/leveldb/archive/$LEVELDB_VERSION.tar.gz" && \ tar -zxf leveldb-src.tar.gz && \ cd leveldb-$LEVELDB_VERSION && \ - patch -p0 < /go/src/github.com/ledisdb/ledisdb/tools/leveldb.patch && \ + patch -p0 < /go/src/git.internal/re/ledisdb/tools/leveldb.patch && \ mkdir -p out-shared/db && \ make -j "$(nproc)" && \ mkdir /build/lib && \ @@ -59,7 +59,7 @@ RUN export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/build/lib:/usr/lib && \ export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/build/lib:/usr/lib && \ mkdir -p /build/bin && \ rm -rf /build/bin/* && \ - cd /go/src/github.com/ledisdb/ledisdb && \ + cd /go/src/git.internal/re/ledisdb && \ GOGC=off go build -i -o /build/bin/ledis-server -tags "snappy leveldb rocksdb" cmd/ledis-server/* && \ GOGC=off go build -i -o /build/bin/ledis-cli -tags "snappy leveldb rocksdb" cmd/ledis-cli/* && \ GOGC=off go build -i -o /build/bin/ledis-benchmark -tags "snappy leveldb rocksdb" cmd/ledis-benchmark/* && \ @@ -84,7 +84,7 @@ FROM debian:stretch-slim COPY --from=builder /build/lib/* /usr/lib/ COPY --from=builder /build/bin/ledis-* /bin/ -COPY --from=builder /go/src/github.com/ledisdb/ledisdb/config/config-docker.toml /config.toml +COPY --from=builder /go/src/git.internal/re/ledisdb/config/config-docker.toml /config.toml COPY --from=builder /usr/local/bin/gosu /bin/ RUN groupadd -r ledis && \ diff --git a/README.md b/README.md index 3ea13a7..10d75a8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # LedisDB -[![Build Status](https://travis-ci.org/ledisdb/ledisdb.svg?branch=develop)](https://travis-ci.org/ledisdb/ledisdb) [![codecov](https://codecov.io/gh/ledisdb/ledisdb/branch/master/graph/badge.svg)](https://codecov.io/gh/ledisdb/ledisdb) [![goreportcard](https://goreportcard.com/badge/github.com/ledisdb/ledisdb)](https://goreportcard.com/report/github.com/ledisdb/ledisdb) +[![Build Status](https://travis-ci.org/ledisdb/ledisdb.svg?branch=develop)](https://travis-ci.org/ledisdb/ledisdb) [![codecov](https://codecov.io/gh/ledisdb/ledisdb/branch/master/graph/badge.svg)](https://codecov.io/gh/ledisdb/ledisdb) [![goreportcard](https://goreportcard.com/badge/git.internal/re/ledisdb)](https://goreportcard.com/report/git.internal/re/ledisdb) Ledisdb is a high-performance NoSQL database library and server written in [Go](http://golang.org). It's similar to Redis but store data in disk. It supports many data structures including kv, list, hash, zset, set. @@ -49,7 +49,7 @@ Then you will find all the binary build on `./bin` directory. It will install leveldb at /usr/local/leveldb and snappy at /usr/local/snappy by default. - LedisDB uses the modified LevelDB for better performance. [Details.](https://github.com/ledisdb/ledisdb/wiki/leveldb-source-modification) + LedisDB uses the modified LevelDB for better performance. [Details.](https://git.internal/re/ledisdb/wiki/leveldb-source-modification) You can easily use other LevelDB versions (like Hyper LevelDB or Basho LevelDB) instead, as long as the header files are in `include/leveldb`, not `include/hyperleveldb` or any other location. @@ -123,8 +123,8 @@ curl http://127.0.0.1:11181/0/GET/hello?type=json ```go import ( - lediscfg "github.com/ledisdb/ledisdb/config" - "github.com/ledisdb/ledisdb/ledis" + lediscfg "git.internal/re/ledisdb/config" + "git.internal/re/ledisdb/ledis" ) # Use Ledis's default config @@ -158,21 +158,21 @@ See [CONTRIBUTING.md] . ## Benchmark -See [benchmark](https://github.com/ledisdb/ledisdb/wiki/Benchmark) for more. +See [benchmark](https://git.internal/re/ledisdb/wiki/Benchmark) for more. ## Todo -See [Issues todo](https://github.com/ledisdb/ledisdb/issues?labels=todo&page=1&state=open) +See [Issues todo](https://git.internal/re/ledisdb/issues?labels=todo&page=1&state=open) ## Client -See [Clients](https://github.com/ledisdb/ledisdb/wiki/Clients) to find or contribute LedisDB client. +See [Clients](https://git.internal/re/ledisdb/wiki/Clients) to find or contribute LedisDB client. ## Links + [Official Website](https://ledisdb.io) -+ [GoDoc](https://godoc.org/github.com/ledisdb/ledisdb) -+ [Server Commands](https://github.com/ledisdb/ledisdb/wiki/Commands) ++ [GoDoc](https://godoc.org/git.internal/re/ledisdb) ++ [Server Commands](https://git.internal/re/ledisdb/wiki/Commands) ## Caveat diff --git a/cmd/ledis-benchmark/main.go b/cmd/ledis-benchmark/main.go index 548f05c..c9240ed 100644 --- a/cmd/ledis-benchmark/main.go +++ b/cmd/ledis-benchmark/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/ledisdb/ledisdb/cmd" + "git.internal/re/ledisdb/cmd" ) var ( diff --git a/cmd/ledis-cli/main.go b/cmd/ledis-cli/main.go index cfbea9e..5899827 100644 --- a/cmd/ledis-cli/main.go +++ b/cmd/ledis-cli/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/ledisdb/ledisdb/cmd" + "git.internal/re/ledisdb/cmd" ) var ( diff --git a/cmd/ledis-dump/main.go b/cmd/ledis-dump/main.go index 5f608a5..c781048 100644 --- a/cmd/ledis-dump/main.go +++ b/cmd/ledis-dump/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/ledisdb/ledisdb/cmd" + "git.internal/re/ledisdb/cmd" ) var ( diff --git a/cmd/ledis-load/main.go b/cmd/ledis-load/main.go index 28128ea..011ac41 100644 --- a/cmd/ledis-load/main.go +++ b/cmd/ledis-load/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/ledisdb/ledisdb/cmd" + "git.internal/re/ledisdb/cmd" ) var ( diff --git a/cmd/ledis-repair/main.go b/cmd/ledis-repair/main.go index 6963d31..8a10b16 100644 --- a/cmd/ledis-repair/main.go +++ b/cmd/ledis-repair/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/ledisdb/ledisdb/cmd" + "git.internal/re/ledisdb/cmd" ) var ( diff --git a/cmd/ledis-server/main.go b/cmd/ledis-server/main.go index 389cfd1..44b548e 100644 --- a/cmd/ledis-server/main.go +++ b/cmd/ledis-server/main.go @@ -5,7 +5,7 @@ import ( _ "net/http/pprof" - "github.com/ledisdb/ledisdb/cmd" + "git.internal/re/ledisdb/cmd" ) var ( diff --git a/cmd/ledis/main.go b/cmd/ledis/main.go index 5983a3e..b61177f 100644 --- a/cmd/ledis/main.go +++ b/cmd/ledis/main.go @@ -6,7 +6,7 @@ import ( _ "net/http/pprof" - "github.com/ledisdb/ledisdb/cmd" + "git.internal/re/ledisdb/cmd" ) var ( diff --git a/cmd/load.go b/cmd/load.go index ab17e8e..1ae9410 100644 --- a/cmd/load.go +++ b/cmd/load.go @@ -3,8 +3,8 @@ package cmd import ( "flag" - "github.com/ledisdb/ledisdb/config" - "github.com/ledisdb/ledisdb/ledis" + "git.internal/re/ledisdb/config" + "git.internal/re/ledisdb/ledis" ) func Load() { diff --git a/cmd/repair-ttl.go b/cmd/repair-ttl.go index 2dd5138..933f769 100644 --- a/cmd/repair-ttl.go +++ b/cmd/repair-ttl.go @@ -5,9 +5,9 @@ import ( "flag" "fmt" - "github.com/ledisdb/ledisdb/config" - "github.com/ledisdb/ledisdb/ledis" - "github.com/ledisdb/ledisdb/store" + "git.internal/re/ledisdb/config" + "git.internal/re/ledisdb/ledis" + "git.internal/re/ledisdb/store" ) func RepairTTL() { diff --git a/cmd/repair.go b/cmd/repair.go index 83a7f5b..a90830b 100644 --- a/cmd/repair.go +++ b/cmd/repair.go @@ -3,8 +3,8 @@ package cmd import ( "flag" - "github.com/ledisdb/ledisdb/config" - "github.com/ledisdb/ledisdb/store" + "git.internal/re/ledisdb/config" + "git.internal/re/ledisdb/store" ) func Repair() { diff --git a/cmd/server.go b/cmd/server.go index 24139b0..7e7adfb 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -11,8 +11,8 @@ import ( "strings" "syscall" - "github.com/ledisdb/ledisdb/config" - "github.com/ledisdb/ledisdb/server" + "git.internal/re/ledisdb/config" + "git.internal/re/ledisdb/server" ) var addr = flag.String("addr", "", "ledisdb listen address") diff --git a/dev.sh b/dev.sh index 29cbeb6..9d6d8b1 100755 --- a/dev.sh +++ b/dev.sh @@ -4,7 +4,7 @@ export LEDISTOP=$(pwd) export LEDISROOT="${LEDISROOT:-${LEDISTOP/\/src\/github.com\/ledisdb\/ledisdb/}}" # LEDISTOP sanity check if [[ "$LEDISTOP" == "${LEDISTOP/\/src\/github.com\/ledisdb\/ledisdb/}" ]]; then - echo "WARNING: LEDISTOP($LEDISTOP) does not contain src/github.com/ledisdb/ledisdb" + echo "WARNING: LEDISTOP($LEDISTOP) does not contain src/git.internal/re/ledisdb" false fi diff --git a/doc/DiffRedis.md b/doc/DiffRedis.md index a5d8339..ef21a7e 100644 --- a/doc/DiffRedis.md +++ b/doc/DiffRedis.md @@ -48,4 +48,4 @@ XSCAN type cursor [MATCH match] [COUNT count] LedisDB supports `dump` to serialize the value with key, the data format is the same as Redis, so you can use it in Redis and vice versa. -Of course, LedisDB has not implemented all APIs in Redis, you can see full commands in commands.json, commands.doc or [wiki](https://github.com/ledisdb/ledisdb/wiki/Commands). \ No newline at end of file +Of course, LedisDB has not implemented all APIs in Redis, you can see full commands in commands.json, commands.doc or [wiki](https://git.internal/re/ledisdb/wiki/Commands). \ No newline at end of file diff --git a/go.mod b/go.mod index c2a9f3c..8765689 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/ledisdb/ledisdb +module git.internal/re/ledisdb go 1.12 diff --git a/ledis/batch.go b/ledis/batch.go index b23bc40..d8cf99a 100644 --- a/ledis/batch.go +++ b/ledis/batch.go @@ -3,8 +3,8 @@ package ledis import ( "sync" - "github.com/ledisdb/ledisdb/rpl" - "github.com/ledisdb/ledisdb/store" + "git.internal/re/ledisdb/rpl" + "git.internal/re/ledisdb/store" "github.com/siddontang/go/log" ) diff --git a/ledis/dump.go b/ledis/dump.go index 2648d1c..a2f099c 100644 --- a/ledis/dump.go +++ b/ledis/dump.go @@ -7,7 +7,7 @@ import ( "io" "os" - "github.com/ledisdb/ledisdb/store" + "git.internal/re/ledisdb/store" "github.com/siddontang/go/snappy" ) diff --git a/ledis/dump_test.go b/ledis/dump_test.go index 2621690..960b3a0 100644 --- a/ledis/dump_test.go +++ b/ledis/dump_test.go @@ -5,8 +5,8 @@ import ( "os" "testing" - "github.com/ledisdb/ledisdb/config" - "github.com/ledisdb/ledisdb/store" + "git.internal/re/ledisdb/config" + "git.internal/re/ledisdb/store" ) func TestDump(t *testing.T) { diff --git a/ledis/ledis.go b/ledis/ledis.go index 915c1cb..dd7db8c 100644 --- a/ledis/ledis.go +++ b/ledis/ledis.go @@ -8,9 +8,9 @@ import ( "sync" "time" - "github.com/ledisdb/ledisdb/config" - "github.com/ledisdb/ledisdb/rpl" - "github.com/ledisdb/ledisdb/store" + "git.internal/re/ledisdb/config" + "git.internal/re/ledisdb/rpl" + "git.internal/re/ledisdb/store" "github.com/siddontang/go/filelock" "github.com/siddontang/go/log" ) diff --git a/ledis/ledis_db.go b/ledis/ledis_db.go index f68cb31..88b3ffb 100644 --- a/ledis/ledis_db.go +++ b/ledis/ledis_db.go @@ -6,7 +6,7 @@ import ( "fmt" "sync" - "github.com/ledisdb/ledisdb/store" + "git.internal/re/ledisdb/store" ) type ibucket interface { diff --git a/ledis/ledis_test.go b/ledis/ledis_test.go index 7a8c9af..448a950 100644 --- a/ledis/ledis_test.go +++ b/ledis/ledis_test.go @@ -5,7 +5,7 @@ import ( "sync" "testing" - "github.com/ledisdb/ledisdb/config" + "git.internal/re/ledisdb/config" ) var testLedis *Ledis diff --git a/ledis/migrate_test.go b/ledis/migrate_test.go index 7d3e141..281687e 100644 --- a/ledis/migrate_test.go +++ b/ledis/migrate_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/ledisdb/ledisdb/config" + "git.internal/re/ledisdb/config" ) func TestMigrate(t *testing.T) { diff --git a/ledis/replication.go b/ledis/replication.go index 1912e33..25420eb 100644 --- a/ledis/replication.go +++ b/ledis/replication.go @@ -6,8 +6,8 @@ import ( "io" "time" - "github.com/ledisdb/ledisdb/rpl" - "github.com/ledisdb/ledisdb/store" + "git.internal/re/ledisdb/rpl" + "git.internal/re/ledisdb/store" "github.com/siddontang/go/log" "github.com/siddontang/go/snappy" ) diff --git a/ledis/replication_test.go b/ledis/replication_test.go index 591b345..cb91080 100644 --- a/ledis/replication_test.go +++ b/ledis/replication_test.go @@ -6,8 +6,8 @@ import ( "os" "testing" - "github.com/ledisdb/ledisdb/config" - "github.com/ledisdb/ledisdb/store" + "git.internal/re/ledisdb/config" + "git.internal/re/ledisdb/store" ) func checkLedisEqual(master *Ledis, slave *Ledis) error { diff --git a/ledis/scan.go b/ledis/scan.go index 798ab80..fbc6457 100644 --- a/ledis/scan.go +++ b/ledis/scan.go @@ -4,7 +4,7 @@ import ( "errors" "regexp" - "github.com/ledisdb/ledisdb/store" + "git.internal/re/ledisdb/store" ) var errDataType = errors.New("error data type") diff --git a/ledis/sort.go b/ledis/sort.go index 71f58a6..e55bd66 100644 --- a/ledis/sort.go +++ b/ledis/sort.go @@ -6,7 +6,7 @@ import ( "sort" "strconv" - "github.com/ledisdb/ledisdb/store" + "git.internal/re/ledisdb/store" ) // Limit is for sort. diff --git a/ledis/t_hash.go b/ledis/t_hash.go index 7396f33..6f07cec 100644 --- a/ledis/t_hash.go +++ b/ledis/t_hash.go @@ -5,7 +5,7 @@ import ( "errors" "time" - "github.com/ledisdb/ledisdb/store" + "git.internal/re/ledisdb/store" "github.com/siddontang/go/num" ) diff --git a/ledis/t_kv.go b/ledis/t_kv.go index f67d19b..fcbf8b5 100644 --- a/ledis/t_kv.go +++ b/ledis/t_kv.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/ledisdb/ledisdb/store" + "git.internal/re/ledisdb/store" "github.com/siddontang/go/num" ) diff --git a/ledis/t_list.go b/ledis/t_list.go index 8eb26b0..5f7304d 100644 --- a/ledis/t_list.go +++ b/ledis/t_list.go @@ -7,7 +7,7 @@ import ( "sync" "time" - "github.com/ledisdb/ledisdb/store" + "git.internal/re/ledisdb/store" "github.com/siddontang/go/hack" "github.com/siddontang/go/log" "github.com/siddontang/go/num" diff --git a/ledis/t_set.go b/ledis/t_set.go index 01c1dc1..c0b4961 100644 --- a/ledis/t_set.go +++ b/ledis/t_set.go @@ -5,7 +5,7 @@ import ( "errors" "time" - "github.com/ledisdb/ledisdb/store" + "git.internal/re/ledisdb/store" "github.com/siddontang/go/hack" ) diff --git a/ledis/t_ttl.go b/ledis/t_ttl.go index 76ae8dc..b70e3c4 100644 --- a/ledis/t_ttl.go +++ b/ledis/t_ttl.go @@ -6,7 +6,7 @@ import ( "sync" "time" - "github.com/ledisdb/ledisdb/store" + "git.internal/re/ledisdb/store" ) var ( diff --git a/ledis/t_zset.go b/ledis/t_zset.go index adae6b1..5e1287c 100644 --- a/ledis/t_zset.go +++ b/ledis/t_zset.go @@ -6,7 +6,7 @@ import ( "errors" "time" - "github.com/ledisdb/ledisdb/store" + "git.internal/re/ledisdb/store" "github.com/siddontang/go/hack" ) diff --git a/ledis/t_zset_test.go b/ledis/t_zset_test.go index 693b575..943ef05 100644 --- a/ledis/t_zset_test.go +++ b/ledis/t_zset_test.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - "github.com/ledisdb/ledisdb/store" + "git.internal/re/ledisdb/store" ) const ( diff --git a/rpl/file_store.go b/rpl/file_store.go index 64de9ed..76f5dfe 100644 --- a/rpl/file_store.go +++ b/rpl/file_store.go @@ -8,7 +8,7 @@ import ( "sync" "time" - "github.com/ledisdb/ledisdb/config" + "git.internal/re/ledisdb/config" "github.com/siddontang/go/log" "github.com/siddontang/go/num" ) @@ -38,7 +38,7 @@ const ( meta: log1 offset | log2 offset log offset: bigendian uint32 | bigendian uint32 - //sha1 of github.com/ledisdb/ledisdb 20 bytes + //sha1 of git.internal/re/ledisdb 20 bytes magic data = "\x1c\x1d\xb8\x88\xff\x9e\x45\x55\x40\xf0\x4c\xda\xe0\xce\x47\xde\x65\x48\x71\x17" we must guarantee that the log id is monotonic increment strictly. diff --git a/rpl/goleveldb_store.go b/rpl/goleveldb_store.go index 4f52093..ddf14de 100644 --- a/rpl/goleveldb_store.go +++ b/rpl/goleveldb_store.go @@ -7,8 +7,8 @@ import ( "sync" "time" - "github.com/ledisdb/ledisdb/config" - "github.com/ledisdb/ledisdb/store" + "git.internal/re/ledisdb/config" + "git.internal/re/ledisdb/store" "github.com/siddontang/go/num" ) diff --git a/rpl/rpl.go b/rpl/rpl.go index a12e099..5919d7d 100644 --- a/rpl/rpl.go +++ b/rpl/rpl.go @@ -7,7 +7,7 @@ import ( "sync" "time" - "github.com/ledisdb/ledisdb/config" + "git.internal/re/ledisdb/config" "github.com/siddontang/go/log" "github.com/siddontang/go/snappy" ) diff --git a/rpl/rpl_test.go b/rpl/rpl_test.go index bec0077..9cbab30 100644 --- a/rpl/rpl_test.go +++ b/rpl/rpl_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/ledisdb/ledisdb/config" + "git.internal/re/ledisdb/config" ) func TestReplication(t *testing.T) { diff --git a/rpl/store_test.go b/rpl/store_test.go index 2659a3d..d27be62 100644 --- a/rpl/store_test.go +++ b/rpl/store_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/ledisdb/ledisdb/config" + "git.internal/re/ledisdb/config" ) func TestGoLevelDBStore(t *testing.T) { diff --git a/server/app.go b/server/app.go index 32507f5..2d2464f 100644 --- a/server/app.go +++ b/server/app.go @@ -12,8 +12,8 @@ import ( "crypto/tls" - "github.com/ledisdb/ledisdb/config" - "github.com/ledisdb/ledisdb/ledis" + "git.internal/re/ledisdb/config" + "git.internal/re/ledisdb/ledis" "github.com/siddontang/goredis" ) diff --git a/server/app_test.go b/server/app_test.go index 31cef3c..f01f0a5 100644 --- a/server/app_test.go +++ b/server/app_test.go @@ -5,7 +5,7 @@ import ( "sync" "testing" - "github.com/ledisdb/ledisdb/config" + "git.internal/re/ledisdb/config" "github.com/siddontang/goredis" ) diff --git a/server/client.go b/server/client.go index 149d700..96a4b80 100644 --- a/server/client.go +++ b/server/client.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/ledisdb/ledisdb/ledis" + "git.internal/re/ledisdb/ledis" "github.com/siddontang/go/sync2" ) diff --git a/server/client_http.go b/server/client_http.go index f60b54b..73ceba0 100644 --- a/server/client_http.go +++ b/server/client_http.go @@ -8,7 +8,7 @@ import ( "strconv" "strings" - "github.com/ledisdb/ledisdb/ledis" + "git.internal/re/ledisdb/ledis" "github.com/siddontang/go/bson" "github.com/siddontang/go/hack" "github.com/siddontang/go/log" diff --git a/server/client_resp.go b/server/client_resp.go index ec54644..6efb3ea 100644 --- a/server/client_resp.go +++ b/server/client_resp.go @@ -12,7 +12,7 @@ import ( "syscall" "time" - "github.com/ledisdb/ledisdb/ledis" + "git.internal/re/ledisdb/ledis" "github.com/siddontang/go/hack" "github.com/siddontang/go/log" "github.com/siddontang/go/num" diff --git a/server/cmd_hash.go b/server/cmd_hash.go index 0c5dc31..ad69e06 100644 --- a/server/cmd_hash.go +++ b/server/cmd_hash.go @@ -1,7 +1,7 @@ package server import ( - "github.com/ledisdb/ledisdb/ledis" + "git.internal/re/ledisdb/ledis" ) func hsetCommand(c *client) error { diff --git a/server/cmd_kv.go b/server/cmd_kv.go index 365d800..5987b5b 100644 --- a/server/cmd_kv.go +++ b/server/cmd_kv.go @@ -3,7 +3,7 @@ package server import ( "strconv" - "github.com/ledisdb/ledisdb/ledis" + "git.internal/re/ledisdb/ledis" ) // func getCommand(c *client) error { diff --git a/server/cmd_list.go b/server/cmd_list.go index 4553da7..038f8c4 100644 --- a/server/cmd_list.go +++ b/server/cmd_list.go @@ -6,7 +6,7 @@ import ( "bytes" - "github.com/ledisdb/ledisdb/ledis" + "git.internal/re/ledisdb/ledis" "github.com/siddontang/go/hack" ) diff --git a/server/cmd_migrate.go b/server/cmd_migrate.go index ec40bf2..ad1fb55 100644 --- a/server/cmd_migrate.go +++ b/server/cmd_migrate.go @@ -7,7 +7,7 @@ import ( "sync" "time" - "github.com/ledisdb/ledisdb/ledis" + "git.internal/re/ledisdb/ledis" "github.com/siddontang/go/hack" "github.com/siddontang/go/log" "github.com/siddontang/goredis" diff --git a/server/cmd_migrate_test.go b/server/cmd_migrate_test.go index 4b6448f..3134bed 100644 --- a/server/cmd_migrate_test.go +++ b/server/cmd_migrate_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/ledisdb/ledisdb/config" + "git.internal/re/ledisdb/config" "github.com/siddontang/goredis" ) diff --git a/server/cmd_replication.go b/server/cmd_replication.go index da29191..1e5c5fa 100644 --- a/server/cmd_replication.go +++ b/server/cmd_replication.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "github.com/ledisdb/ledisdb/ledis" + "git.internal/re/ledisdb/ledis" "github.com/siddontang/go/hack" "github.com/siddontang/go/num" ) diff --git a/server/cmd_replication_test.go b/server/cmd_replication_test.go index f56943c..ad6ffe8 100644 --- a/server/cmd_replication_test.go +++ b/server/cmd_replication_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/ledisdb/ledisdb/config" + "git.internal/re/ledisdb/config" "github.com/siddontang/goredis" ) diff --git a/server/cmd_scan.go b/server/cmd_scan.go index a942d5f..3ae0cfe 100644 --- a/server/cmd_scan.go +++ b/server/cmd_scan.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "github.com/ledisdb/ledisdb/ledis" + "git.internal/re/ledisdb/ledis" "github.com/siddontang/go/hack" "github.com/siddontang/go/num" ) diff --git a/server/cmd_scan_test.go b/server/cmd_scan_test.go index 8ad369e..c03465d 100644 --- a/server/cmd_scan_test.go +++ b/server/cmd_scan_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/ledisdb/ledisdb/config" + "git.internal/re/ledisdb/config" "github.com/siddontang/goredis" ) diff --git a/server/cmd_server.go b/server/cmd_server.go index 1dd4385..0f40d5b 100644 --- a/server/cmd_server.go +++ b/server/cmd_server.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "github.com/ledisdb/ledisdb/config" + "git.internal/re/ledisdb/config" ) func pingCommand(c *client) error { diff --git a/server/cmd_set.go b/server/cmd_set.go index 2ee3248..1621873 100644 --- a/server/cmd_set.go +++ b/server/cmd_set.go @@ -1,7 +1,7 @@ package server import ( - "github.com/ledisdb/ledisdb/ledis" + "git.internal/re/ledisdb/ledis" ) func saddCommand(c *client) error { diff --git a/server/cmd_zset.go b/server/cmd_zset.go index 9f53b0a..a403caa 100644 --- a/server/cmd_zset.go +++ b/server/cmd_zset.go @@ -6,8 +6,8 @@ import ( "strconv" "strings" - "github.com/ledisdb/ledisdb/ledis" - "github.com/ledisdb/ledisdb/store" + "git.internal/re/ledisdb/ledis" + "git.internal/re/ledisdb/store" "github.com/siddontang/go/hack" "github.com/siddontang/go/num" ) diff --git a/server/const.go b/server/const.go index d482393..99f2958 100644 --- a/server/const.go +++ b/server/const.go @@ -3,7 +3,7 @@ package server import ( "errors" - "github.com/ledisdb/ledisdb/ledis" + "git.internal/re/ledisdb/ledis" ) var ( diff --git a/server/info.go b/server/info.go index 66d1a5e..9ea8afd 100644 --- a/server/info.go +++ b/server/info.go @@ -10,7 +10,7 @@ import ( "sync" "time" - "github.com/ledisdb/ledisdb/ledis" + "git.internal/re/ledisdb/ledis" "github.com/siddontang/go/sync2" ) diff --git a/server/replication.go b/server/replication.go index 2d42379..7d9fd11 100644 --- a/server/replication.go +++ b/server/replication.go @@ -11,8 +11,8 @@ import ( "sync" "time" - "github.com/ledisdb/ledisdb/ledis" - "github.com/ledisdb/ledisdb/rpl" + "git.internal/re/ledisdb/ledis" + "git.internal/re/ledisdb/rpl" "github.com/siddontang/go/log" "github.com/siddontang/go/num" "github.com/siddontang/go/sync2" diff --git a/server/script.go b/server/script.go index 7897788..bfbd6b8 100644 --- a/server/script.go +++ b/server/script.go @@ -8,7 +8,7 @@ import ( "strings" "sync" - "github.com/ledisdb/ledisdb/ledis" + "git.internal/re/ledisdb/ledis" "github.com/siddontang/go/hack" "github.com/siddontang/go/num" lua "github.com/yuin/gopher-lua" diff --git a/server/script_test.go b/server/script_test.go index 6fc239c..9689109 100644 --- a/server/script_test.go +++ b/server/script_test.go @@ -3,7 +3,7 @@ package server import ( "fmt" - "github.com/ledisdb/ledisdb/config" + "git.internal/re/ledisdb/config" lua "github.com/yuin/gopher-lua" "testing" diff --git a/server/snapshot.go b/server/snapshot.go index 0b08c12..6e67749 100644 --- a/server/snapshot.go +++ b/server/snapshot.go @@ -10,7 +10,7 @@ import ( "sync" "time" - "github.com/ledisdb/ledisdb/config" + "git.internal/re/ledisdb/config" "github.com/siddontang/go/log" ) diff --git a/server/snapshot_test.go b/server/snapshot_test.go index af728fa..14b9b62 100644 --- a/server/snapshot_test.go +++ b/server/snapshot_test.go @@ -7,7 +7,7 @@ import ( "path" "testing" - "github.com/ledisdb/ledisdb/config" + "git.internal/re/ledisdb/config" ) type testSnapshotDumper struct { diff --git a/store/db.go b/store/db.go index a4b488f..1477533 100644 --- a/store/db.go +++ b/store/db.go @@ -4,8 +4,8 @@ import ( "sync" "time" - "github.com/ledisdb/ledisdb/config" - "github.com/ledisdb/ledisdb/store/driver" + "git.internal/re/ledisdb/config" + "git.internal/re/ledisdb/store/driver" ) type DB struct { diff --git a/store/driver/store.go b/store/driver/store.go index 5d6a9a4..1c1ba42 100644 --- a/store/driver/store.go +++ b/store/driver/store.go @@ -3,7 +3,7 @@ package driver import ( "fmt" - "github.com/ledisdb/ledisdb/config" + "git.internal/re/ledisdb/config" ) type Store interface { diff --git a/store/goleveldb/db.go b/store/goleveldb/db.go index 487dbac..5e8f670 100644 --- a/store/goleveldb/db.go +++ b/store/goleveldb/db.go @@ -8,8 +8,8 @@ import ( "github.com/syndtr/goleveldb/leveldb/storage" "github.com/syndtr/goleveldb/leveldb/util" - "github.com/ledisdb/ledisdb/config" - "github.com/ledisdb/ledisdb/store/driver" + "git.internal/re/ledisdb/config" + "git.internal/re/ledisdb/store/driver" "os" ) diff --git a/store/goleveldb/snapshot.go b/store/goleveldb/snapshot.go index 736d5b9..1e9c396 100644 --- a/store/goleveldb/snapshot.go +++ b/store/goleveldb/snapshot.go @@ -1,7 +1,7 @@ package goleveldb import ( - "github.com/ledisdb/ledisdb/store/driver" + "git.internal/re/ledisdb/store/driver" "github.com/syndtr/goleveldb/leveldb" ) diff --git a/store/iterator.go b/store/iterator.go index af3533d..d29b9da 100644 --- a/store/iterator.go +++ b/store/iterator.go @@ -3,7 +3,7 @@ package store import ( "bytes" - "github.com/ledisdb/ledisdb/store/driver" + "git.internal/re/ledisdb/store/driver" ) const ( diff --git a/store/leveldb/db.go b/store/leveldb/db.go index d261a09..5fae765 100644 --- a/store/leveldb/db.go +++ b/store/leveldb/db.go @@ -15,8 +15,8 @@ import ( "runtime" "unsafe" - "github.com/ledisdb/ledisdb/config" - "github.com/ledisdb/ledisdb/store/driver" + "git.internal/re/ledisdb/config" + "git.internal/re/ledisdb/store/driver" ) const defaultFilterBits int = 10 diff --git a/store/leveldb/snapshot.go b/store/leveldb/snapshot.go index ad2997c..9421943 100644 --- a/store/leveldb/snapshot.go +++ b/store/leveldb/snapshot.go @@ -7,7 +7,7 @@ package leveldb import "C" import ( - "github.com/ledisdb/ledisdb/store/driver" + "git.internal/re/ledisdb/store/driver" ) type Snapshot struct { diff --git a/store/rocksdb/db.go b/store/rocksdb/db.go index 6e05942..f7e0f8a 100644 --- a/store/rocksdb/db.go +++ b/store/rocksdb/db.go @@ -16,8 +16,8 @@ import ( "runtime" "unsafe" - "github.com/ledisdb/ledisdb/config" - "github.com/ledisdb/ledisdb/store/driver" + "git.internal/re/ledisdb/config" + "git.internal/re/ledisdb/store/driver" ) const defaultFilterBits int = 10 diff --git a/store/rocksdb/snapshot.go b/store/rocksdb/snapshot.go index 0584e79..4ff58d4 100644 --- a/store/rocksdb/snapshot.go +++ b/store/rocksdb/snapshot.go @@ -7,7 +7,7 @@ package rocksdb import "C" import ( - "github.com/ledisdb/ledisdb/store/driver" + "git.internal/re/ledisdb/store/driver" ) type Snapshot struct { diff --git a/store/slice.go b/store/slice.go index a54682f..e90b108 100644 --- a/store/slice.go +++ b/store/slice.go @@ -1,7 +1,7 @@ package store import ( - "github.com/ledisdb/ledisdb/store/driver" + "git.internal/re/ledisdb/store/driver" ) type Slice interface { diff --git a/store/snapshot.go b/store/snapshot.go index 02606ef..4ca96c9 100644 --- a/store/snapshot.go +++ b/store/snapshot.go @@ -1,7 +1,7 @@ package store import ( - "github.com/ledisdb/ledisdb/store/driver" + "git.internal/re/ledisdb/store/driver" ) type Snapshot struct { diff --git a/store/store.go b/store/store.go index a40a40f..5138229 100644 --- a/store/store.go +++ b/store/store.go @@ -5,12 +5,12 @@ import ( "os" "path" - "github.com/ledisdb/ledisdb/config" - "github.com/ledisdb/ledisdb/store/driver" + "git.internal/re/ledisdb/config" + "git.internal/re/ledisdb/store/driver" - _ "github.com/ledisdb/ledisdb/store/goleveldb" // register goleveldb - _ "github.com/ledisdb/ledisdb/store/leveldb" // register leveldb - _ "github.com/ledisdb/ledisdb/store/rocksdb" // register rocksdb + _ "git.internal/re/ledisdb/store/goleveldb" // register goleveldb + _ "git.internal/re/ledisdb/store/leveldb" // register leveldb + _ "git.internal/re/ledisdb/store/rocksdb" // register rocksdb ) func getStorePath(cfg *config.Config) string { diff --git a/store/store_test.go b/store/store_test.go index 697a48b..6140933 100644 --- a/store/store_test.go +++ b/store/store_test.go @@ -7,8 +7,8 @@ import ( "reflect" "testing" - "github.com/ledisdb/ledisdb/config" - "github.com/ledisdb/ledisdb/store/driver" + "git.internal/re/ledisdb/config" + "git.internal/re/ledisdb/store/driver" ) func TestStore(t *testing.T) { diff --git a/store/writebatch.go b/store/writebatch.go index 5d7654c..3e7a8aa 100644 --- a/store/writebatch.go +++ b/store/writebatch.go @@ -3,7 +3,7 @@ package store import ( "time" - "github.com/ledisdb/ledisdb/store/driver" + "git.internal/re/ledisdb/store/driver" "github.com/syndtr/goleveldb/leveldb" )