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

Method writeField1

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

Source from the content-addressed store, hash-verified

17451}
17452
17453func (p *TSQueryTemplateResp) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) {
17454 if err := oprot.WriteFieldBegin(ctx, "status", thrift.STRUCT, 1); err != nil {
17455 return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:status: ", p), err) }
17456 if err := p.Status.Write(ctx, oprot); err != nil {
17457 return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Status), err)
17458 }
17459 if err := oprot.WriteFieldEnd(ctx); err != nil {
17460 return thrift.PrependError(fmt.Sprintf("%T write field end error 1:status: ", p), err) }
17461 return err
17462}
17463
17464func (p *TSQueryTemplateResp) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) {
17465 if err := oprot.WriteFieldBegin(ctx, "queryType", thrift.I32, 2); err != nil {

Callers 1

WriteMethod · 0.95

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected