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

Method writeField1

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

Source from the content-addressed store, hash-verified

6337}
6338
6339func (p *TSGetTimeZoneResp) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) {
6340 if err := oprot.WriteFieldBegin(ctx, "status", thrift.STRUCT, 1); err != nil {
6341 return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:status: ", p), err) }
6342 if err := p.Status.Write(ctx, oprot); err != nil {
6343 return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Status), err)
6344 }
6345 if err := oprot.WriteFieldEnd(ctx); err != nil {
6346 return thrift.PrependError(fmt.Sprintf("%T write field end error 1:status: ", p), err) }
6347 return err
6348}
6349
6350func (p *TSGetTimeZoneResp) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) {
6351 if err := oprot.WriteFieldBegin(ctx, "timeZone", thrift.STRING, 2); err != nil {

Callers 1

WriteMethod · 0.95

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected