Updating vendored apache thrift library
This commit is contained in:
parent
a83956cb24
commit
155940c761
11 changed files with 34 additions and 43 deletions
34
vendor/git.apache.org/thrift.git/lib/go/thrift/compact_protocol_test.go
generated
vendored
34
vendor/git.apache.org/thrift.git/lib/go/thrift/compact_protocol_test.go
generated
vendored
|
@ -32,22 +32,22 @@ func TestReadWriteCompactProtocol(t *testing.T) {
|
|||
NewTFramedTransport(NewTMemoryBuffer()),
|
||||
}
|
||||
for _, trans := range transports {
|
||||
p := NewTCompactProtocol(trans);
|
||||
ReadWriteBool(t, p, trans);
|
||||
p = NewTCompactProtocol(trans);
|
||||
ReadWriteByte(t, p, trans);
|
||||
p = NewTCompactProtocol(trans);
|
||||
ReadWriteI16(t, p, trans);
|
||||
p = NewTCompactProtocol(trans);
|
||||
ReadWriteI32(t, p, trans);
|
||||
p = NewTCompactProtocol(trans);
|
||||
ReadWriteI64(t, p, trans);
|
||||
p = NewTCompactProtocol(trans);
|
||||
ReadWriteDouble(t, p, trans);
|
||||
p = NewTCompactProtocol(trans);
|
||||
ReadWriteString(t, p, trans);
|
||||
p = NewTCompactProtocol(trans);
|
||||
ReadWriteBinary(t, p, trans);
|
||||
trans.Close();
|
||||
p := NewTCompactProtocol(trans)
|
||||
ReadWriteBool(t, p, trans)
|
||||
p = NewTCompactProtocol(trans)
|
||||
ReadWriteByte(t, p, trans)
|
||||
p = NewTCompactProtocol(trans)
|
||||
ReadWriteI16(t, p, trans)
|
||||
p = NewTCompactProtocol(trans)
|
||||
ReadWriteI32(t, p, trans)
|
||||
p = NewTCompactProtocol(trans)
|
||||
ReadWriteI64(t, p, trans)
|
||||
p = NewTCompactProtocol(trans)
|
||||
ReadWriteDouble(t, p, trans)
|
||||
p = NewTCompactProtocol(trans)
|
||||
ReadWriteString(t, p, trans)
|
||||
p = NewTCompactProtocol(trans)
|
||||
ReadWriteBinary(t, p, trans)
|
||||
trans.Close()
|
||||
}
|
||||
}
|
||||
|
|
1
vendor/git.apache.org/thrift.git/lib/go/thrift/framed_transport.go
generated
vendored
1
vendor/git.apache.org/thrift.git/lib/go/thrift/framed_transport.go
generated
vendored
|
@ -164,4 +164,3 @@ func (p *TFramedTransport) readFrameHeader() (uint32, error) {
|
|||
func (p *TFramedTransport) RemainingBytes() (num_bytes uint64) {
|
||||
return uint64(p.frameSize)
|
||||
}
|
||||
|
||||
|
|
1
vendor/git.apache.org/thrift.git/lib/go/thrift/iostream_transport.go
generated
vendored
1
vendor/git.apache.org/thrift.git/lib/go/thrift/iostream_transport.go
generated
vendored
|
@ -211,4 +211,3 @@ func (p *StreamTransport) RemainingBytes() (num_bytes uint64) {
|
|||
const maxSize = ^uint64(0)
|
||||
return maxSize // the thruth is, we just don't know unless framed is used
|
||||
}
|
||||
|
||||
|
|
1
vendor/git.apache.org/thrift.git/lib/go/thrift/protocol_exception.go
generated
vendored
1
vendor/git.apache.org/thrift.git/lib/go/thrift/protocol_exception.go
generated
vendored
|
@ -75,4 +75,3 @@ func NewTProtocolExceptionWithType(errType int, err error) TProtocolException {
|
|||
}
|
||||
return &tProtocolException{errType, err.Error()}
|
||||
}
|
||||
|
||||
|
|
1
vendor/git.apache.org/thrift.git/lib/go/thrift/rich_transport.go
generated
vendored
1
vendor/git.apache.org/thrift.git/lib/go/thrift/rich_transport.go
generated
vendored
|
@ -66,4 +66,3 @@ func writeByte(w io.Writer, c byte) error {
|
|||
_, err := w.Write(v[0:1])
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
1
vendor/git.apache.org/thrift.git/lib/go/thrift/socket.go
generated
vendored
1
vendor/git.apache.org/thrift.git/lib/go/thrift/socket.go
generated
vendored
|
@ -163,4 +163,3 @@ func (p *TSocket) RemainingBytes() (num_bytes uint64) {
|
|||
const maxSize = ^uint64(0)
|
||||
return maxSize // the thruth is, we just don't know unless framed is used
|
||||
}
|
||||
|
||||
|
|
2
vendor/git.apache.org/thrift.git/lib/go/thrift/ssl_server_socket.go
generated
vendored
2
vendor/git.apache.org/thrift.git/lib/go/thrift/ssl_server_socket.go
generated
vendored
|
@ -20,9 +20,9 @@
|
|||
package thrift
|
||||
|
||||
import (
|
||||
"crypto/tls"
|
||||
"net"
|
||||
"time"
|
||||
"crypto/tls"
|
||||
)
|
||||
|
||||
type TSSLServerSocket struct {
|
||||
|
|
1
vendor/git.apache.org/thrift.git/lib/go/thrift/ssl_socket.go
generated
vendored
1
vendor/git.apache.org/thrift.git/lib/go/thrift/ssl_socket.go
generated
vendored
|
@ -168,4 +168,3 @@ func (p *TSSLSocket) RemainingBytes() (num_bytes uint64) {
|
|||
const maxSize = ^uint64(0)
|
||||
return maxSize // the thruth is, we just don't know unless framed is used
|
||||
}
|
||||
|
||||
|
|
3
vendor/git.apache.org/thrift.git/lib/go/thrift/transport.go
generated
vendored
3
vendor/git.apache.org/thrift.git/lib/go/thrift/transport.go
generated
vendored
|
@ -34,7 +34,6 @@ type ReadSizeProvider interface {
|
|||
RemainingBytes() (num_bytes uint64)
|
||||
}
|
||||
|
||||
|
||||
// Encapsulates the I/O layer
|
||||
type TTransport interface {
|
||||
io.ReadWriteCloser
|
||||
|
@ -52,7 +51,6 @@ type stringWriter interface {
|
|||
WriteString(s string) (n int, err error)
|
||||
}
|
||||
|
||||
|
||||
// This is "enchanced" transport with extra capabilities. You need to use one of these
|
||||
// to construct protocol.
|
||||
// Notably, TSocket does not implement this interface, and it is always a mistake to use
|
||||
|
@ -65,4 +63,3 @@ type TRichTransport interface {
|
|||
Flusher
|
||||
ReadSizeProvider
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue