diff --git a/server/codec.go b/server/codec.go index 1d117960..0f96ee03 100644 --- a/server/codec.go +++ b/server/codec.go @@ -9,11 +9,6 @@ import ( "github.com/youtube/vitess/go/rpcplus/pbrpc" ) -type CodecFunc func(io.ReadWriteCloser) rpc.ServerCodec - -// for internal use only -type codecFunc func(io.ReadWriteCloser) rpcplus.ServerCodec - var ( defaultCodecs = map[string]codecFunc{ "application/json": jsonrpc.NewServerCodec, @@ -24,6 +19,11 @@ var ( } ) +type CodecFunc func(io.ReadWriteCloser) rpc.ServerCodec + +// for internal use only +type codecFunc func(io.ReadWriteCloser) rpcplus.ServerCodec + // wraps an net/rpc ServerCodec to provide an rpcplus.ServerCodec // temporary until we strip out use of rpcplus type rpcCodecWrap struct {