本文整理汇总了Golang中github.com/bcgraham/tsumtsum/external/thrift.TProtocol.WriteStructBegin方法的典型用法代码示例。如果您正苦于以下问题:Golang TProtocol.WriteStructBegin方法的具体用法?Golang TProtocol.WriteStructBegin怎么用?Golang TProtocol.WriteStructBegin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类github.com/bcgraham/tsumtsum/external/thrift.TProtocol
的用法示例。
在下文中一共展示了TProtocol.WriteStructBegin方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: Write
func (p *LoginWithIdentityCredentialForCertificateArgs) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("loginWithIdentityCredentialForCertificate_args"); err != nil {
return fmt.Errorf("%T write struct begin error: %s", p, 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 := p.writeField8(oprot); err != nil {
return err
}
if err := p.writeField9(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
}
示例2: Write
func (p *GetAllContactIdsArgs) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("getAllContactIds_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
}
示例3: Write
func (p *MultiGetLastReadMessageIdsArgs) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("multiGetLastReadMessageIds_args"); err != nil {
return fmt.Errorf("%T write struct begin error: %s", p, err)
}
if err := p.writeField2(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
}
示例4: Write
func (p *GetMessageBoxCompactWrapUpListResult) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("getMessageBoxCompactWrapUpList_result"); err != nil {
return fmt.Errorf("%T write struct begin error: %s", p, err)
}
if err := p.writeField0(oprot); err != nil {
return 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
}
示例5: Write
func (p *FindAndAddContactsByUseridResult) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("findAndAddContactsByUserid_result"); err != nil {
return fmt.Errorf("%T write struct begin error: %s", p, err)
}
if err := p.writeField0(oprot); err != nil {
return 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
}
示例6: Write
func (p *LoginWithVerifierForCertificateResult) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("loginWithVerifierForCertificate_result"); err != nil {
return fmt.Errorf("%T write struct begin error: %s", p, err)
}
if err := p.writeField0(oprot); err != nil {
return 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
}
示例7: Write
func (p *GetLastOpRevisionResult) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("getLastOpRevision_result"); err != nil {
return fmt.Errorf("%T write struct begin error: %s", p, err)
}
if err := p.writeField0(oprot); err != nil {
return 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
}