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

Method writeField0

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

Source from the content-addressed store, hash-verified

28874}
28875
28876func (p *IClientRPCServiceCloseSessionResult) writeField0(ctx context.Context, oprot thrift.TProtocol) (err error) {
28877 if p.IsSetSuccess() {
28878 if err := oprot.WriteFieldBegin(ctx, "success", thrift.STRUCT, 0); err != nil {
28879 return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err) }
28880 if err := p.Success.Write(ctx, oprot); err != nil {
28881 return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
28882 }
28883 if err := oprot.WriteFieldEnd(ctx); err != nil {
28884 return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err) }
28885 }
28886 return err
28887}
28888
28889func (p *IClientRPCServiceCloseSessionResult) String() string {
28890 if p == nil {

Callers 1

WriteMethod · 0.95

Calls 2

IsSetSuccessMethod · 0.95
WriteMethod · 0.45

Tested by

no test coverage detected