Skip to content

Commit

Permalink
chore: rename mod
Browse files Browse the repository at this point in the history
  • Loading branch information
andeya committed Jun 26, 2022
1 parent 9958b57 commit b9b3345
Show file tree
Hide file tree
Showing 129 changed files with 527 additions and 619 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2015-2019 HenryLee
Copyright 2022 AndeyaLee

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
88 changes: 44 additions & 44 deletions README.md

Large diffs are not rendered by default.

86 changes: 43 additions & 43 deletions README_ZH.md

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions codec/_jsoniter_codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ import (
"bytes"
"io"

"github.com/json-iterator/go"

"github.com/henrylee2cn/erpc/v6/utils"
"github.com/andeya/erpc/v7/utils"
)

// json codec name and id
Expand Down
2 changes: 1 addition & 1 deletion codec/form_codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"strconv"
"time"

"github.com/henrylee2cn/goutil"
"github.com/andeya/goutil"
)

// form(url encode) codec name and id
Expand Down
2 changes: 1 addition & 1 deletion codec/plain_codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"reflect"
"strconv"

"github.com/henrylee2cn/goutil"
"github.com/andeya/goutil"
)

// plain text codec name and id
Expand Down
10 changes: 5 additions & 5 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ import (
"strconv"
"time"

"github.com/henrylee2cn/cfgo"
"github.com/henrylee2cn/erpc/v6/codec"
"github.com/henrylee2cn/erpc/v6/socket"
"github.com/andeya/cfgo"
"github.com/andeya/erpc/v7/codec"
"github.com/andeya/erpc/v7/socket"
)

// PeerConfig peer config
// NOTE:
// yaml tag is used for github.com/henrylee2cn/cfgo
// ini tag is used for github.com/henrylee2cn/ini
// yaml tag is used for github.com/andeya/cfgo
// ini tag is used for github.com/andeya/ini
type PeerConfig struct {
Network string `yaml:"network" ini:"network" comment:"Network; tcp, tcp4, tcp6, unix, unixpacket, kcp or quic"`
LocalIP string `yaml:"local_ip" ini:"local_ip" comment:"Local IP"`
Expand Down
8 changes: 4 additions & 4 deletions context.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"sync"
"time"

"github.com/henrylee2cn/erpc/v6/codec"
"github.com/henrylee2cn/erpc/v6/socket"
"github.com/henrylee2cn/erpc/v6/utils"
"github.com/henrylee2cn/goutil"
"github.com/andeya/erpc/v7/codec"
"github.com/andeya/erpc/v7/socket"
"github.com/andeya/erpc/v7/utils"
"github.com/andeya/goutil"
)

type (
Expand Down
4 changes: 2 additions & 2 deletions dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"net"
"time"

"github.com/henrylee2cn/erpc/v6/kcp"
"github.com/henrylee2cn/erpc/v6/quic"
"github.com/andeya/erpc/v7/kcp"
"github.com/andeya/erpc/v7/quic"
)

// Dialer dial-up connection
Expand Down
68 changes: 34 additions & 34 deletions doc/erpc_socket_heap_torch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
82 changes: 41 additions & 41 deletions doc/erpc_socket_profile_torch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 34 additions & 34 deletions doc/tp_socket_heap_torch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
82 changes: 41 additions & 41 deletions doc/tp_socket_profile_torch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions erpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package erpc_test
import (
"testing"
"time"

"github.com/henrylee2cn/erpc/v6"
)

func panic_call(erpc.CallCtx, *interface{}) (interface{}, *erpc.Status) {
Expand Down
2 changes: 0 additions & 2 deletions examples/age/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package main
import (
"context"
"time"

"github.com/henrylee2cn/erpc/v6"
)

//go:generate go build $GOFILE
Expand Down
2 changes: 0 additions & 2 deletions examples/age/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package main
import (
"context"
"time"

"github.com/henrylee2cn/erpc/v6"
)

//go:generate go build $GOFILE
Expand Down
2 changes: 0 additions & 2 deletions examples/async/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package main
import (
"fmt"
"time"

"github.com/henrylee2cn/erpc/v6"
)

//go:generate go build $GOFILE
Expand Down
2 changes: 0 additions & 2 deletions examples/async/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package main

import (
"time"

"github.com/henrylee2cn/erpc/v6"
)

//go:generate go build $GOFILE
Expand Down
7 changes: 3 additions & 4 deletions examples/bench/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import (
"sync/atomic"
"time"

"github.com/henrylee2cn/erpc/v6"
"github.com/henrylee2cn/erpc/v6/examples/bench/msg"
"github.com/andeya/erpc/v7/examples/bench/msg"
"github.com/montanaflynn/stats"
)

Expand Down Expand Up @@ -66,7 +65,7 @@ func main() {

d := make([][]int64, n, n)

//it contains warmup time but we can ignore it
// it contains warmup time but we can ignore it
totalT := time.Now().UnixNano()
for i := 0; i < n; i++ {
dt := make([]int64, 0, m)
Expand All @@ -87,7 +86,7 @@ func main() {

var reply msg.BenchmarkMessage

//warmup
// warmup
for j := 0; j < 5; j++ {
sess.Call(serviceMethod, args, &reply)
}
Expand Down
7 changes: 3 additions & 4 deletions examples/bench/mclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ import (
"sync/atomic"
"time"

"github.com/andeya/erpc/v7/examples/bench/msg"
proto "github.com/gogo/protobuf/proto"
"github.com/henrylee2cn/erpc/v6"
"github.com/henrylee2cn/erpc/v6/examples/bench/msg"
"github.com/montanaflynn/stats"
)

Expand Down Expand Up @@ -58,7 +57,7 @@ func main() {

d := make([][]int64, n, n)

//it contains warmup time but we can ignore it
// it contains warmup time but we can ignore it
totalT := time.Now().UnixNano()
for i := 0; i < n; i++ {
dt := make([]int64, 0, m)
Expand All @@ -73,7 +72,7 @@ func main() {
defer sess.Close()
var reply msg.BenchmarkMessage

//warmup
// warmup
for j := 0; j < 5; j++ {
sess.Call(serviceMethod, args, &reply)
}
Expand Down
3 changes: 1 addition & 2 deletions examples/bench/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import (
"runtime"
"time"

"github.com/henrylee2cn/erpc/v6"
"github.com/henrylee2cn/erpc/v6/examples/bench/msg"
"github.com/andeya/erpc/v7/examples/bench/msg"
)

//go:generate go build $GOFILE
Expand Down
2 changes: 0 additions & 2 deletions examples/bytes/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package main

import (
"time"

"github.com/henrylee2cn/erpc/v6"
)

//go:generate go build $GOFILE
Expand Down
2 changes: 0 additions & 2 deletions examples/bytes/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package main

import (
"time"

"github.com/henrylee2cn/erpc/v6"
)

//go:generate go build $GOFILE
Expand Down
4 changes: 2 additions & 2 deletions examples/config/client.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/henrylee2cn/cfgo"
"github.com/henrylee2cn/erpc/v6"
"github.com/andeya/cfgo"
"github.com/andeya/erpc/v7"
)

//go:generate go build $GOFILE
Expand Down
3 changes: 1 addition & 2 deletions examples/config/server.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package main

import (
"github.com/henrylee2cn/cfgo"
"github.com/henrylee2cn/erpc/v6"
"github.com/andeya/cfgo"
)

//go:generate go build $GOFILE
Expand Down
4 changes: 2 additions & 2 deletions examples/detail/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/json"
"time"

"github.com/henrylee2cn/erpc/v6"
"github.com/henrylee2cn/erpc/v6/xfer/gzip"
"github.com/andeya/erpc/v7"
"github.com/andeya/erpc/v7/xfer/gzip"
)

//go:generate go build $GOFILE
Expand Down
5 changes: 2 additions & 3 deletions examples/detail/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import (
"encoding/json"
"time"

"github.com/henrylee2cn/erpc/v6/xfer/gzip"

"github.com/henrylee2cn/erpc/v6"
"github.com/andeya/erpc/v7"
"github.com/andeya/erpc/v7/xfer/gzip"
)

//go:generate go build $GOFILE
Expand Down
6 changes: 2 additions & 4 deletions examples/early_comm/client.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package main

import (
"github.com/henrylee2cn/erpc/v6"
)
import "github.com/andeya/erpc/v7"

//go:generate go build $GOFILE

Expand Down Expand Up @@ -32,7 +30,7 @@ func (e *earlyCall) PostDial(sess erpc.PreSession, isRedial bool) *erpc.Status {
erpc.TypeCall,
"/early/ping",
map[string]string{
"author": "henrylee2cn",
"author": "andeya",
},
nil,
)
Expand Down
6 changes: 2 additions & 4 deletions examples/early_comm/server.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package main

import (
"github.com/henrylee2cn/erpc/v6"
)
import "github.com/andeya/erpc/v7"

//go:generate go build $GOFILE

Expand Down Expand Up @@ -43,7 +41,7 @@ func (e *earlyResult) PostAccept(sess erpc.PreSession) *erpc.Status {
stat = erpc.NewStatus(10005, "unexpected request", "")
} else {
body := *input.Body().(*map[string]string)
if body["author"] != "henrylee2cn" {
if body["author"] != "andeya" {
stat = erpc.NewStatus(10005, "incorrect author", body["author"])
} else {
stat = nil
Expand Down
4 changes: 0 additions & 4 deletions examples/group/client.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package main

import (
"github.com/henrylee2cn/erpc/v6"
)

//go:generate go build $GOFILE

func main() {
Expand Down
2 changes: 0 additions & 2 deletions examples/group/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package main
import (
"fmt"
"time"

"github.com/henrylee2cn/erpc/v6"
)

//go:generate go build $GOFILE
Expand Down
4 changes: 1 addition & 3 deletions examples/kcp/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package main

import (
"time"

"github.com/henrylee2cn/erpc/v6"
)

//go:generate go build $GOFILE
Expand All @@ -29,7 +27,7 @@ func main() {
stat = sess.Call("/math/add",
[]int{1, 2, 3, 4, 5},
&result,
erpc.WithAddMeta("author", "henrylee2cn"),
erpc.WithAddMeta("author", "andeya"),
).Status()
if !stat.OK() {
erpc.Fatalf("%v", stat)
Expand Down
2 changes: 0 additions & 2 deletions examples/kcp/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package main
import (
"fmt"
"time"

"github.com/henrylee2cn/erpc/v6"
)

//go:generate go build $GOFILE
Expand Down
4 changes: 2 additions & 2 deletions examples/plugin-tps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ tps statistics requests per second.

### Usage

`import tps "github.com/henrylee2cn/tp-ext/plugin-tps"`
`import tps "github.com/andeya/tp-ext/plugin-tps"`

#### Test

Expand All @@ -15,7 +15,7 @@ import (
"testing"
"time"

"github.com/henrylee2cn/erpc/v6"
"github.com/andeya/erpc/v7"
)

type Call struct {
Expand Down
2 changes: 0 additions & 2 deletions examples/plugin-tps/tps.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import (
"sync"
"sync/atomic"
"time"

"github.com/henrylee2cn/erpc/v6"
)

//go:generate go build $GOFILE
Expand Down
2 changes: 0 additions & 2 deletions examples/plugin-tps/tps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package erpcs
import (
"testing"
"time"

"github.com/henrylee2cn/erpc/v6"
)

type Call struct {
Expand Down
3 changes: 1 addition & 2 deletions examples/proxy_and_seq/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ package main
import (
"fmt"

"github.com/henrylee2cn/erpc/v6"
"github.com/henrylee2cn/erpc/v6/socket"
"github.com/andeya/erpc/v7/socket"
)

//go:generate go build $GOFILE
Expand Down
3 changes: 1 addition & 2 deletions examples/proxy_and_seq/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ package main
import (
"time"

"github.com/henrylee2cn/erpc/v6"
"github.com/henrylee2cn/erpc/v6/plugin/proxy"
"github.com/andeya/erpc/v7/plugin/proxy"
)

//go:generate go build $GOFILE
Expand Down
Loading

0 comments on commit b9b3345

Please sign in to comment.