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

Method Write

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

Source from the content-addressed store, hash-verified

28663}
28664
28665func (p *IClientRPCServiceOpenSessionResult) Write(ctx context.Context, oprot thrift.TProtocol) error {
28666 if err := oprot.WriteStructBegin(ctx, "openSession_result"); err != nil {
28667 return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) }
28668 if p != nil {
28669 if err := p.writeField0(ctx, oprot); err != nil { return err }
28670 }
28671 if err := oprot.WriteFieldStop(ctx); err != nil {
28672 return thrift.PrependError("write field stop error: ", err) }
28673 if err := oprot.WriteStructEnd(ctx); err != nil {
28674 return thrift.PrependError("write struct stop error: ", err) }
28675 return nil
28676}
28677
28678func (p *IClientRPCServiceOpenSessionResult) writeField0(ctx context.Context, oprot thrift.TProtocol) (err error) {
28679 if p.IsSetSuccess() {

Callers 1

ProcessMethod · 0.95

Calls 1

writeField0Method · 0.95

Tested by

no test coverage detected