当前位置: 首页>>代码示例>>Golang>>正文


Golang TProtocol.WriteBool方法代码示例

本文整理汇总了Golang中git/apache/org/thrift/git/lib/go/thrift.TProtocol.WriteBool方法的典型用法代码示例。如果您正苦于以下问题:Golang TProtocol.WriteBool方法的具体用法?Golang TProtocol.WriteBool怎么用?Golang TProtocol.WriteBool使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在git/apache/org/thrift/git/lib/go/thrift.TProtocol的用法示例。


在下文中一共展示了TProtocol.WriteBool方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。

示例1: writeField0

func (p *UpdateResult) writeField0(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("success", thrift.BOOL, 0); err != nil {
		return fmt.Errorf("%T write field begin error 0:success: %s", p, err)
	}
	if err := oprot.WriteBool(bool(p.Success)); err != nil {
		return fmt.Errorf("%T.success (0) field write error: %s", p)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 0:success: %s", p, err)
	}
	return err
}
开发者ID:huacnlee,项目名称:thrift_example,代码行数:12,代码来源:common_service.go

示例2: writeField5

func (p *GetPrivateMessageListArgs) writeField5(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("isReversed", thrift.BOOL, 5); err != nil {
		return fmt.Errorf("%T write field begin error 5:isReversed: %s", p, err)
	}
	if err := oprot.WriteBool(bool(p.IsReversed)); err != nil {
		return fmt.Errorf("%T.isReversed (5) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 5:isReversed: %s", p, err)
	}
	return err
}
开发者ID:lei-yu,项目名称:GOPATH,代码行数:12,代码来源:privatemessagemanagersync.go

示例3: writeField8

func (p *GetAccessableGroupResourcesArgs) writeField8(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("isReversed", thrift.BOOL, 8); err != nil {
		return fmt.Errorf("%T write field begin error 8:isReversed: %s", p, err)
	}
	if err := oprot.WriteBool(bool(p.IsReversed)); err != nil {
		return fmt.Errorf("%T.isReversed (8) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 8:isReversed: %s", p, err)
	}
	return err
}
开发者ID:lei-yu,项目名称:GOPATH,代码行数:12,代码来源:accessmanager.go

示例4: writeField4

func (p *GetGroupMessagesArgs) writeField4(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("isReversed", thrift.BOOL, 4); err != nil {
		return fmt.Errorf("%T write field begin error 4:isReversed: %s", p, err)
	}
	if err := oprot.WriteBool(bool(p.IsReversed)); err != nil {
		return fmt.Errorf("%T.isReversed (4) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 4:isReversed: %s", p, err)
	}
	return err
}
开发者ID:lei-yu,项目名称:GOPATH,代码行数:12,代码来源:chatmanagersync.go

示例5: writeField8

func (p *Person) writeField8(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("Active", thrift.BOOL, 8); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field begin error 8:Active: ", p), err)
	}
	if err := oprot.WriteBool(bool(p.Active)); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T.Active (8) field write error: ", p), err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field end error 8:Active: ", p), err)
	}
	return err
}
开发者ID:dynastymasra,项目名称:GoGinThrift,代码行数:12,代码来源:ttypes.go

示例6: writeField5

func (p *Coffee) writeField5(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("iced", thrift.BOOL, 5); err != nil {
		return fmt.Errorf("%T write field begin error 5:iced: %s", p, err)
	}
	if err := oprot.WriteBool(bool(p.Iced)); err != nil {
		return fmt.Errorf("%T.iced (5) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 5:iced: %s", p, err)
	}
	return err
}
开发者ID:RobWC,项目名称:thrift-coffee,代码行数:12,代码来源:ttypes.go

示例7: writeField3

func (p *Student) writeField3(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("ssex", thrift.BOOL, 3); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:ssex: ", p), err)
	}
	if err := oprot.WriteBool(bool(p.Ssex)); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T.ssex (3) field write error: ", p), err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field end error 3:ssex: ", p), err)
	}
	return err
}
开发者ID:wallacexinyu,项目名称:Distributed-Productivity-Calendar,代码行数:12,代码来源:ttypes.go

示例8: writeField6

