本文整理汇总了Golang中github.com/apache/thrift/lib/go/thrift.TProtocol.ReadBool方法的典型用法代码示例。如果您正苦于以下问题:Golang TProtocol.ReadBool方法的具体用法?Golang TProtocol.ReadBool怎么用?Golang TProtocol.ReadBool使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类github.com/apache/thrift/lib/go/thrift.TProtocol
的用法示例。
在下文中一共展示了TProtocol.ReadBool方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: readField1
func (p *HealthStatus) readField1(iprot thrift.TProtocol) error {
if v, err := iprot.ReadBool(); err != nil {
return thrift.PrependError("error reading field 1: ", err)
} else {
p.Ok = v
}
return nil
}
示例2: ReadField1
func (p *HealthCheckRes) ReadField1(iprot thrift.TProtocol) error {
if v, err := iprot.ReadBool(); err != nil {
return fmt.Errorf("error reading field 1: %s", err)
} else {
p.Healthy = v
}
return nil
}
示例3: readField9
func (p *Span) readField9(iprot thrift.TProtocol) error {
if v, err := iprot.ReadBool(); err != nil {
return thrift.PrependError("error reading field 9: ", err)
} else {
p.Debug = v
}
return nil
}
示例4: ReadField1
func (p *Data) ReadField1(iprot thrift.TProtocol) error {
if v, err := iprot.ReadBool(); err != nil {
return thrift.PrependError("error reading field 1: ", err)
} else {
p.B1 = v
}
return nil
}
示例5: ReadField9
func (p *Span) ReadField9(iprot thrift.TProtocol) error {
if v, err := iprot.ReadBool(); err != nil {
return fmt.Errorf("error reading field 9: %s", err)
} else {
p.Debug = v
}
return nil
}
示例6: readField4
func (p *BinaryAnnotation) readField4(iprot thrift.TProtocol) error {
if v, err := iprot.ReadBool(); err != nil {
return thrift.PrependError("error reading field 4: ", err)
} else {
p.BoolValue = &v
}
return nil
}
示例7: ReadField1
func (p *Response) ReadField1(iprot thrift.TProtocol) error {
if v, err := iprot.ReadBool(); err != nil {
return fmt.Errorf("error reading field 1: %s", err)
} else {
p.Ok = v
}
return nil
}