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

Method writeField4

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

Source from the content-addressed store, hash-verified

2825}
2826
2827func (p *TSOpenSessionReq) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) {
2828 if p.IsSetPassword() {
2829 if err := oprot.WriteFieldBegin(ctx, "password", thrift.STRING, 4); err != nil {
2830 return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:password: ", p), err) }
2831 if err := oprot.WriteString(ctx, string(*p.Password)); err != nil {
2832 return thrift.PrependError(fmt.Sprintf("%T.password (4) field write error: ", p), err) }
2833 if err := oprot.WriteFieldEnd(ctx); err != nil {
2834 return thrift.PrependError(fmt.Sprintf("%T write field end error 4:password: ", p), err) }
2835 }
2836 return err
2837}
2838
2839func (p *TSOpenSessionReq) writeField5(ctx context.Context, oprot thrift.TProtocol) (err error) {
2840 if p.IsSetConfiguration() {

Callers 1

WriteMethod · 0.95

Calls 1

IsSetPasswordMethod · 0.95

Tested by

no test coverage detected