(ctx context.Context, oprot thrift.TProtocol)
| 994 | } |
| 995 | |
| 996 | func (p *TSStatus) Write(ctx context.Context, oprot thrift.TProtocol) error { |
| 997 | if err := oprot.WriteStructBegin(ctx, "TSStatus"); err != nil { |
| 998 | return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } |
| 999 | if p != nil { |
| 1000 | if err := p.writeField1(ctx, oprot); err != nil { return err } |
| 1001 | if err := p.writeField2(ctx, oprot); err != nil { return err } |
| 1002 | if err := p.writeField3(ctx, oprot); err != nil { return err } |
| 1003 | if err := p.writeField4(ctx, oprot); err != nil { return err } |
| 1004 | if err := p.writeField5(ctx, oprot); err != nil { return err } |
| 1005 | } |
| 1006 | if err := oprot.WriteFieldStop(ctx); err != nil { |
| 1007 | return thrift.PrependError("write field stop error: ", err) } |
| 1008 | if err := oprot.WriteStructEnd(ctx); err != nil { |
| 1009 | return thrift.PrependError("write struct stop error: ", err) } |
| 1010 | return nil |
| 1011 | } |
| 1012 | |
| 1013 | func (p *TSStatus) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 1014 | if err := oprot.WriteFieldBegin(ctx, "code", thrift.I32, 1); err != nil { |
nothing calls this directly
no test coverage detected