strip use of cmd

This commit is contained in:
Asim Aslam 2019-06-03 19:07:09 +01:00
parent 056e7e3c32
commit 44b17b7e4b
3 changed files with 0 additions and 11 deletions

View File

@ -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

View File

@ -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 {

View File

@ -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()
}