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

Method writeField0

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

Source from the content-addressed store, hash-verified

28676}
28677
28678func (p *IClientRPCServiceOpenSessionResult) writeField0(ctx context.Context, oprot thrift.TProtocol) (err error) {
28679 if p.IsSetSuccess() {
28680 if err := oprot.WriteFieldBegin(ctx, "success", thrift.STRUCT, 0); err != nil {
28681 return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err) }
28682 if err := p.Success.Write(ctx, oprot); err != nil {
28683 return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
28684 }
28685 if err := oprot.WriteFieldEnd(ctx); err != nil {
28686 return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err) }
28687 }
28688 return err
28689}
28690
28691func (p *IClientRPCServiceOpenSessionResult) String() string {
28692 if p == nil {

Callers 1

WriteMethod · 0.95

Calls 2

IsSetSuccessMethod · 0.95
WriteMethod · 0.45

Tested by

no test coverage detected