MCPcopy Create free account
hub / github.com/apache/iotdb-client-go / ReadField2

Method ReadField2

rpc/client.go:2423–2431  ·  view source on GitHub ↗
(ctx context.Context, iprot thrift.TProtocol)

Source from the content-addressed store, hash-verified

2421}
2422
2423func (p *TSOpenSessionResp) ReadField2(ctx context.Context, iprot thrift.TProtocol) error {
2424 if v, err := iprot.ReadI32(ctx); err != nil {
2425 return thrift.PrependError("error reading field 2: ", err)
2426} else {
2427 temp := TSProtocolVersion(v)
2428 p.ServerProtocolVersion = temp
2429}
2430 return nil
2431}
2432
2433func (p *TSOpenSessionResp) ReadField3(ctx context.Context, iprot thrift.TProtocol) error {
2434 if v, err := iprot.ReadI64(ctx); err != nil {

Callers 1

ReadMethod · 0.95

Calls 1

TSProtocolVersionTypeAlias · 0.85

Tested by

no test coverage detected