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

Method writeField1

rpc/client.go:2486–2495  ·  view source on GitHub ↗
(ctx context.Context, oprot thrift.TProtocol)

Source from the content-addressed store, hash-verified

2484}
2485
2486func (p *TSOpenSessionResp) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) {
2487 if err := oprot.WriteFieldBegin(ctx, "status", thrift.STRUCT, 1); err != nil {
2488 return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:status: ", p), err) }
2489 if err := p.Status.Write(ctx, oprot); err != nil {
2490 return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Status), err)
2491 }
2492 if err := oprot.WriteFieldEnd(ctx); err != nil {
2493 return thrift.PrependError(fmt.Sprintf("%T write field end error 1:status: ", p), err) }
2494 return err
2495}
2496
2497func (p *TSOpenSessionResp) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) {
2498 if err := oprot.WriteFieldBegin(ctx, "serverProtocolVersion", thrift.I32, 2); err != nil {

Callers 1

WriteMethod · 0.95

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected