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

Method Write

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

Source from the content-addressed store, hash-verified

28861}
28862
28863func (p *IClientRPCServiceCloseSessionResult) Write(ctx context.Context, oprot thrift.TProtocol) error {
28864 if err := oprot.WriteStructBegin(ctx, "closeSession_result"); err != nil {
28865 return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) }
28866 if p != nil {
28867 if err := p.writeField0(ctx, oprot); err != nil { return err }
28868 }
28869 if err := oprot.WriteFieldStop(ctx); err != nil {
28870 return thrift.PrependError("write field stop error: ", err) }
28871 if err := oprot.WriteStructEnd(ctx); err != nil {
28872 return thrift.PrependError("write struct stop error: ", err) }
28873 return nil
28874}
28875
28876func (p *IClientRPCServiceCloseSessionResult) writeField0(ctx context.Context, oprot thrift.TProtocol) (err error) {
28877 if p.IsSetSuccess() {

Callers 1

ProcessMethod · 0.95

Calls 1

writeField0Method · 0.95

Tested by

no test coverage detected