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

Method Write

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

Source from the content-addressed store, hash-verified

6323}
6324
6325func (p *TSGetTimeZoneResp) Write(ctx context.Context, oprot thrift.TProtocol) error {
6326 if err := oprot.WriteStructBegin(ctx, "TSGetTimeZoneResp"); err != nil {
6327 return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) }
6328 if p != nil {
6329 if err := p.writeField1(ctx, oprot); err != nil { return err }
6330 if err := p.writeField2(ctx, oprot); err != nil { return err }
6331 }
6332 if err := oprot.WriteFieldStop(ctx); err != nil {
6333 return thrift.PrependError("write field stop error: ", err) }
6334 if err := oprot.WriteStructEnd(ctx); err != nil {
6335 return thrift.PrependError("write struct stop error: ", err) }
6336 return nil
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 {

Callers

nothing calls this directly

Calls 2

writeField1Method · 0.95
writeField2Method · 0.95

Tested by

no test coverage detected