strip use of cmd
This commit is contained in:
		| @@ -11,7 +11,6 @@ import ( | ||||
|  | ||||
| 	"github.com/micro/go-micro/broker" | ||||
| 	"github.com/micro/go-micro/client" | ||||
| 	"github.com/micro/go-micro/cmd" | ||||
| 	"github.com/micro/go-micro/codec" | ||||
| 	"github.com/micro/go-micro/errors" | ||||
| 	"github.com/micro/go-micro/metadata" | ||||
| @@ -34,8 +33,6 @@ type grpcClient struct { | ||||
| func init() { | ||||
| 	encoding.RegisterCodec(jsonCodec{}) | ||||
| 	encoding.RegisterCodec(bytesCodec{}) | ||||
|  | ||||
| 	cmd.DefaultClients["grpc"] = NewClient | ||||
| } | ||||
|  | ||||
| // secure returns the dial option for whether its a secure or insecure connection | ||||
|   | ||||
| @@ -14,7 +14,6 @@ import ( | ||||
| 	"time" | ||||
|  | ||||
| 	"github.com/micro/go-micro/broker" | ||||
| 	"github.com/micro/go-micro/cmd" | ||||
| 	"github.com/micro/go-micro/codec" | ||||
| 	"github.com/micro/go-micro/errors" | ||||
| 	meta "github.com/micro/go-micro/metadata" | ||||
| @@ -59,8 +58,6 @@ type grpcServer struct { | ||||
| func init() { | ||||
| 	encoding.RegisterCodec(jsonCodec{}) | ||||
| 	encoding.RegisterCodec(bytesCodec{}) | ||||
|  | ||||
| 	cmd.DefaultServers["grpc"] = NewServer | ||||
| } | ||||
|  | ||||
| func newGRPCServer(opts ...server.Option) server.Server { | ||||
|   | ||||
| @@ -5,7 +5,6 @@ import ( | ||||
| 	"crypto/tls" | ||||
| 	"encoding/gob" | ||||
|  | ||||
| 	"github.com/micro/go-micro/cmd" | ||||
| 	"github.com/lucas-clemente/quic-go" | ||||
| 	"github.com/micro/go-micro/transport" | ||||
| 	utls "github.com/micro/util/go/lib/tls" | ||||
| @@ -34,10 +33,6 @@ type quicListener struct { | ||||
| 	opts transport.ListenOptions | ||||
| } | ||||
|  | ||||
| func init() { | ||||
| 	cmd.DefaultTransports["quic"] = NewTransport | ||||
| } | ||||
|  | ||||
| func (q *quicClient) Close() error { | ||||
| 	return q.quicSocket.st.Close() | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user