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

Method writeField1

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

Source from the content-addressed store, hash-verified

2795}
2796
2797func (p *TSOpenSessionReq) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) {
2798 if err := oprot.WriteFieldBegin(ctx, "client_protocol", thrift.I32, 1); err != nil {
2799 return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:client_protocol: ", p), err) }
2800 if err := oprot.WriteI32(ctx, int32(p.ClientProtocol)); err != nil {
2801 return thrift.PrependError(fmt.Sprintf("%T.client_protocol (1) field write error: ", p), err) }
2802 if err := oprot.WriteFieldEnd(ctx); err != nil {
2803 return thrift.PrependError(fmt.Sprintf("%T write field end error 1:client_protocol: ", p), err) }
2804 return err
2805}
2806
2807func (p *TSOpenSessionReq) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) {
2808 if err := oprot.WriteFieldBegin(ctx, "zoneId", thrift.STRING, 2); err != nil {

Callers 1

WriteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected