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


Golang TProtocol.ReadBinary方法代码示例

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


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

示例1: ReadField7

func (p *DadoTransporteThrift) ReadField7(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadBinary(); err != nil {
		return fmt.Errorf("error reading field 7: %s", err)
	} else {
		p.DadoSerializado = v
	}
	return nil
}
开发者ID:esusab,项目名称:integracao,代码行数:8,代码来源:ttypes.go

示例2: ReadField2

func (p *Blog) ReadField2(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadBinary(); err != nil {
		return fmt.Errorf("error reading field 2: %s", err)
	} else {
		p.Content = v
	}
	return nil
}
开发者ID:amwicfai,项目名称:go-example,代码行数:8,代码来源:ttypes.go

示例3: readField2

func (p *PutCommand) readField2(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadBinary(); err != nil {
		return thrift.PrependError("error reading field 2: ", err)
	} else {
		p.Data = v
	}
	return nil
}
开发者ID:nipuntalukdar,项目名称:NipunTalukdarExamples,代码行数:8,代码来源:ttypes.go

示例4: readField8

func (p *Entry) readField8(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadBinary(); err != nil {
		return thrift.PrependError("error reading field 8: ", err)
	} else {
		p.WriterOutput = v
	}
	return nil
}
开发者ID:peter-edge,项目名称:lion-go,代码行数:8,代码来源:ttypes.go

示例5: readField2

func (p *ThriftFlumeEvent) readField2(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadBinary(); err != nil {
		return fmt.Errorf("error reading field 2: %s")
	} else {
		p.Body = v
	}
	return nil
}
开发者ID:rejoicelee,项目名称:flume-log-sdk,代码行数:8,代码来源:ttypes.go

示例6: readField2

func (p *BinaryAnnotation) readField2(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadBinary(); err != nil {
		return thrift.PrependError("error reading field 2: ", err)
	} else {
		p.Value = v
	}
	return nil
}
开发者ID:elodina,项目名称:go-zipkin,代码行数:8,代码来源:ttypes.go

示例7: readField3

func (p *EntryMessage) readField3(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadBinary(); err != nil {
		return thrift.PrependError("error reading field 3: ", err)
	} else {
		p.Value = v
	}
	return nil
}
开发者ID:peter-edge,项目名称:lion-go,代码行数:8,代码来源:ttypes.go

示例8: readField1

func (p *FindByArgs) readField1(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadBinary(); err != nil {
		return fmt.Errorf("error reading field 1: %s")
	} else {
		p.Criteria = v
	}
	return nil
}
开发者ID:mvpmvh,项目名称:DE2,代码行数:8,代码来源:binary_messenger.go

示例9: readField0

func (p *FindByResult) readField0(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadBinary(); err != nil {
		return fmt.Errorf("error reading field 0: %s")
	} else {
		p.Success = v
	}
	return nil
}
开发者ID:mvpmvh,项目名称:DE2,代码行数:8,代码来源:binary_messenger.go

示例10: readField3

func (p *InsertOrUpdateArgs) readField3(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadBinary(); err != nil {
		return fmt.Errorf("error reading field 3: %s")
	} else {
		p.Value = TValue(v)
	}
	return nil
}
开发者ID:cosh,项目名称:C4,代码行数:8,代码来源:c4.go

示例11: readField1

func (p *QueueInfo) readField1(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadBinary(); err != nil {
		return fmt.Errorf("error reading field 1: %s")
	} else {
		p.HeadItem = v
	}
	return nil
}
开发者ID:houcy,项目名称:go-kestrel,代码行数:8,代码来源:ttypes.go

示例12: ReadField2

func (p *BinaryAnnotation) ReadField2(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadBinary(); err != nil {
		return fmt.Errorf("error reading field 2: %s", err)
	} else {
		p.Value = v
	}
	return nil
}
开发者ID:no2key,项目名称:monitor-1,代码行数:8,代码来源:ttypes.go

示例13: readField0

func (p *CalculatorRmqCallResult) readField0(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadBinary(); err != nil {
		return thrift.PrependError("error reading field 0: ", err)
	} else {
		p.Success = v
	}
	return nil
}
开发者ID:glycerine,项目名称:rmq,代码行数:8,代码来源:calculator.go

示例14: readField1

func (p *CalculatorRmqCallArgs) readField1(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadBinary(); err != nil {
		return thrift.PrependError("error reading field 1: ", err)
	} else {
		p.Bin = v
	}
	return nil
}
开发者ID:glycerine,项目名称:rmq,代码行数:8,代码来源:calculator.go

示例15: ReadField0

func (p *GetComputationSlugResult) ReadField0(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadBinary(); err != nil {
		return fmt.Errorf("error reading field 0: %s", err)
	} else {
		p.Success = v
	}
	return nil
}
开发者ID:concord,项目名称:concord-go,代码行数:8,代码来源:boltschedulerservice.go


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