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

Method writeField2

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

Source from the content-addressed store, hash-verified

2805}
2806
2807func (p *TSOpenSessionReq) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) {
2808 if err := oprot.WriteFieldBegin(ctx, "zoneId", thrift.STRING, 2); err != nil {
2809 return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:zoneId: ", p), err) }
2810 if err := oprot.WriteString(ctx, string(p.ZoneId)); err != nil {
2811 return thrift.PrependError(fmt.Sprintf("%T.zoneId (2) field write error: ", p), err) }
2812 if err := oprot.WriteFieldEnd(ctx); err != nil {
2813 return thrift.PrependError(fmt.Sprintf("%T write field end error 2:zoneId: ", p), err) }
2814 return err
2815}
2816
2817func (p *TSOpenSessionReq) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) {
2818 if err := oprot.WriteFieldBegin(ctx, "username", thrift.STRING, 3); err != nil {

Callers 1

WriteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected