當前位置: 首頁>>代碼示例>>Golang>>正文


Golang TProtocol.ReadI64方法代碼示例

本文整理匯總了Golang中github.com/apache/thrift/lib/go/thrift.TProtocol.ReadI64方法的典型用法代碼示例。如果您正苦於以下問題:Golang TProtocol.ReadI64方法的具體用法?Golang TProtocol.ReadI64怎麽用?Golang TProtocol.ReadI64使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在github.com/apache/thrift/lib/go/thrift.TProtocol的用法示例。


在下文中一共展示了TProtocol.ReadI64方法的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。

示例1: ReadField2

func (p *Dependencies) ReadField2(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return fmt.Errorf("error reading field 2: %s", err)
	} else {
		p.EndTime = v
	}
	return nil
}
開發者ID:cnicolov,項目名稱:kit,代碼行數:8,代碼來源:ttypes.go

示例2: ReadField1

func (p *Moments) ReadField1(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return fmt.Errorf("error reading field 1: %s", err)
	} else {
		p.M0 = v
	}
	return nil
}
開發者ID:cnicolov,項目名稱:kit,代碼行數:8,代碼來源:ttypes.go

示例3: readField10

func (p *Span) readField10(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return thrift.PrependError("error reading field 10: ", err)
	} else {
		p.Timestamp = &v
	}
	return nil
}
開發者ID:ZhuJingfa,項目名稱:go-platform,代碼行數:8,代碼來源:ttypes.go

示例4: readField11

func (p *Span) readField11(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return thrift.PrependError("error reading field 11: ", err)
	} else {
		p.Duration = &v
	}
	return nil
}
開發者ID:ZhuJingfa,項目名稱:go-platform,代碼行數:8,代碼來源:ttypes.go

示例5: ReadField2

func (p *AddArgs) ReadField2(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return fmt.Errorf("error reading field 2: %s", err)
	} else {
		p.B = v
	}
	return nil
}
開發者ID:EthanK28,項目名稱:kit,代碼行數:8,代碼來源:addservice.go

示例6: readField5

func (p *Span) readField5(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return thrift.PrependError("error reading field 5: ", err)
	} else {
		p.ParentID = &v
	}
	return nil
}
開發者ID:ZhuJingfa,項目名稱:go-platform,代碼行數:8,代碼來源:ttypes.go

示例7: ReadField1

func (p *SumReply) ReadField1(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return fmt.Errorf("error reading field 1: %s", err)
	} else {
		p.Value = v
	}
	return nil
}
開發者ID:nimmen,項目名稱:kit,代碼行數:8,代碼來源:ttypes.go

示例8: readField1

func (p *SumReply) readField1(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return thrift.PrependError("error reading field 1: ", err)
	} else {
		p.Value = v
	}
	return nil
}
開發者ID:crezam,項目名稱:kit,代碼行數:8,代碼來源:ttypes.go

示例9: ReadField1

func (p *Annotation) ReadField1(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return fmt.Errorf("error reading field 1: %s", err)
	} else {
		p.Timestamp = v
	}
	return nil
}
開發者ID:taion809,項目名稱:go-zipkin,代碼行數:8,代碼來源:ttypes.go

示例10: ReadField5

func (p *Span) ReadField5(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return fmt.Errorf("error reading field 5: %s", err)
	} else {
		p.ParentId = &v
	}
	return nil
}
開發者ID:taion809,項目名稱:go-zipkin,代碼行數:8,代碼來源:ttypes.go

示例11: readField6

func (p *BinaryAnnotation) readField6(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return thrift.PrependError("error reading field 6: ", err)
	} else {
		p.IntValue = &v
	}
	return nil
}
開發者ID:dansimau,項目名稱:ringpop-go,代碼行數:8,代碼來源:ttypes.go

示例12: readField2

func (p *AddServiceSumArgs) readField2(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return thrift.PrependError("error reading field 2: ", err)
	} else {
		p.B = v
	}
	return nil
}
開發者ID:cnicolov,項目名稱:kit,代碼行數:8,代碼來源:addservice.go

示例13: ReadField3

func (p *Chunk) ReadField3(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return thrift.PrependError("error reading field 3: ", err)
	} else {
		p.Offset = v
	}
	return nil
}
開發者ID:akaspin,項目名稱:bar,代碼行數:8,代碼來源:ttypes.go

示例14: ReadField2

func (p *DataInfo) ReadField2(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI64(); err != nil {
		return thrift.PrependError("error reading field 2: ", err)
	} else {
		p.Size = v
	}
	return nil
}
開發者ID:akaspin,項目名稱:bar,代碼行數:8,代碼來源:ttypes.go


注:本文中的github.com/apache/thrift/lib/go/thrift.TProtocol.ReadI64方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。