func (p *ParticipanteRowItemThrift) writeField6(oprot thrift.TProtocol) (err error) {
	if p.IsSetCessouHabitoFumar() {
		if err := oprot.WriteFieldBegin("cessouHabitoFumar", thrift.BOOL, 6); err != nil {
			return fmt.Errorf("%T write field begin error 6:cessouHabitoFumar: %s", p, err)
		}
		if err := oprot.WriteBool(bool(*p.CessouHabitoFumar)); err != nil {
			return fmt.Errorf("%T.cessouHabitoFumar (6) field write error: %s", p, err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 6:cessouHabitoFumar: %s", p, err)
		}
	}
	return err
}
开发者ID:esusab,项目名称:integracao,代码行数:14,代码来源:ttypes.go

示例9: writeField3

func (p *ParticipanteRowItemThrift) writeField3(oprot thrift.TProtocol) (err error) {
	if p.IsSetAvaliacaoAlterada() {
		if err := oprot.WriteFieldBegin("avaliacaoAlterada", thrift.BOOL, 3); err != nil {
			return fmt.Errorf("%T write field begin error 3:avaliacaoAlterada: %s", p, err)
		}
		if err := oprot.WriteBool(bool(*p.AvaliacaoAlterada)); err != nil {
			return fmt.Errorf("%T.avaliacaoAlterada (3) field write error: %s", p, err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 3:avaliacaoAlterada: %s", p, err)
		}
	}
	return err
}
开发者ID:esusab,项目名称:integracao,代码行数:14,代码来源:ttypes.go

示例10: writeField0

func (p *DcacheServicePutResult) writeField0(oprot thrift.TProtocol) (err error) {
	if p.IsSetSuccess() {
		if err := oprot.WriteFieldBegin("success", thrift.BOOL, 0); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
		}
		if err := oprot.WriteBool(bool(*p.Success)); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T.success (0) field write error: ", p), err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
		}
	}
	return err
}
开发者ID:nipuntalukdar,项目名称:NipunTalukdarExamples,代码行数:14,代码来源:dcacheservice.go

示例11: writeField7

func (p *BootstrapSettings) writeField7(oprot thrift.TProtocol) (err error) {
	if p.IsSetEnableSupportTickets() {
		if err := oprot.WriteFieldBegin("enableSupportTickets", thrift.BOOL, 7); err != nil {
			return fmt.Errorf("%T write field begin error 7:enableSupportTickets: %s", p, err)
		}
		if err := oprot.WriteBool(bool(p.EnableSupportTickets)); err != nil {
			return fmt.Errorf("%T.enableSupportTickets (7) field write error: %s", p)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 7:enableSupportTickets: %s", p, err)
		}
	}
	return err
}
开发者ID:quekshuy,项目名称:evernote-golang-sdk,代码行数:14,代码来源:ttypes.go

示例12: writeField12

func (p *BootstrapSettings) writeField12(oprot thrift.TProtocol) (err error) {
	if p.IsSetEnableLinkedInSharing() {
		if err := oprot.WriteFieldBegin("enableLinkedInSharing", thrift.BOOL, 12); err != nil {
			return fmt.Errorf("%T write field begin error 12:enableLinkedInSharing: %s", p, err)
		}
		if err := oprot.WriteBool(bool(p.EnableLinkedInSharing)); err != nil {
			return fmt.Errorf("%T.enableLinkedInSharing (12) field write error: %s", p)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 12:enableLinkedInSharing: %s", p, err)
		}
	}
	return err
}
开发者ID:quekshuy,项目名称:evernote-golang-sdk,代码行数:14,代码来源:ttypes.go

示例13: writeField10

func (p *FichaVisitaDomiciliarChildThrift) writeField10(oprot thrift.TProtocol) (err error) {
	if p.IsSetStForaArea() {
		if err := oprot.WriteFieldBegin("stForaArea", thrift.BOOL, 10); err != nil {
			return fmt.Errorf("%T write field begin error 10:stForaArea: %s", p, err)
		}
		if err := oprot.WriteBool(bool(*p.StForaArea)); err != nil {
			return fmt.Errorf("%T.stForaArea (10) field write error: %s", p, err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 10:stForaArea: %s", p, err)
		}
	}
	return err
}
开发者ID:esusab,项目名称:integracao,代码行数:14,代码来源:ttypes.go

示例14: writeField5

func (p *Types) writeField5(oprot thrift.TProtocol) (err error) {
	if p.IsSetBoolValue() {
		if err := oprot.WriteFieldBegin("bool_value", thrift.BOOL, 5); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:bool_value: ", p), err)
		}
		if err := oprot.WriteBool(bool(*p.BoolValue)); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T.bool_value (5) field write error: ", p), err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T write field end error 5:bool_value: ", p), err)
		}
	}
	return err
}
开发者ID:y-okubo,项目名称:thrift-test,代码行数:14,代码来源:ttypes.go

示例15: writeField9

func (p *Span) writeField9(oprot thrift.TProtocol) (err error) {
	if p.IsSetDebug() {
		if err := oprot.WriteFieldBegin("debug", thrift.BOOL, 9); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T write field begin error 9:debug: ", p), err)
		}
		if err := oprot.WriteBool(bool(p.Debug)); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T.debug (9) field write error: ", p), err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T write field end error 9:debug: ", p), err)
		}
	}
	return err
}
开发者ID:elodina,项目名称:go-zipkin,代码行数:14,代码来源:ttypes.go


注:本文中的git/apache/org/thrift/git/lib/go/thrift.TProtocol.WriteBool方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。