Example #1
0
func (p *RestRequest) ReadField1(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI32(); err != nil {
		return fmt.Errorf("error reading field 1: %s", err)
	} else {
		temp := Method(v)
		p.Method = temp
	}
	return nil
}
Example #2
0
func (p *RestResponse) ReadField1(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI32(); err != nil {
		return fmt.Errorf("error reading field 1: %s", err)
	} else {
		temp := Status(v)
		p.Status = temp
	}
	return nil
}
Example #3
0
func (p *LogResult) ReadField0(iprot thrift.TProtocol) error {
	if v, err := iprot.ReadI32(); err != nil {
		return fmt.Errorf("error reading field 0: %s", err)
	} else {
		temp := ResultCode(v)
		p.Success = &temp
	}
	return nil
}