本文整理匯總了Golang中github.com/apache/thrift/lib/go/thrift.TProtocol.WriteStructEnd方法的典型用法代碼示例。如果您正苦於以下問題:Golang TProtocol.WriteStructEnd方法的具體用法?Golang TProtocol.WriteStructEnd怎麽用?Golang TProtocol.WriteStructEnd使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類github.com/apache/thrift/lib/go/thrift.TProtocol
的用法示例。
在下文中一共展示了TProtocol.WriteStructEnd方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: Write
func (p *BinaryAnnotation) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("BinaryAnnotation"); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
}
if err := p.writeField1(oprot); err != nil {
return err
}
if err := p.writeField2(oprot); err != nil {
return err
}
if err := p.writeField3(oprot); err != nil {
return err
}
if err := p.writeField4(oprot); err != nil {
return err
}
if err := p.writeField5(oprot); err != nil {
return err
}
if err := p.writeField6(oprot); err != nil {
return err
}
if err := p.writeField7(oprot); err != nil {
return err
}
if err := oprot.WriteFieldStop(); err != nil {
return thrift.PrependError("write field stop error: ", err)
}
if err := oprot.WriteStructEnd(); err != nil {
return thrift.PrependError("write struct stop error: ", err)
}
return nil
}
示例2: Write
func (p *Moments) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("Moments"); err != nil {
return fmt.Errorf("%T write struct begin error: %s", p, err)
}
if err := p.writeField1(oprot); err != nil {
return err
}
if err := p.writeField2(oprot); err != nil {
return err
}
if err := p.writeField3(oprot); err != nil {
return err
}
if err := p.writeField4(oprot); err != nil {
return err
}
if err := p.writeField5(oprot); err != nil {
return err
}
if err := oprot.WriteFieldStop(); err != nil {
return fmt.Errorf("write field stop error: %s", err)
}
if err := oprot.WriteStructEnd(); err != nil {
return fmt.Errorf("write struct stop error: %s", err)
}
return nil
}
示例3: Write
func (p *FirstAppErrorResult) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("AppError_result"); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
}
if err := oprot.WriteFieldStop(); err != nil {
return thrift.PrependError("write field stop error: ", err)
}
if err := oprot.WriteStructEnd(); err != nil {
return thrift.PrependError("write struct stop error: ", err)
}
return nil
}
示例4: Write
func (p *SecondServiceBlahBlahArgs) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("blahBlah_args"); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
}
if err := oprot.WriteFieldStop(); err != nil {
return thrift.PrependError("write field stop error: ", err)
}
if err := oprot.WriteStructEnd(); err != nil {
return thrift.PrependError("write struct stop error: ", err)
}
return nil
}
示例5: Write
func (p *MetaVersionInfoArgs) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("versionInfo_args"); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
}
if err := oprot.WriteFieldStop(); err != nil {
return thrift.PrependError("write field stop error: ", err)
}
if err := oprot.WriteStructEnd(); err != nil {
return thrift.PrependError("write struct stop error: ", err)
}
return nil
}
示例6: Write
func (p *TestResult) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("Test_result"); err != nil {
return fmt.Errorf("%T write struct begin error: %s", p, err)
}
if err := oprot.WriteFieldStop(); err != nil {
return fmt.Errorf("write field stop error: %s", err)
}
if err := oprot.WriteStructEnd(); err != nil {
return fmt.Errorf("write struct stop error: %s", err)
}
return nil
}
示例7: Write
func (p *NotAuthorized) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("NotAuthorized"); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
}
if err := oprot.WriteFieldStop(); err != nil {
return thrift.PrependError("write field stop error: ", err)
}
if err := oprot.WriteStructEnd(); err != nil {
return thrift.PrependError("write struct stop error: ", err)
}
return nil
}
示例8: Write
func (p *SimpleArgs) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("Simple_args"); err != nil {
return fmt.Errorf("%T write struct begin error: %s", p, err)
}
if err := oprot.WriteFieldStop(); err != nil {
return fmt.Errorf("write field stop error: %s", err)
}
if err := oprot.WriteStructEnd(); err != nil {
return fmt.Errorf("write struct stop error: %s", err)
}
return nil
}
示例9: Write
func (p *NotAuthorized) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("NotAuthorized"); err != nil {
return fmt.Errorf("%T write struct begin error: %s", p, err)
}
if err := oprot.WriteFieldStop(); err != nil {
return fmt.Errorf("write field stop error: %s", err)
}
if err := oprot.WriteStructEnd(); err != nil {
return fmt.Errorf("write struct stop error: %s", err)
}
return nil
}
示例10: Write
func (p *MultiSubmitArgs) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("multi_submit_args"); err != nil {
return fmt.Errorf("%T write struct begin error: %s", p, err)
}
if err := p.writeField1(oprot); err != nil {
return err
}
if err := oprot.WriteFieldStop(); err != nil {
return fmt.Errorf("write field stop error: %s", err)
}
if err := oprot.WriteStructEnd(); err != nil {
return fmt.Errorf("write struct stop error: %s", err)
}
return nil
}
示例11: Write
func (p *StoreDependenciesArgs) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("storeDependencies_args"); err != nil {
return fmt.Errorf("%T write struct begin error: %s", p, err)
}
if err := p.writeField1(oprot); err != nil {
return err
}
if err := oprot.WriteFieldStop(); err != nil {
return fmt.Errorf("write field stop error: %s", err)
}
if err := oprot.WriteStructEnd(); err != nil {
return fmt.Errorf("write struct stop error: %s", err)
}
return nil
}
示例12: Write
func (p *TCollectorMultiSubmitResult) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("multi_submit_result"); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
}
if err := p.writeField0(oprot); err != nil {
return err
}
if err := oprot.WriteFieldStop(); err != nil {
return thrift.PrependError("write field stop error: ", err)
}
if err := oprot.WriteStructEnd(); err != nil {
return thrift.PrependError("write struct stop error: ", err)
}
return nil
}
示例13: Write
func (p *ConcatReply) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("ConcatReply"); err != nil {
return fmt.Errorf("%T write struct begin error: %s", p, err)
}
if err := p.writeField1(oprot); err != nil {
return err
}
if err := oprot.WriteFieldStop(); err != nil {
return fmt.Errorf("write field stop error: %s", err)
}
if err := oprot.WriteStructEnd(); err != nil {
return fmt.Errorf("write struct stop error: %s", err)
}
return nil
}
示例14: Write
func (p *AccountDoActionArgs) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("doAction_args"); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
}
if err := p.writeField1(oprot); err != nil {
return err
}
if err := oprot.WriteFieldStop(); err != nil {
return thrift.PrependError("write field stop error: ", err)
}
if err := oprot.WriteStructEnd(); err != nil {
return thrift.PrependError("write struct stop error: ", err)
}
return nil
}
示例15: Write
func (p *TCollectorGetSamplingStrategyArgs) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("getSamplingStrategy_args"); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
}
if err := p.writeField1(oprot); err != nil {
return err
}
if err := oprot.WriteFieldStop(); err != nil {
return thrift.PrependError("write field stop error: ", err)
}
if err := oprot.WriteStructEnd(); err != nil {
return thrift.PrependError("write struct stop error: ", err)
}
return nil
}