1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-11-06 08:29:15 +02:00
* v3

* revert plugins

* fixup some issues
This commit is contained in:
Asim Aslam
2021-01-20 13:54:31 +00:00
committed by GitHub
parent bf4ab679e1
commit d94936f6c9
369 changed files with 1442 additions and 817 deletions

View File

@@ -7,9 +7,9 @@ import (
"strings"
proto "github.com/micro/go-micro/examples/api/api/proto"
"github.com/micro/go-micro/v2"
api "github.com/micro/go-micro/v2/api/proto"
"github.com/micro/go-micro/v2/errors"
"github.com/asim/go-micro/v3"
api "github.com/asim/go-micro/v3/api/proto"
"github.com/asim/go-micro/v3/errors"
)
type Example struct{}

View File

@@ -6,14 +6,14 @@ package api
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
proto1 "github.com/micro/go-micro/v2/api/proto"
proto1 "github.com/asim/go-micro/v3/api/proto"
math "math"
)
import (
context "context"
client "github.com/micro/go-micro/v2/client"
server "github.com/micro/go-micro/v2/server"
client "github.com/asim/go-micro/v3/client"
server "github.com/asim/go-micro/v3/server"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@@ -6,7 +6,7 @@ package api
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/micro/go-micro/v2/api/proto"
_ "github.com/asim/go-micro/v3/api/proto"
math "math"
)

View File

@@ -1,6 +1,6 @@
syntax = "proto3";
import "github.com/micro/go-micro/v2/api/proto/api.proto";
import "github.com/asim/go-micro/v3/api/proto/api.proto";
service Example {
rpc Call(go.api.Request) returns(go.api.Response) {};

View File

@@ -4,11 +4,11 @@ import (
"log"
proto "github.com/micro/go-micro/examples/api/rpc/proto"
"github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/api"
rapi "github.com/micro/go-micro/v2/api/handler/api"
"github.com/micro/go-micro/v2/api/handler/rpc"
"github.com/micro/go-micro/v2/errors"
"github.com/asim/go-micro/v3"
"github.com/asim/go-micro/v3/api"
rapi "github.com/asim/go-micro/v3/api/handler/api"
"github.com/asim/go-micro/v3/api/handler/rpc"
"github.com/asim/go-micro/v3/errors"
"context"
)

View File

@@ -21,8 +21,8 @@ import math "math"
import (
context "context"
client "github.com/micro/go-micro/v2/client"
server "github.com/micro/go-micro/v2/server"
client "github.com/asim/go-micro/v3/client"
server "github.com/asim/go-micro/v3/server"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@@ -5,8 +5,8 @@ import (
"log"
"net/http"
"github.com/micro/go-micro/v2/errors"
"github.com/micro/go-micro/v2/web"
"github.com/asim/go-micro/v3/errors"
"github.com/asim/go-micro/v3/web"
)
// exampleCall will handle /example/call

View File

@@ -21,8 +21,8 @@ import math "math"
import (
context "context"
client "github.com/micro/go-micro/v2/client"
server "github.com/micro/go-micro/v2/server"
client "github.com/asim/go-micro/v3/client"
server "github.com/asim/go-micro/v3/server"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@@ -4,8 +4,8 @@ import (
"log"
proto "github.com/micro/go-micro/examples/api/rpc/proto"
"github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/errors"
"github.com/asim/go-micro/v3"
"github.com/asim/go-micro/v3/errors"
"context"
)

View File

@@ -18,10 +18,10 @@ import (
"github.com/micro/go-micro/examples/booking/srv/geo/proto"
"github.com/micro/go-micro/examples/booking/srv/profile/proto"
"github.com/micro/go-micro/examples/booking/srv/rate/proto"
"github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/client"
merr "github.com/micro/go-micro/v2/errors"
"github.com/micro/go-micro/v2/metadata"
"github.com/asim/go-micro/v3"
"github.com/asim/go-micro/v3/client"
merr "github.com/asim/go-micro/v3/errors"
"github.com/asim/go-micro/v3/metadata"
)
const (

View File

@@ -21,8 +21,8 @@ import _ "github.com/micro/go-micro/examples/booking/srv/rate/proto"
import (
context "context"
client "github.com/micro/go-micro/v2/client"
server "github.com/micro/go-micro/v2/server"
client "github.com/asim/go-micro/v3/client"
server "github.com/asim/go-micro/v3/server"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@@ -11,8 +11,8 @@ import (
"context"
"golang.org/x/net/trace"
"github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/metadata"
"github.com/asim/go-micro/v3"
"github.com/asim/go-micro/v3/metadata"
)
type Auth struct {

View File

@@ -20,8 +20,8 @@ import math "math"
import (
context "context"
client "github.com/micro/go-micro/v2/client"
server "github.com/micro/go-micro/v2/server"
client "github.com/asim/go-micro/v3/client"
server "github.com/asim/go-micro/v3/server"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@@ -11,8 +11,8 @@ import (
"context"
"golang.org/x/net/trace"
"github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/metadata"
"github.com/asim/go-micro/v3"
"github.com/asim/go-micro/v3/metadata"
)
const (

View File

@@ -19,8 +19,8 @@ import math "math"
import (
context "context"
client "github.com/micro/go-micro/v2/client"
server "github.com/micro/go-micro/v2/server"
client "github.com/asim/go-micro/v3/client"
server "github.com/asim/go-micro/v3/server"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@@ -10,8 +10,8 @@ import (
"context"
"golang.org/x/net/trace"
"github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/metadata"
"github.com/asim/go-micro/v3"
"github.com/asim/go-micro/v3/metadata"
)
type Profile struct {

View File

@@ -22,8 +22,8 @@ import math "math"
import (
context "context"
client "github.com/micro/go-micro/v2/client"
server "github.com/micro/go-micro/v2/server"
client "github.com/asim/go-micro/v3/client"
server "github.com/asim/go-micro/v3/server"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@@ -10,8 +10,8 @@ import (
"context"
"golang.org/x/net/trace"
"github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/metadata"
"github.com/asim/go-micro/v3"
"github.com/asim/go-micro/v3/metadata"
)
type stay struct {

View File

@@ -21,8 +21,8 @@ import math "math"
import (
context "context"
client "github.com/micro/go-micro/v2/client"
server "github.com/micro/go-micro/v2/server"
client "github.com/asim/go-micro/v3/client"
server "github.com/asim/go-micro/v3/server"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@@ -4,8 +4,8 @@ import (
"fmt"
"log"
"github.com/micro/go-micro/v2/broker"
"github.com/micro/go-micro/v2/config/cmd"
"github.com/asim/go-micro/v3/broker"
"github.com/asim/go-micro/v3/config/cmd"
// To enable rabbitmq plugin uncomment
//_ "github.com/micro/go-plugins/broker/rabbitmq"
)

View File

@@ -5,8 +5,8 @@ import (
"log"
"time"
"github.com/micro/go-micro/v2/broker"
"github.com/micro/go-micro/v2/config/cmd"
"github.com/asim/go-micro/v3/broker"
"github.com/asim/go-micro/v3/config/cmd"
)
var (

View File

@@ -5,8 +5,8 @@ import (
"log"
"time"
"github.com/micro/go-micro/v2/broker"
"github.com/micro/go-micro/v2/config/cmd"
"github.com/asim/go-micro/v3/broker"
"github.com/asim/go-micro/v3/config/cmd"
// To enable rabbitmq plugin uncomment
//_ "github.com/micro/go-plugins/broker/rabbitmq"
)

View File

@@ -133,7 +133,7 @@ import (
"fmt"
"context"
"github.com/micro/go-micro/v2/client"
"github.com/asim/go-micro/v3/client"
hello "path/to/hello/proto"
)

View File

@@ -5,7 +5,7 @@ import (
"context"
example "github.com/micro/go-micro/examples/server/proto/example"
"github.com/micro/go-micro/v2/config/cmd"
"github.com/asim/go-micro/v3/config/cmd"
)
var (

View File

@@ -6,11 +6,11 @@ import (
"math/rand"
"time"
"github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/client/selector"
"github.com/micro/go-micro/v2/config/cmd"
"github.com/micro/go-micro/v2/metadata"
"github.com/micro/go-micro/v2/registry"
"github.com/asim/go-micro/v3/client"
"github.com/asim/go-micro/v3/client/selector"
"github.com/asim/go-micro/v3/config/cmd"
"github.com/asim/go-micro/v3/metadata"
"github.com/asim/go-micro/v3/registry"
example "github.com/micro/go-micro/examples/server/proto/example"
)

View File

@@ -7,10 +7,10 @@ import (
"sync"
"time"
"github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/client/selector"
"github.com/micro/go-micro/v2/config/cmd"
"github.com/micro/go-micro/v2/registry"
"github.com/asim/go-micro/v3/client"
"github.com/asim/go-micro/v3/client/selector"
"github.com/asim/go-micro/v3/config/cmd"
"github.com/asim/go-micro/v3/registry"
example "github.com/micro/go-micro/examples/server/proto/example"
)

View File

@@ -5,9 +5,9 @@ import (
"context"
example "github.com/micro/go-micro/examples/server/proto/example"
"github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/metadata"
"github.com/asim/go-micro/v3"
"github.com/asim/go-micro/v3/client"
"github.com/asim/go-micro/v3/metadata"
)
// publishes a message

View File

@@ -5,7 +5,7 @@ import (
"context"
example "github.com/micro/go-micro/examples/server/proto/example"
"github.com/micro/go-micro/v2"
"github.com/asim/go-micro/v3"
)
// publishes a message

View File

@@ -7,10 +7,10 @@ import (
"time"
example "github.com/micro/go-micro/examples/server/proto/example"
"github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/client/selector"
"github.com/micro/go-micro/v2/config/cmd"
"github.com/micro/go-micro/v2/registry"
"github.com/asim/go-micro/v3/client"
"github.com/asim/go-micro/v3/client/selector"
"github.com/asim/go-micro/v3/config/cmd"
"github.com/asim/go-micro/v3/registry"
)
func init() {

View File

@@ -6,10 +6,10 @@ import (
"context"
example "github.com/micro/go-micro/examples/server/proto/example"
"github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/config/cmd"
"github.com/micro/go-micro/v2/metadata"
"github.com/micro/go-micro/v2/registry"
"github.com/asim/go-micro/v3/client"
"github.com/asim/go-micro/v3/config/cmd"
"github.com/asim/go-micro/v3/metadata"
"github.com/asim/go-micro/v3/registry"
)
// wrapper example code

View File

@@ -5,9 +5,9 @@ import (
"strings"
"context"
"github.com/micro/go-micro/v2"
"github.com/asim/go-micro/v3"
proto "github.com/micro/go-micro/v2/agent/proto"
proto "github.com/asim/go-micro/v3/agent/proto"
)
type Command struct{}

View File

@@ -3,8 +3,8 @@ package main
import (
"fmt"
"github.com/micro/go-micro/v2/config"
"github.com/micro/go-micro/v2/config/source/file"
"github.com/asim/go-micro/v3/config"
"github.com/asim/go-micro/v3/config/source/file"
)
func main() {

View File

@@ -1,8 +1,8 @@
package main
import (
"github.com/micro/go-micro/v2/config"
"github.com/micro/go-micro/v2/util/log"
"github.com/asim/go-micro/v3/config"
"github.com/asim/go-micro/v3/util/log"
grpcConfig "github.com/micro/go-plugins/config/source/grpc/v2"
)

View File

@@ -9,9 +9,9 @@ import (
"sync"
"time"
"github.com/micro/go-micro/v2/config"
"github.com/micro/go-micro/v2/config/source/file"
"github.com/micro/go-micro/v2/util/log"
"github.com/asim/go-micro/v3/config"
"github.com/asim/go-micro/v3/config/source/file"
"github.com/asim/go-micro/v3/util/log"
proto "github.com/micro/go-plugins/config/source/grpc/v2/proto"
grpc "google.golang.org/grpc"
)

View File

@@ -4,10 +4,10 @@ import (
"fmt"
"io/ioutil"
"github.com/micro/go-micro/v2/config"
"github.com/micro/go-micro/v2/config/encoder/toml"
"github.com/micro/go-micro/v2/config/source"
"github.com/micro/go-micro/v2/config/source/file"
"github.com/asim/go-micro/v3/config"
"github.com/asim/go-micro/v3/config/encoder/toml"
"github.com/asim/go-micro/v3/config/source"
"github.com/asim/go-micro/v3/config/source/file"
)
func main() {

View File

@@ -3,9 +3,9 @@ package main
import (
"context"
"github.com/micro/go-micro/v2"
proto "github.com/micro/go-micro/v2/api/proto"
"github.com/micro/go-micro/v2/util/log"
"github.com/asim/go-micro/v3"
proto "github.com/asim/go-micro/v3/api/proto"
"github.com/asim/go-micro/v3/util/log"
)
// All methods of Event will be executed when a message is received

View File

@@ -6,7 +6,7 @@ import (
"github.com/micro/go-micro/examples/filter/version"
proto "github.com/micro/go-micro/examples/service/proto"
"github.com/micro/go-micro/v2"
"github.com/asim/go-micro/v3"
)
func main() {

View File

@@ -2,9 +2,9 @@
package version
import (
"github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/client/selector"
"github.com/micro/go-micro/v2/registry"
"github.com/asim/go-micro/v3/client"
"github.com/asim/go-micro/v3/client/selector"
"github.com/asim/go-micro/v3/registry"
)
// Filter will filter the version of the service

View File

@@ -5,7 +5,7 @@ import (
"os"
"github.com/micro/cli/v2"
"github.com/micro/go-micro/v2"
"github.com/asim/go-micro/v3"
)
func main() {

View File

@@ -9,9 +9,9 @@ import (
"strings"
proto "github.com/micro/go-micro/examples/form/api/proto"
"github.com/micro/go-micro/v2"
api "github.com/micro/go-micro/v2/api/proto"
"github.com/micro/go-micro/v2/util/log"
"github.com/asim/go-micro/v3"
api "github.com/asim/go-micro/v3/api/proto"
"github.com/asim/go-micro/v3/util/log"
)
type Form struct{}

View File

@@ -6,14 +6,14 @@ package api
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
proto1 "github.com/micro/go-micro/v2/api/proto"
proto1 "github.com/asim/go-micro/v3/api/proto"
math "math"
)
import (
context "context"
client "github.com/micro/go-micro/v2/client"
server "github.com/micro/go-micro/v2/server"
client "github.com/asim/go-micro/v3/client"
server "github.com/asim/go-micro/v3/server"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@@ -6,7 +6,7 @@ package api
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/micro/go-micro/v2/api/proto"
_ "github.com/asim/go-micro/v3/api/proto"
math "math"
)

View File

@@ -1,6 +1,6 @@
syntax = "proto3";
import "github.com/micro/go-micro/v2/api/proto/api.proto";
import "github.com/asim/go-micro/v3/api/proto/api.proto";
service Form {
// regular form

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"net/http"
"github.com/micro/go-micro/v2/web"
"github.com/asim/go-micro/v3/web"
)
func index(w http.ResponseWriter, r *http.Request) {

View File

@@ -4,7 +4,7 @@ import (
"context"
proto "github.com/micro/go-micro/examples/function/proto"
"github.com/micro/go-micro/v2"
"github.com/asim/go-micro/v3"
)
type Greeter struct{}

View File

@@ -19,8 +19,8 @@ import math "math"
import (
context "context"
client "github.com/micro/go-micro/v2/client"
server "github.com/micro/go-micro/v2/server"
client "github.com/asim/go-micro/v3/client"
server "github.com/asim/go-micro/v3/server"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@@ -5,8 +5,8 @@ import (
"fmt"
proto "github.com/micro/go-micro/examples/service/proto"
"github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/metadata"
"github.com/asim/go-micro/v3"
"github.com/asim/go-micro/v3/metadata"
)
type Greeter struct{}

View File

@@ -19,8 +19,8 @@ import math "math"
import (
context "context"
client "github.com/micro/go-micro/v2/client"
server "github.com/micro/go-micro/v2/server"
client "github.com/asim/go-micro/v3/client"
server "github.com/asim/go-micro/v3/server"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@@ -27,7 +27,7 @@ require (
github.com/grpc-ecosystem/grpc-gateway v1.12.1
github.com/hailocab/go-geoindex v0.0.0-20160127134810-64631bfe9711
github.com/micro/cli/v2 v2.1.2
github.com/micro/go-micro/v2 v2.4.0
github.com/asim/go-micro/v3 v2.4.0
github.com/micro/go-plugins/broker/grpc/v2 v2.3.0
github.com/micro/go-plugins/client/selector/static/v2 v2.3.0
github.com/micro/go-plugins/config/source/configmap/v2 v2.3.0

View File

@@ -338,10 +338,10 @@ github.com/mholt/certmagic v0.9.3 h1:RmzuNJ5mpFplDbyS41z+gGgE/py24IX6m0nHZ0yNTQU
github.com/mholt/certmagic v0.9.3/go.mod h1:nu8jbsbtwK4205EDH/ZUMTKsfYpJA1Q7MKXHfgTihNw=
github.com/micro/cli/v2 v2.1.2 h1:43J1lChg/rZCC1rvdqZNFSQDrGT7qfMrtp6/ztpIkEM=
github.com/micro/cli/v2 v2.1.2/go.mod h1:EguNh6DAoWKm9nmk+k/Rg0H3lQnDxqzu5x5srOtGtYg=
github.com/micro/go-micro/v2 v2.3.0/go.mod h1:GR69d1AXMg/WjMNf/7K1VO6hCBJDIpqCqnVYNTV6M5w=
github.com/micro/go-micro/v2 v2.3.1-0.20200331090613-76ade7efd9b8/go.mod h1:lYuHYFPjY3QE9fdiy3F2awXcsXTdB68AwoY3RQ3dPN4=
github.com/micro/go-micro/v2 v2.4.0 h1:icFvqf8fof8bObqgDHGoiUCMuKwOCyWTGXaQjZDgEnE=
github.com/micro/go-micro/v2 v2.4.0/go.mod h1:lYuHYFPjY3QE9fdiy3F2awXcsXTdB68AwoY3RQ3dPN4=
github.com/asim/go-micro/v3 v2.3.0/go.mod h1:GR69d1AXMg/WjMNf/7K1VO6hCBJDIpqCqnVYNTV6M5w=
github.com/asim/go-micro/v3 v2.3.1-0.20200331090613-76ade7efd9b8/go.mod h1:lYuHYFPjY3QE9fdiy3F2awXcsXTdB68AwoY3RQ3dPN4=
github.com/asim/go-micro/v3 v2.4.0 h1:icFvqf8fof8bObqgDHGoiUCMuKwOCyWTGXaQjZDgEnE=
github.com/asim/go-micro/v3 v2.4.0/go.mod h1:lYuHYFPjY3QE9fdiy3F2awXcsXTdB68AwoY3RQ3dPN4=
github.com/micro/go-plugins/broker/grpc/v2 v2.3.0 h1:ldKHjPBCKvW5ib1XIhfih7gEC+SCsoYXdWeW3MNZFzA=
github.com/micro/go-plugins/broker/grpc/v2 v2.3.0/go.mod h1:EdJ+TxlDK6ak9eZlE4NKbDAzAhC3n8fL9hbdaGu7pK8=
github.com/micro/go-plugins/client/selector/static/v2 v2.3.0 h1:h6+qRGATM88Jx8skCy7cgSlwckm7cikPJRClCUlHrFI=

View File

@@ -3,8 +3,8 @@ package main
import (
"fmt"
"github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/server"
"github.com/asim/go-micro/v3"
"github.com/asim/go-micro/v3/server"
)
func main() {

View File

@@ -6,9 +6,9 @@ import (
"strings"
hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2"
api "github.com/micro/go-micro/v2/api/proto"
"github.com/micro/go-micro/v2/errors"
"github.com/asim/go-micro/v3"
api "github.com/asim/go-micro/v3/api/proto"
"github.com/asim/go-micro/v3/errors"
"context"
)

View File

@@ -8,8 +8,8 @@ import (
bctx "github.com/astaxie/beego/context"
hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/web"
"github.com/asim/go-micro/v3/client"
"github.com/asim/go-micro/v3/web"
)
type Say struct{}

View File

@@ -6,8 +6,8 @@ import (
"github.com/gin-gonic/gin"
hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/web"
"github.com/asim/go-micro/v3/client"
"github.com/asim/go-micro/v3/web"
)
type Say struct{}

View File

@@ -4,9 +4,9 @@ import (
"github.com/99designs/gqlgen/handler"
gql "github.com/micro/go-micro/examples/greeter/api/graphql/graphql"
helloProto "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/util/log"
"github.com/micro/go-micro/v2/web"
"github.com/asim/go-micro/v3/client"
"github.com/asim/go-micro/v3/util/log"
"github.com/asim/go-micro/v3/web"
)
func main() {

View File

@@ -7,8 +7,8 @@ import (
"github.com/emicklei/go-restful"
hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/web"
"github.com/asim/go-micro/v3/client"
"github.com/asim/go-micro/v3/web"
)
type Say struct{}

View File

@@ -19,8 +19,8 @@ import math "math"
import (
context "context"
client "github.com/micro/go-micro/v2/client"
server "github.com/micro/go-micro/v2/server"
client "github.com/asim/go-micro/v3/client"
server "github.com/asim/go-micro/v3/server"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@@ -5,7 +5,7 @@ import (
proto "github.com/micro/go-micro/examples/greeter/api/rpc/proto/hello"
hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2"
"github.com/asim/go-micro/v3"
"context"
)

View File

@@ -5,7 +5,7 @@ import (
"fmt"
hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2"
"github.com/asim/go-micro/v3"
)
func main() {

View File

@@ -6,8 +6,8 @@ import (
"time"
hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/util/log"
"github.com/asim/go-micro/v3"
"github.com/asim/go-micro/v3/util/log"
"google.golang.org/grpc"
)

View File

@@ -11,8 +11,8 @@ import (
import (
context "context"
client "github.com/micro/go-micro/v2/client"
server "github.com/micro/go-micro/v2/server"
client "github.com/asim/go-micro/v3/client"
server "github.com/asim/go-micro/v3/server"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@@ -6,8 +6,8 @@ import (
"net/http"
hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/web"
"github.com/asim/go-micro/v3/client"
"github.com/asim/go-micro/v3/web"
"context"
)

View File

@@ -3,8 +3,8 @@ package main
import (
"time"
"github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/util/log"
"github.com/asim/go-micro/v3"
"github.com/asim/go-micro/v3/util/log"
)
func main() {

View File

@@ -5,7 +5,7 @@ import (
"log"
pb "github.com/micro/go-micro/examples/helloworld/proto"
"github.com/micro/go-micro/v2"
"github.com/asim/go-micro/v3"
)
type Greeter struct{}

View File

@@ -11,8 +11,8 @@ import (
import (
context "context"
client "github.com/micro/go-micro/v2/client"
server "github.com/micro/go-micro/v2/server"
client "github.com/asim/go-micro/v3/client"
server "github.com/asim/go-micro/v3/server"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@@ -54,7 +54,7 @@ Write a service as you would any other [go-micro](https://github.com/micro/go-mi
```go
import (
"github.com/micro/go-micro/v2"
"github.com/asim/go-micro/v3"
k8s "github.com/micro/go-micro/examples/kubernetes/go/micro"
)
@@ -137,7 +137,7 @@ Write a web service as you would any other [go-micro/web](https://github.com/mic
import (
"net/http"
"github.com/micro/go-micro/v2/web"
"github.com/asim/go-micro/v3/web"
k8s "github.com/micro/go-micro/examples/kubernetes/go/web"
)

View File

@@ -7,11 +7,11 @@ import (
"os"
"github.com/micro/cli/v2"
"github.com/micro/go-micro/v2/client"
gcli "github.com/micro/go-micro/v2/client/grpc"
"github.com/micro/go-micro/v2/config/cmd"
proto "github.com/micro/go-micro/v2/debug/service/proto"
"github.com/micro/go-micro/v2/util/log"
"github.com/asim/go-micro/v3/client"
gcli "github.com/asim/go-micro/v3/client/grpc"
"github.com/asim/go-micro/v3/config/cmd"
proto "github.com/asim/go-micro/v3/debug/service/proto"
"github.com/asim/go-micro/v3/util/log"
_ "github.com/micro/go-plugins/registry/kubernetes/v2"
)

View File

@@ -3,12 +3,12 @@ package main
import (
"os"
"github.com/micro/go-micro/v2/broker"
"github.com/micro/go-micro/v2/client"
cli "github.com/micro/go-micro/v2/client/grpc"
"github.com/micro/go-micro/v2/config/cmd"
"github.com/micro/go-micro/v2/server"
srv "github.com/micro/go-micro/v2/server/grpc"
"github.com/asim/go-micro/v3/broker"
"github.com/asim/go-micro/v3/client"
cli "github.com/asim/go-micro/v3/client/grpc"
"github.com/asim/go-micro/v3/config/cmd"
"github.com/asim/go-micro/v3/server"
srv "github.com/asim/go-micro/v3/server/grpc"
bkr "github.com/micro/go-plugins/broker/grpc/v2"
_ "github.com/micro/go-plugins/registry/kubernetes/v2"
@@ -18,7 +18,7 @@ import (
_ "github.com/micro/go-plugins/client/selector/static/v2"
// disable namespace by default
_ "github.com/micro/go-micro/v2/api"
_ "github.com/asim/go-micro/v3/api"
)
func main() {

View File

@@ -7,11 +7,11 @@ import (
"time"
"github.com/micro/cli/v2"
"github.com/micro/go-micro/v2/client"
gcli "github.com/micro/go-micro/v2/client/grpc"
"github.com/micro/go-micro/v2/config/cmd"
proto "github.com/micro/go-micro/v2/debug/service/proto"
"github.com/micro/go-micro/v2/util/log"
"github.com/asim/go-micro/v3/client"
gcli "github.com/asim/go-micro/v3/client/grpc"
"github.com/asim/go-micro/v3/config/cmd"
proto "github.com/asim/go-micro/v3/debug/service/proto"
"github.com/asim/go-micro/v3/util/log"
_ "github.com/micro/go-plugins/registry/kubernetes/v2"
)

View File

@@ -6,7 +6,7 @@ import (
hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
k8s "github.com/micro/go-micro/examples/kubernetes/go/micro"
"github.com/micro/go-micro/v2"
"github.com/asim/go-micro/v3"
)
type Say struct{}

View File

@@ -11,8 +11,8 @@ import (
import (
context "context"
client "github.com/micro/go-micro/v2/client"
server "github.com/micro/go-micro/v2/server"
client "github.com/asim/go-micro/v3/client"
server "github.com/asim/go-micro/v3/server"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@@ -2,8 +2,8 @@
package config
import (
"github.com/micro/go-micro/v2/config"
"github.com/micro/go-micro/v2/config/source/env"
"github.com/asim/go-micro/v3/config"
"github.com/asim/go-micro/v3/config/source/env"
"github.com/micro/go-plugins/config/source/configmap/v2"
)

View File

@@ -2,7 +2,7 @@
package micro
import (
"github.com/micro/go-micro/v2"
"github.com/asim/go-micro/v3"
"github.com/micro/go-plugins/registry/kubernetes/v2"
// static selector offloads load balancing to k8s services

View File

@@ -1,8 +1,8 @@
package web
import (
"github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/web"
"github.com/asim/go-micro/v3"
"github.com/asim/go-micro/v3/web"
"github.com/micro/go-plugins/registry/kubernetes/v2"
// static selector offloads load balancing to k8s services
// enable with MICRO_SELECTOR=static or --selector=static

View File

@@ -4,8 +4,8 @@ import (
"fmt"
hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/metadata"
"github.com/asim/go-micro/v3"
"github.com/asim/go-micro/v3/metadata"
"context"
)

View File

@@ -6,8 +6,8 @@ import (
"time"
hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/metadata"
"github.com/asim/go-micro/v3"
"github.com/asim/go-micro/v3/metadata"
"context"
)

View File

@@ -7,7 +7,7 @@ import (
"github.com/micro/cli/v2"
proto "github.com/micro/go-micro/examples/helloworld/proto"
"github.com/micro/go-micro/examples/mocking/mock"
"github.com/micro/go-micro/v2"
"github.com/asim/go-micro/v3"
)
func main() {

View File

@@ -4,7 +4,7 @@ import (
"context"
proto "github.com/micro/go-micro/examples/helloworld/proto"
"github.com/micro/go-micro/v2/client"
"github.com/asim/go-micro/v3/client"
)
type mockGreeterService struct {

View File

@@ -4,8 +4,8 @@ import (
"context"
"fmt"
"github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/client"
"github.com/asim/go-micro/v3"
"github.com/asim/go-micro/v3/client"
)
func main() {

View File

@@ -3,7 +3,7 @@ package main
import (
"context"
"github.com/micro/go-micro/v2"
"github.com/asim/go-micro/v3"
)
type Greeter struct{}

View File

@@ -26,7 +26,7 @@ func Name(n string) Option {
Here's an example at the top level
```
import "github.com/micro/go-micro/v2"
import "github.com/asim/go-micro/v3"
service := micro.NewService(

View File

@@ -55,7 +55,7 @@ Plugins can be added to go-micro in the following ways. By doing so they'll be a
```go
import (
"github.com/micro/go-micro/v2/config/cmd"
"github.com/asim/go-micro/v3/config/cmd"
_ "github.com/micro/go-plugins/broker/rabbitmq"
_ "github.com/micro/go-plugins/registry/kubernetes"
_ "github.com/micro/go-plugins/transport/nats"
@@ -71,7 +71,7 @@ The same is achieved when calling ```service.Init```
```go
import (
"github.com/micro/go-micro/v2"
"github.com/asim/go-micro/v3"
_ "github.com/micro/go-plugins/broker/rabbitmq"
_ "github.com/micro/go-plugins/registry/kubernetes"
_ "github.com/micro/go-plugins/transport/nats"
@@ -102,7 +102,7 @@ CLI Flags provide a simple way to initialise plugins but you can do the same you
```go
import (
"github.com/micro/go-micro/v2"
"github.com/asim/go-micro/v3"
"github.com/micro/go-plugins/registry/kubernetes"
)

View File

@@ -10,7 +10,7 @@ import (
"os/signal"
"syscall"
"github.com/micro/go-micro/v2/registry"
"github.com/asim/go-micro/v3/registry"
"github.com/pborman/uuid"
)

View File

@@ -7,7 +7,7 @@ import (
"net/http"
"net/url"
"github.com/micro/go-micro/v2/registry"
"github.com/asim/go-micro/v3/registry"
)
var (

View File

@@ -12,7 +12,7 @@ import (
"github.com/gorilla/rpc"
"github.com/gorilla/rpc/json"
"github.com/micro/go-micro/v2/registry"
"github.com/asim/go-micro/v3/registry"
"github.com/pborman/uuid"
)

View File

@@ -6,8 +6,8 @@ import (
"context"
proto "github.com/micro/go-micro/examples/pubsub/srv/proto"
"github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/util/log"
"github.com/asim/go-micro/v3"
"github.com/asim/go-micro/v3/util/log"
"github.com/pborman/uuid"
)

View File

@@ -2,10 +2,10 @@ package main
import (
proto "github.com/micro/go-micro/examples/pubsub/srv/proto"
"github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/metadata"
"github.com/micro/go-micro/v2/server"
"github.com/micro/go-micro/v2/util/log"
"github.com/asim/go-micro/v3"
"github.com/asim/go-micro/v3/metadata"
"github.com/asim/go-micro/v3/server"
"github.com/asim/go-micro/v3/util/log"
"context"
)

View File

@@ -4,7 +4,7 @@ import (
"log"
"context"
"github.com/micro/go-micro/v2"
"github.com/asim/go-micro/v3"
api "github.com/micro/micro/v2/api/proto"
)

View File

@@ -6,8 +6,8 @@ import (
"strings"
hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/errors"
"github.com/asim/go-micro/v3"
"github.com/asim/go-micro/v3/errors"
roundrobin "github.com/micro/go-plugins/wrapper/select/roundrobin/v2"
api "github.com/micro/micro/v2/api/proto"

View File

@@ -20,8 +20,8 @@ Create a tls.go file
package main
import (
"github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/transport"
"github.com/asim/go-micro/v3/client"
"github.com/asim/go-micro/v3/transport"
)
func init() {

View File

@@ -3,8 +3,8 @@ package main
import (
"fmt"
"github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/transport"
"github.com/asim/go-micro/v3/client"
"github.com/asim/go-micro/v3/transport"
hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"

View File

@@ -6,8 +6,8 @@ import (
"context"
hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/transport"
"github.com/asim/go-micro/v3"
"github.com/asim/go-micro/v3/transport"
)
type Say struct{}

View File

@@ -19,8 +19,8 @@ import math "math"
import (
context "context"
client "github.com/micro/go-micro/v2/client"
server "github.com/micro/go-micro/v2/server"
client "github.com/asim/go-micro/v3/client"
server "github.com/asim/go-micro/v3/server"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@@ -5,8 +5,8 @@ import (
"context"
"github.com/micro/go-micro/examples/server/subscriber"
"github.com/micro/go-micro/v2/config/cmd"
"github.com/micro/go-micro/v2/server"
"github.com/asim/go-micro/v3/config/cmd"
"github.com/asim/go-micro/v3/server"
example "github.com/micro/go-micro/examples/server/proto/example"
)

View File

@@ -4,8 +4,8 @@ import (
"log"
example "github.com/micro/go-micro/examples/server/proto/example"
"github.com/micro/go-micro/v2/metadata"
"github.com/micro/go-micro/v2/server"
"github.com/asim/go-micro/v3/metadata"
"github.com/asim/go-micro/v3/server"
"context"
)

View File

@@ -5,8 +5,8 @@ import (
"github.com/micro/go-micro/examples/server/handler"
"github.com/micro/go-micro/examples/server/subscriber"
"github.com/micro/go-micro/v2/config/cmd"
"github.com/micro/go-micro/v2/server"
"github.com/asim/go-micro/v3/config/cmd"
"github.com/asim/go-micro/v3/server"
)
func main() {

View File

@@ -24,8 +24,8 @@ import math "math"
import (
context "context"
client "github.com/micro/go-micro/v2/client"
server "github.com/micro/go-micro/v2/server"
client "github.com/asim/go-micro/v3/client"
server "github.com/asim/go-micro/v3/server"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@@ -6,8 +6,8 @@ import (
"context"
"github.com/micro/go-micro/examples/server/handler"
"github.com/micro/go-micro/examples/server/subscriber"
"github.com/micro/go-micro/v2/config/cmd"
"github.com/micro/go-micro/v2/server"
"github.com/asim/go-micro/v3/config/cmd"
"github.com/asim/go-micro/v3/server"
)
func logWrapper(fn server.HandlerFunc) server.HandlerFunc {

View File

@@ -7,7 +7,7 @@ import (
"context"
"github.com/micro/cli/v2"
proto "github.com/micro/go-micro/examples/service/proto"
"github.com/micro/go-micro/v2"
"github.com/asim/go-micro/v3"
)
/*

View File

@@ -11,8 +11,8 @@ import (
import (
context "context"
client "github.com/micro/go-micro/v2/client"
server "github.com/micro/go-micro/v2/server"
client "github.com/asim/go-micro/v3/client"
server "github.com/asim/go-micro/v3/server"
)
// Reference imports to suppress errors if they are not otherwise used.

Some files were not shown because too many files have changed in this diff Show More