Skip to content

Commit

Permalink
update import url
Browse files Browse the repository at this point in the history
  • Loading branch information
yufeng committed Apr 22, 2020
1 parent 8517e82 commit 350ed00
Show file tree
Hide file tree
Showing 105 changed files with 216 additions and 216 deletions.
4 changes: 2 additions & 2 deletions doc/recorder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export PATH=$GOROOT/bin:$PATH
* 引入包要在业务包之前,保证流量到来之前已经初始化

```go
import _ "github.com/didichuxing/sharingan"
import _ "github.com/didi/sharingan"
```

* 参考:[example](https://github.com/didi/sharingan/blob/master/example/main.go)
Expand All @@ -35,7 +35,7 @@ import _ "github.com/didichuxing/sharingan"
* tip3:常见的第三方包「http、redis、mysql、thrift等」,经测试都可以正常进行录制,不需要修改。

```go
import "github.com/didichuxing/sharingan"
import "github.com/didi/sharingan"

// 修改之前的代码
- go remoteRead()
Expand Down
2 changes: 1 addition & 1 deletion doc/recorder/hey.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ import (
"runtime"
_ "net/http/pprof"

_ "github.com/didichuxing/sharingan"
_ "github.com/didi/sharingan"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion doc/replayer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ curl https://raw.githubusercontent.com/didichuxing/sharingan-go/recorder/install

然后,修改SUT的main.go代码,引入sharingan包。参考:[example](../../example/replayer/main.go)
```go
import _ "github.com/didichuxing/sharingan"
import _ "github.com/didi/sharingan"
```

最后,编译并启动SUT服务。
Expand Down
2 changes: 1 addition & 1 deletion example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
"net/http"

_ "github.com/didichuxing/sharingan"
_ "github.com/didi/sharingan"
// TODO:最后import其他业务包!
)

Expand Down
2 changes: 1 addition & 1 deletion example/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"syscall"
"testing"

_ "github.com/didichuxing/sharingan"
_ "github.com/didi/sharingan"
)

var systemTest *bool
Expand Down
2 changes: 1 addition & 1 deletion example/recorder/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http"
"time"

"github.com/didichuxing/sharingan"
"github.com/didi/sharingan"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions example/replayer/main.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Replayer demo for how to import package "github.com/didichuxing/sharingan/replayer"
// Replayer demo for how to import package "github.com/didi/sharingan/replayer"
package main

import (
Expand All @@ -8,7 +8,7 @@ import (
"net/http"

// Here to import package
_ "github.com/didichuxing/sharingan"
_ "github.com/didi/sharingan"
// TODO:Attention please! 最后import其他业务包!
)

Expand Down
2 changes: 1 addition & 1 deletion example/replayer/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"syscall"
"testing"

_ "github.com/didichuxing/sharingan"
_ "github.com/didi/sharingan"
)

var systemTest *bool
Expand Down
6 changes: 3 additions & 3 deletions example/replayer/sut_replayer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ function build() {
fi

cd $root
go get 'github.com/didichuxing/sharingan'
go get 'github.com/didi/sharingan'
if [ $? -ne 0 ]; then
printf "${error_msg}build failed at executing go get github.com/didichuxing/sharingan, please check!!!\n"
printf "${error_msg}build failed at executing go get github.com/didi/sharingan, please check!!!\n"
exit 1
fi
go clean -modcache
Expand Down Expand Up @@ -194,7 +194,7 @@ function build() {
binName=$appcov
fi

pkgReplay='_ "github.com/didichuxing/sharingan"'
pkgReplay='_ "github.com/didi/sharingan"'
find ./ -name "*\.go" -maxdepth 1 | xargs -n 1 grep $pkgReplay &> /dev/null
if [ $? -eq 0 ];then
printf "${error_msg} build failed for not importing package sharingan/replayer, please import it!!!\n"
Expand Down
6 changes: 3 additions & 3 deletions example/replayer/sut_replayer_glide.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ function build() {

cd $root
rm -rf vendor
glide get 'github.com/didichuxing/sharingan'
glide get 'github.com/didi/sharingan'
if [ $? -ne 0 ]; then
printf "${error_msg}build failed at executing glide get github.com/didichuxing/sharingan, please check!!!\n"
printf "${error_msg}build failed at executing glide get github.com/didi/sharingan, please check!!!\n"
exit 1
fi
glide install
Expand Down Expand Up @@ -210,7 +210,7 @@ function build() {
binName=$appcov
fi

pkgReplay='_ "github.com/didichuxing/sharingan"'
pkgReplay='_ "github.com/didi/sharingan"'
find ./ -name "*\.go" -maxdepth 1 | xargs -n 1 grep $pkgReplay &> /dev/null
if [ $? -eq 0 ];then
printf "${error_msg} build failed for not importing package sharingan/replayer, please import it!!!\n"
Expand Down
6 changes: 3 additions & 3 deletions example/replayer/sut_replayer_gomod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ function build() {
fi

cd $root
go get 'github.com/didichuxing/sharingan'
go get 'github.com/didi/sharingan'
if [ $? -ne 0 ]; then
printf "${error_msg}build failed at executing go get github.com/didichuxing/sharingan, please check!!!\n"
printf "${error_msg}build failed at executing go get github.com/didi/sharingan, please check!!!\n"
exit 1
fi
go clean -modcache
Expand Down Expand Up @@ -194,7 +194,7 @@ function build() {
binName=$appcov
fi

pkgReplay='_ "github.com/didichuxing/sharingan"'
pkgReplay='_ "github.com/didi/sharingan"'
find ./ -name "*\.go" -maxdepth 1 | xargs -n 1 grep $pkgReplay &> /dev/null
if [ $? -eq 0 ];then
printf "${error_msg} build failed for not importing package sharingan/replayer, please import it!!!\n"
Expand Down
2 changes: 1 addition & 1 deletion glide.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package: github.com/didichuxing/sharingan
package: github.com/didi/sharingan
import:
- package: github.com/golang/protobuf
version: ^1.3.2
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/didichuxing/sharingan
module github.com/didi/sharingan

go 1.13

Expand Down
2 changes: 1 addition & 1 deletion recorder-agent/common/conf/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package conf
import (
"fmt"

"github.com/didichuxing/sharingan/recorder-agent/common/path"
"github.com/didi/sharingan/recorder-agent/common/path"

"github.com/spf13/viper"
)
Expand Down
4 changes: 2 additions & 2 deletions recorder-agent/common/zap/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"log"
"time"

"github.com/didichuxing/sharingan/recorder-agent/common/conf"
"github.com/didichuxing/sharingan/recorder-agent/common/path"
"github.com/didi/sharingan/recorder-agent/common/conf"
"github.com/didi/sharingan/recorder-agent/common/path"

rotatelogs "github.com/lestrrat-go/file-rotatelogs"
"go.uber.org/zap"
Expand Down
8 changes: 4 additions & 4 deletions recorder-agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"net"
"runtime/debug"

"github.com/didichuxing/sharingan/proto"
"github.com/didichuxing/sharingan/recorder-agent/common/conf"
"github.com/didichuxing/sharingan/recorder-agent/common/zap"
"github.com/didichuxing/sharingan/recorder-agent/record"
"github.com/didi/sharingan/proto"
"github.com/didi/sharingan/recorder-agent/common/conf"
"github.com/didi/sharingan/recorder-agent/common/zap"
"github.com/didi/sharingan/recorder-agent/record"

"google.golang.org/grpc"
)
Expand Down
2 changes: 1 addition & 1 deletion recorder/hook/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net"
"syscall"

"github.com/didichuxing/sharingan/recorder/sut"
"github.com/didi/sharingan/recorder/sut"

"github.com/v2pro/plz/countlog"
)
Expand Down
2 changes: 1 addition & 1 deletion recorder/sut/thread.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"
"unsafe"

"github.com/didichuxing/sharingan/recorder/recording"
"github.com/didi/sharingan/recorder/recording"

"github.com/v2pro/plz/countlog"
)
Expand Down
2 changes: 1 addition & 1 deletion replayer-agent/common/handlers/httpclient/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/http"
"time"

"github.com/didichuxing/sharingan/replayer-agent/common/handlers/tlog"
"github.com/didi/sharingan/replayer-agent/common/handlers/tlog"
)

type HttpClient struct {
Expand Down
10 changes: 5 additions & 5 deletions replayer-agent/common/handlers/httpserv/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
"syscall"
"time"

"github.com/didichuxing/sharingan/replayer-agent/common/handlers/conf"
"github.com/didichuxing/sharingan/replayer-agent/common/handlers/tlog"
"github.com/didichuxing/sharingan/replayer-agent/logic/worker"
"github.com/didichuxing/sharingan/replayer-agent/router"
"github.com/didichuxing/sharingan/replayer-agent/utils/helper"
"github.com/didi/sharingan/replayer-agent/common/handlers/conf"
"github.com/didi/sharingan/replayer-agent/common/handlers/tlog"
"github.com/didi/sharingan/replayer-agent/logic/worker"
"github.com/didi/sharingan/replayer-agent/router"
"github.com/didi/sharingan/replayer-agent/utils/helper"
)

var srv *http.Server
Expand Down
4 changes: 2 additions & 2 deletions replayer-agent/common/handlers/outbound/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"log"
"net"

"github.com/didichuxing/sharingan/replayer-agent/common/handlers/conf"
"github.com/didichuxing/sharingan/replayer-agent/logic/outbound"
"github.com/didi/sharingan/replayer-agent/common/handlers/conf"
"github.com/didi/sharingan/replayer-agent/logic/outbound"
)

var BasePort int
Expand Down
2 changes: 1 addition & 1 deletion replayer-agent/common/handlers/template/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"html/template"
"net/http"

"github.com/didichuxing/sharingan/replayer-agent/common/handlers/conf"
"github.com/didi/sharingan/replayer-agent/common/handlers/conf"
)

var Handler *template.Template
Expand Down
4 changes: 2 additions & 2 deletions replayer-agent/common/handlers/tlog/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strings"
"time"

"github.com/didichuxing/sharingan/recorder-agent/common/conf"
"github.com/didichuxing/sharingan/recorder-agent/common/path"
"github.com/didi/sharingan/recorder-agent/common/conf"
"github.com/didi/sharingan/recorder-agent/common/path"

rotatelogs "github.com/lestrrat-go/file-rotatelogs"
"go.uber.org/zap"
Expand Down
2 changes: 1 addition & 1 deletion replayer-agent/control_glide.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function build() {
fi

if [ -z $GOPATH ];then
prePath="/src/github.com/didichuxing/sharingan"
prePath="/src/github.com/didi/sharingan"
if [[ $workspace == *$prePath* ]];then
export GOPATH=`echo ${workspace%/src/*}`
if [ $? -ne 0 ]; then
Expand Down
30 changes: 15 additions & 15 deletions replayer-agent/controller/sharingan.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ import (
"sync"
"time"

"github.com/didichuxing/sharingan/replayer-agent/common/global"
"github.com/didichuxing/sharingan/replayer-agent/common/handlers/conf"
"github.com/didichuxing/sharingan/replayer-agent/common/handlers/httpclient"
"github.com/didichuxing/sharingan/replayer-agent/common/handlers/module"
"github.com/didichuxing/sharingan/replayer-agent/common/handlers/outbound"
"github.com/didichuxing/sharingan/replayer-agent/common/handlers/template"
"github.com/didichuxing/sharingan/replayer-agent/common/handlers/tlog"
"github.com/didichuxing/sharingan/replayer-agent/idl"
"github.com/didichuxing/sharingan/replayer-agent/logic/bind"
"github.com/didichuxing/sharingan/replayer-agent/logic/replayed"
"github.com/didichuxing/sharingan/replayer-agent/logic/search"
"github.com/didichuxing/sharingan/replayer-agent/logic/worker"
"github.com/didichuxing/sharingan/replayer-agent/model/esmodel"
"github.com/didichuxing/sharingan/replayer-agent/model/nuwaplt"
"github.com/didichuxing/sharingan/replayer-agent/utils/helper"
"github.com/didi/sharingan/replayer-agent/common/global"
"github.com/didi/sharingan/replayer-agent/common/handlers/conf"
"github.com/didi/sharingan/replayer-agent/common/handlers/httpclient"
"github.com/didi/sharingan/replayer-agent/common/handlers/module"
"github.com/didi/sharingan/replayer-agent/common/handlers/outbound"
"github.com/didi/sharingan/replayer-agent/common/handlers/template"
"github.com/didi/sharingan/replayer-agent/common/handlers/tlog"
"github.com/didi/sharingan/replayer-agent/idl"
"github.com/didi/sharingan/replayer-agent/logic/bind"
"github.com/didi/sharingan/replayer-agent/logic/replayed"
"github.com/didi/sharingan/replayer-agent/logic/search"
"github.com/didi/sharingan/replayer-agent/logic/worker"
"github.com/didi/sharingan/replayer-agent/model/esmodel"
"github.com/didi/sharingan/replayer-agent/model/nuwaplt"
"github.com/didi/sharingan/replayer-agent/utils/helper"

jsoniter "github.com/json-iterator/go"
"github.com/julienschmidt/httprouter"
Expand Down
2 changes: 1 addition & 1 deletion replayer-agent/install/codeCov/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"syscall"
"testing"

_ "github.com/didichuxing/sharingan"
_ "github.com/didi/sharingan"
)

var systemTest *bool
Expand Down
2 changes: 1 addition & 1 deletion replayer-agent/install/codeCov/main_with_flag/main_flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"
"syscall"

_ "github.com/didichuxing/sharingan"
_ "github.com/didi/sharingan"
// TODO:最后import其他业务包!
)

Expand Down
2 changes: 1 addition & 1 deletion replayer-agent/logic/bind/binder.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"
"strings"

"github.com/didichuxing/sharingan/replayer-agent/common/handlers/tlog"
"github.com/didi/sharingan/replayer-agent/common/handlers/tlog"

"github.com/ppltools/binding"
)
Expand Down
14 changes: 7 additions & 7 deletions replayer-agent/logic/match/match.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import (
"regexp"
"sync"

"github.com/didichuxing/sharingan/replayer-agent/common/global"
"github.com/didichuxing/sharingan/replayer-agent/common/handlers/tlog"
"github.com/didichuxing/sharingan/replayer-agent/logic/replayed"
"github.com/didichuxing/sharingan/replayer-agent/model/protocol"
"github.com/didichuxing/sharingan/replayer-agent/model/recording"
"github.com/didichuxing/sharingan/replayer-agent/model/replaying"
"github.com/didichuxing/sharingan/replayer-agent/utils/helper"
"github.com/didi/sharingan/replayer-agent/common/global"
"github.com/didi/sharingan/replayer-agent/common/handlers/tlog"
"github.com/didi/sharingan/replayer-agent/logic/replayed"
"github.com/didi/sharingan/replayer-agent/model/protocol"
"github.com/didi/sharingan/replayer-agent/model/recording"
"github.com/didi/sharingan/replayer-agent/model/replaying"
"github.com/didi/sharingan/replayer-agent/utils/helper"
)

var expect100 = []byte("Expect: 100-continue")
Expand Down
10 changes: 5 additions & 5 deletions replayer-agent/logic/outbound/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
"strconv"
"time"

"github.com/didichuxing/sharingan/replayer-agent/common/handlers/tlog"
"github.com/didichuxing/sharingan/replayer-agent/model/pool"
"github.com/didichuxing/sharingan/replayer-agent/model/recording"
"github.com/didichuxing/sharingan/replayer-agent/model/replaying"
"github.com/didichuxing/sharingan/replayer-agent/utils/helper"
"github.com/didi/sharingan/replayer-agent/common/handlers/tlog"
"github.com/didi/sharingan/replayer-agent/model/pool"
"github.com/didi/sharingan/replayer-agent/model/recording"
"github.com/didi/sharingan/replayer-agent/model/replaying"
"github.com/didi/sharingan/replayer-agent/utils/helper"
)

// 回放流量标识,示例:/*{"rid":"7f0000015e7885919ead09b93a768bb0","addr":"127.0.0.1:8888"}*/
Expand Down
2 changes: 1 addition & 1 deletion replayer-agent/logic/outbound/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"context"
"strconv"

"github.com/didichuxing/sharingan/replayer-agent/common/handlers/tlog"
"github.com/didi/sharingan/replayer-agent/common/handlers/tlog"
)

var http100req = []byte("Expect: 100-continue")
Expand Down
Loading

0 comments on commit 350ed00

Please sign in to comment.