base

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KitexUnusedProtection = struct{}{}

KitexUnusedProtection is used to prevent 'imported and not used' error.

Functions

This section is empty.

Types

type BaseResponse

type BaseResponse struct {
	StatusCode int64  `thrift:"status_code,1" frugal:"1,default,i64" json:"status_code"`
	StatusMsg  string `thrift:"status_msg,2" frugal:"2,default,string" json:"status_msg"`
}

func NewBaseResponse

func NewBaseResponse() *BaseResponse

func (*BaseResponse) BLength

func (p *BaseResponse) BLength() int

func (*BaseResponse) DeepEqual

func (p *BaseResponse) DeepEqual(ano *BaseResponse) bool

func (*BaseResponse) FastRead

func (p *BaseResponse) FastRead(buf []byte) (int, error)

func (*BaseResponse) FastReadField1

func (p *BaseResponse) FastReadField1(buf []byte) (int, error)

func (*BaseResponse) FastReadField2

func (p *BaseResponse) FastReadField2(buf []byte) (int, error)

func (*BaseResponse) FastWrite

func (p *BaseResponse) FastWrite(buf []byte) int

for compatibility

func (*BaseResponse) FastWriteNocopy

func (p *BaseResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*BaseResponse) Field1DeepEqual

func (p *BaseResponse) Field1DeepEqual(src int64) bool

func (*BaseResponse) Field2DeepEqual

func (p *BaseResponse) Field2DeepEqual(src string) bool

func (*BaseResponse) GetStatusCode

func (p *BaseResponse) GetStatusCode() (v int64)

func (*BaseResponse) GetStatusMsg

func (p *BaseResponse) GetStatusMsg() (v string)

func (*BaseResponse) InitDefault

func (p *BaseResponse) InitDefault()

func (*BaseResponse) Read

func (p *BaseResponse) Read(iprot thrift.TProtocol) (err error)

func (*BaseResponse) ReadField1

func (p *BaseResponse) ReadField1(iprot thrift.TProtocol) error

func (*BaseResponse) ReadField2

func (p *BaseResponse) ReadField2(iprot thrift.TProtocol) error

func (*BaseResponse) SetStatusCode

func (p *BaseResponse) SetStatusCode(val int64)

func (*BaseResponse) SetStatusMsg

func (p *BaseResponse) SetStatusMsg(val string)

func (*BaseResponse) String

func (p *BaseResponse) String() string

func (*BaseResponse) Write

func (p *BaseResponse) Write(oprot thrift.TProtocol) (err error)

type Car

type Car struct {
	Status   CarStatus `thrift:"status,1" frugal:"1,default,CarStatus" json:"status"`
	Driver   *Driver   `thrift:"driver,2" frugal:"2,default,Driver" json:"driver"`
	Position *Position `thrift:"position,3" frugal:"3,default,Position" json:"position"`
	TripId   string    `thrift:"trip_id,4" frugal:"4,default,string" json:"trip_id"`
	Power    float64   `thrift:"power,5" frugal:"5,default,double" json:"power"`
	PlateNum string    `thrift:"plate_num,6" frugal:"6,default,string" json:"plate_num"`
}
var CarEntity_Car_DEFAULT *Car

func NewCar

func NewCar() *Car

func (*Car) BLength

func (p *Car) BLength() int

func (*Car) DeepEqual

func (p *Car) DeepEqual(ano *Car) bool

func (*Car) FastRead

func (p *Car) FastRead(buf []byte) (int, error)

func (*Car) FastReadField1

func (p *Car) FastReadField1(buf []byte) (int, error)

func (*Car) FastReadField2

func (p *Car) FastReadField2(buf []byte) (int, error)

func (*Car) FastReadField3

func (p *Car) FastReadField3(buf []byte) (int, error)

func (*Car) FastReadField4

func (p *Car) FastReadField4(buf []byte) (int, error)

func (*Car) FastReadField5

func (p *Car) FastReadField5(buf []byte) (int, error)

func (*Car) FastReadField6

func (p *Car) FastReadField6(buf []byte) (int, error)

func (*Car) FastWrite

func (p *Car) FastWrite(buf []byte) int

for compatibility

func (*Car) FastWriteNocopy

func (p *Car) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*Car) Field1DeepEqual

func (p *Car) Field1DeepEqual(src CarStatus) bool

func (*Car) Field2DeepEqual

func (p *Car) Field2DeepEqual(src *Driver) bool

func (*Car) Field3DeepEqual

func (p *Car) Field3DeepEqual(src *Position) bool

func (*Car) Field4DeepEqual

func (p *Car) Field4DeepEqual(src string) bool

func (*Car) Field5DeepEqual

func (p *Car) Field5DeepEqual(src float64) bool

func (*Car) Field6DeepEqual

func (p *Car) Field6DeepEqual(src string) bool

func (*Car) GetDriver

func (p *Car) GetDriver() (v *Driver)

func (*Car) GetPlateNum

func (p *Car) GetPlateNum() (v string)

func (*Car) GetPosition

func (p *Car) GetPosition() (v *Position)

func (*Car) GetPower

func (p *Car) GetPower() (v float64)

func (*Car) GetStatus

func (p *Car) GetStatus() (v CarStatus)

func (*Car) GetTripId

func (p *Car) GetTripId() (v string)

func (*Car) InitDefault

func (p *Car) InitDefault()

func (*Car) IsSetDriver

func (p *Car) IsSetDriver() bool

func (*Car) IsSetPosition

func (p *Car) IsSetPosition() bool

func (*Car) Read

func (p *Car) Read(iprot thrift.TProtocol) (err error)

func (*Car) ReadField1

func (p *Car) ReadField1(iprot thrift.TProtocol) error

func (*Car) ReadField2

func (p *Car) ReadField2(iprot thrift.TProtocol) error

func (*Car) ReadField3

func (p *Car) ReadField3(iprot thrift.TProtocol) error

func (*Car) ReadField4

func (p *Car) ReadField4(iprot thrift.TProtocol) error

func (*Car) ReadField5

func (p *Car) ReadField5(iprot thrift.TProtocol) error

func (*Car) ReadField6

func (p *Car) ReadField6(iprot thrift.TProtocol) error

func (*Car) SetDriver

func (p *Car) SetDriver(val *Driver)

func (*Car) SetPlateNum

func (p *Car) SetPlateNum(val string)

func (*Car) SetPosition

func (p *Car) SetPosition(val *Position)

func (*Car) SetPower

func (p *Car) SetPower(val float64)

func (*Car) SetStatus

func (p *Car) SetStatus(val CarStatus)

func (*Car) SetTripId

func (p *Car) SetTripId(val string)

func (*Car) String

func (p *Car) String() string

func (*Car) Write

func (p *Car) Write(oprot thrift.TProtocol) (err error)

type CarEntity

type CarEntity struct {
	Id  string `thrift:"id,1" frugal:"1,default,string" json:"id"`
	Car *Car   `thrift:"car,2" frugal:"2,default,Car" json:"car"`
}

func NewCarEntity

func NewCarEntity() *CarEntity

func (*CarEntity) BLength

func (p *CarEntity) BLength() int

func (*CarEntity) DeepEqual

func (p *CarEntity) DeepEqual(ano *CarEntity) bool

func (*CarEntity) FastRead

func (p *CarEntity) FastRead(buf []byte) (int, error)

func (*CarEntity) FastReadField1

func (p *CarEntity) FastReadField1(buf []byte) (int, error)

func (*CarEntity) FastReadField2

func (p *CarEntity) FastReadField2(buf []byte) (int, error)

func (*CarEntity) FastWrite

func (p *CarEntity) FastWrite(buf []byte) int

for compatibility

func (*CarEntity) FastWriteNocopy

func (p *CarEntity) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CarEntity) Field1DeepEqual

func (p *CarEntity) Field1DeepEqual(src string) bool

func (*CarEntity) Field2DeepEqual

func (p *CarEntity) Field2DeepEqual(src *Car) bool

func (*CarEntity) GetCar

func (p *CarEntity) GetCar() (v *Car)

func (*CarEntity) GetId

func (p *CarEntity) GetId() (v string)

func (*CarEntity) InitDefault

func (p *CarEntity) InitDefault()

func (*CarEntity) IsSetCar

func (p *CarEntity) IsSetCar() bool

func (*CarEntity) Read

func (p *CarEntity) Read(iprot thrift.TProtocol) (err error)

func (*CarEntity) ReadField1

func (p *CarEntity) ReadField1(iprot thrift.TProtocol) error

func (*CarEntity) ReadField2

func (p *CarEntity) ReadField2(iprot thrift.TProtocol) error

func (*CarEntity) SetCar

func (p *CarEntity) SetCar(val *Car)

func (*CarEntity) SetId

func (p *CarEntity) SetId(val string)

func (*CarEntity) String

func (p *CarEntity) String() string

func (*CarEntity) Write

func (p *CarEntity) Write(oprot thrift.TProtocol) (err error)

type CarStatus

type CarStatus int64
const (
	CarStatus_CS_NOT_SPECIFIED CarStatus = 0
	CarStatus_LOCKED           CarStatus = 1
	CarStatus_UNLOCKING        CarStatus = 2
	CarStatus_UNLOCKED         CarStatus = 3
	CarStatus_LOCKING          CarStatus = 4
)

func CarStatusFromString

func CarStatusFromString(s string) (CarStatus, error)

func CarStatusPtr

func CarStatusPtr(v CarStatus) *CarStatus

func (*CarStatus) Scan

func (p *CarStatus) Scan(value interface{}) (err error)

func (CarStatus) String

func (p CarStatus) String() string

func (*CarStatus) Value

func (p *CarStatus) Value() (driver.Value, error)

type Driver

type Driver struct {
	Id        string `thrift:"id,1" frugal:"1,default,string" json:"id"`
	AvatarUrl string `thrift:"avatar_url,2" frugal:"2,default,string" json:"avatar_url"`
}
var Car_Driver_DEFAULT *Driver

func NewDriver

func NewDriver() *Driver

func (*Driver) BLength

func (p *Driver) BLength() int

func (*Driver) DeepEqual

func (p *Driver) DeepEqual(ano *Driver) bool

func (*Driver) FastRead

func (p *Driver) FastRead(buf []byte) (int, error)

func (*Driver) FastReadField1

func (p *Driver) FastReadField1(buf []byte) (int, error)

func (*Driver) FastReadField2

func (p *Driver) FastReadField2(buf []byte) (int, error)

func (*Driver) FastWrite

func (p *Driver) FastWrite(buf []byte) int

for compatibility

func (*Driver) FastWriteNocopy

func (p *Driver) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*Driver) Field1DeepEqual

func (p *Driver) Field1DeepEqual(src string) bool

func (*Driver) Field2DeepEqual

func (p *Driver) Field2DeepEqual(src string) bool

func (*Driver) GetAvatarUrl

func (p *Driver) GetAvatarUrl() (v string)

func (*Driver) GetId

func (p *Driver) GetId() (v string)

func (*Driver) InitDefault

func (p *Driver) InitDefault()

func (*Driver) Read

func (p *Driver) Read(iprot thrift.TProtocol) (err error)

func (*Driver) ReadField1

func (p *Driver) ReadField1(iprot thrift.TProtocol) error

func (*Driver) ReadField2

func (p *Driver) ReadField2(iprot thrift.TProtocol) error

func (*Driver) SetAvatarUrl

func (p *Driver) SetAvatarUrl(val string)

func (*Driver) SetId

func (p *Driver) SetId(val string)

func (*Driver) String

func (p *Driver) String() string

func (*Driver) Write

func (p *Driver) Write(oprot thrift.TProtocol) (err error)

type Gender

type Gender int64
const (
	Gender_G_NOT_SPECIFIED Gender = 0
	Gender_MALE            Gender = 1
	Gender_FEMALE          Gender = 2
)

func GenderFromString

func GenderFromString(s string) (Gender, error)

func GenderPtr

func GenderPtr(v Gender) *Gender

func (*Gender) Scan

func (p *Gender) Scan(value interface{}) (err error)

func (Gender) String

func (p Gender) String() string

func (*Gender) Value

func (p *Gender) Value() (driver.Value, error)

type Identity

type Identity struct {
	LicNumber       string `thrift:"lic_number,1" frugal:"1,default,string" json:"lic_number"`
	Name            string `thrift:"name,2" frugal:"2,default,string" json:"name"`
	Gender          Gender `thrift:"gender,3" frugal:"3,default,Gender" json:"gender"`
	BirthDateMillis int64  `thrift:"birth_date_millis,4" frugal:"4,default,i64" json:"birth_date_millis"`
}
var Profile_Identity_DEFAULT *Identity

func NewIdentity

func NewIdentity() *Identity

func (*Identity) BLength

func (p *Identity) BLength() int

func (*Identity) DeepEqual

func (p *Identity) DeepEqual(ano *Identity) bool

func (*Identity) FastRead

func (p *Identity) FastRead(buf []byte) (int, error)

func (*Identity) FastReadField1

func (p *Identity) FastReadField1(buf []byte) (int, error)

func (*Identity) FastReadField2

func (p *Identity) FastReadField2(buf []byte) (int, error)

func (*Identity) FastReadField3

func (p *Identity) FastReadField3(buf []byte) (int, error)

func (*Identity) FastReadField4

func (p *Identity) FastReadField4(buf []byte) (int, error)

func (*Identity) FastWrite

func (p *Identity) FastWrite(buf []byte) int

for compatibility

func (*Identity) FastWriteNocopy

func (p *Identity) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*Identity) Field1DeepEqual

func (p *Identity) Field1DeepEqual(src string) bool

func (*Identity) Field2DeepEqual

func (p *Identity) Field2DeepEqual(src string) bool

func (*Identity) Field3DeepEqual

func (p *Identity) Field3DeepEqual(src Gender) bool

func (*Identity) Field4DeepEqual

func (p *Identity) Field4DeepEqual(src int64) bool

func (*Identity) GetBirthDateMillis

func (p *Identity) GetBirthDateMillis() (v int64)

func (*Identity) GetGender

func (p *Identity) GetGender() (v Gender)

func (*Identity) GetLicNumber

func (p *Identity) GetLicNumber() (v string)

func (*Identity) GetName

func (p *Identity) GetName() (v string)

func (*Identity) InitDefault

func (p *Identity) InitDefault()

func (*Identity) Read

func (p *Identity) Read(iprot thrift.TProtocol) (err error)

func (*Identity) ReadField1

func (p *Identity) ReadField1(iprot thrift.TProtocol) error

func (*Identity) ReadField2

func (p *Identity) ReadField2(iprot thrift.TProtocol) error

func (*Identity) ReadField3

func (p *Identity) ReadField3(iprot thrift.TProtocol) error

func (*Identity) ReadField4

func (p *Identity) ReadField4(iprot thrift.TProtocol) error

func (*Identity) SetBirthDateMillis

func (p *Identity) SetBirthDateMillis(val int64)

func (*Identity) SetGender

func (p *Identity) SetGender(val Gender)

func (*Identity) SetLicNumber

func (p *Identity) SetLicNumber(val string)

func (*Identity) SetName

func (p *Identity) SetName(val string)

func (*Identity) String

func (p *Identity) String() string

func (*Identity) Write

func (p *Identity) Write(oprot thrift.TProtocol) (err error)

type IdentityStatus

type IdentityStatus int64
const (
	IdentityStatus_UNSUBMITTED IdentityStatus = 0
	IdentityStatus_PENDING     IdentityStatus = 1
	IdentityStatus_VERIFIED    IdentityStatus = 2
	IdentityStatus_AUDITFAILED IdentityStatus = 3
)

func IdentityStatusFromString

func IdentityStatusFromString(s string) (IdentityStatus, error)

func IdentityStatusPtr

func IdentityStatusPtr(v IdentityStatus) *IdentityStatus

func (*IdentityStatus) Scan

func (p *IdentityStatus) Scan(value interface{}) (err error)

func (IdentityStatus) String

func (p IdentityStatus) String() string

func (*IdentityStatus) Value

func (p *IdentityStatus) Value() (driver.Value, error)

type Location

type Location struct {
	Latitude  float64 `thrift:"latitude,1" frugal:"1,default,double" json:"latitude"`
	Longitude float64 `thrift:"longitude,2" frugal:"2,default,double" json:"longitude"`
}
var LocationStatus_Location_DEFAULT *Location

func NewLocation

func NewLocation() *Location

func (*Location) BLength

func (p *Location) BLength() int

func (*Location) DeepEqual

func (p *Location) DeepEqual(ano *Location) bool

func (*Location) FastRead

func (p *Location) FastRead(buf []byte) (int, error)

func (*Location) FastReadField1

func (p *Location) FastReadField1(buf []byte) (int, error)

func (*Location) FastReadField2

func (p *Location) FastReadField2(buf []byte) (int, error)

func (*Location) FastWrite

func (p *Location) FastWrite(buf []byte) int

for compatibility

func (*Location) FastWriteNocopy

func (p *Location) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*Location) Field1DeepEqual

func (p *Location) Field1DeepEqual(src float64) bool

func (*Location) Field2DeepEqual

func (p *Location) Field2DeepEqual(src float64) bool

func (*Location) GetLatitude

func (p *Location) GetLatitude() (v float64)

func (*Location) GetLongitude

func (p *Location) GetLongitude() (v float64)

func (*Location) InitDefault

func (p *Location) InitDefault()

func (*Location) Read

func (p *Location) Read(iprot thrift.TProtocol) (err error)

func (*Location) ReadField1

func (p *Location) ReadField1(iprot thrift.TProtocol) error

func (*Location) ReadField2

func (p *Location) ReadField2(iprot thrift.TProtocol) error

func (*Location) SetLatitude

func (p *Location) SetLatitude(val float64)

func (*Location) SetLongitude

func (p *Location) SetLongitude(val float64)

func (*Location) String

func (p *Location) String() string

func (*Location) Write

func (p *Location) Write(oprot thrift.TProtocol) (err error)

type LocationStatus

type LocationStatus struct {
	Location     *Location `thrift:"location,1" frugal:"1,default,Location" json:"location"`
	FeeCent      int32     `thrift:"fee_cent,2" frugal:"2,default,i32" json:"fee_cent"`
	KmDriven     float64   `thrift:"km_driven,3" frugal:"3,default,double" json:"km_driven"`
	PoiName      string    `thrift:"poi_name,4" frugal:"4,default,string" json:"poi_name"`
	TimestampSec int64     `thrift:"timestamp_sec,5" frugal:"5,default,i64" json:"timestamp_sec"`
}
var Trip_Current_DEFAULT *LocationStatus
var Trip_End_DEFAULT *LocationStatus
var Trip_Start_DEFAULT *LocationStatus

func NewLocationStatus

func NewLocationStatus() *LocationStatus

func (*LocationStatus) BLength

func (p *LocationStatus) BLength() int

func (*LocationStatus) DeepEqual

func (p *LocationStatus) DeepEqual(ano *LocationStatus) bool

func (*LocationStatus) FastRead

func (p *LocationStatus) FastRead(buf []byte) (int, error)

func (*LocationStatus) FastReadField1

func (p *LocationStatus) FastReadField1(buf []byte) (int, error)

func (*LocationStatus) FastReadField2

func (p *LocationStatus) FastReadField2(buf []byte) (int, error)

func (*LocationStatus) FastReadField3

func (p *LocationStatus) FastReadField3(buf []byte) (int, error)

func (*LocationStatus) FastReadField4

func (p *LocationStatus) FastReadField4(buf []byte) (int, error)

func (*LocationStatus) FastReadField5

func (p *LocationStatus) FastReadField5(buf []byte) (int, error)

func (*LocationStatus) FastWrite

func (p *LocationStatus) FastWrite(buf []byte) int

for compatibility

func (*LocationStatus) FastWriteNocopy

func (p *LocationStatus) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*LocationStatus) Field1DeepEqual

func (p *LocationStatus) Field1DeepEqual(src *Location) bool

func (*LocationStatus) Field2DeepEqual

func (p *LocationStatus) Field2DeepEqual(src int32) bool

func (*LocationStatus) Field3DeepEqual

func (p *LocationStatus) Field3DeepEqual(src float64) bool

func (*LocationStatus) Field4DeepEqual

func (p *LocationStatus) Field4DeepEqual(src string) bool

func (*LocationStatus) Field5DeepEqual

func (p *LocationStatus) Field5DeepEqual(src int64) bool

func (*LocationStatus) GetFeeCent

func (p *LocationStatus) GetFeeCent() (v int32)

func (*LocationStatus) GetKmDriven

func (p *LocationStatus) GetKmDriven() (v float64)

func (*LocationStatus) GetLocation

func (p *LocationStatus) GetLocation() (v *Location)

func (*LocationStatus) GetPoiName

func (p *LocationStatus) GetPoiName() (v string)

func (*LocationStatus) GetTimestampSec

func (p *LocationStatus) GetTimestampSec() (v int64)

func (*LocationStatus) InitDefault

func (p *LocationStatus) InitDefault()

func (*LocationStatus) IsSetLocation

func (p *LocationStatus) IsSetLocation() bool

func (*LocationStatus) Read

func (p *LocationStatus) Read(iprot thrift.TProtocol) (err error)

func (*LocationStatus) ReadField1

func (p *LocationStatus) ReadField1(iprot thrift.TProtocol) error

func (*LocationStatus) ReadField2

func (p *LocationStatus) ReadField2(iprot thrift.TProtocol) error

func (*LocationStatus) ReadField3

func (p *LocationStatus) ReadField3(iprot thrift.TProtocol) error

func (*LocationStatus) ReadField4

func (p *LocationStatus) ReadField4(iprot thrift.TProtocol) error

func (*LocationStatus) ReadField5

func (p *LocationStatus) ReadField5(iprot thrift.TProtocol) error

func (*LocationStatus) SetFeeCent

func (p *LocationStatus) SetFeeCent(val int32)

func (*LocationStatus) SetKmDriven

func (p *LocationStatus) SetKmDriven(val float64)

func (*LocationStatus) SetLocation

func (p *LocationStatus) SetLocation(val *Location)

func (*LocationStatus) SetPoiName

func (p *LocationStatus) SetPoiName(val string)

func (*LocationStatus) SetTimestampSec

func (p *LocationStatus) SetTimestampSec(val int64)

func (*LocationStatus) String

func (p *LocationStatus) String() string

func (*LocationStatus) Write

func (p *LocationStatus) Write(oprot thrift.TProtocol) (err error)

type NilResponse added in v0.2.1

type NilResponse struct {
}

func NewNilResponse added in v0.2.1

func NewNilResponse() *NilResponse

func (*NilResponse) BLength added in v0.2.1

func (p *NilResponse) BLength() int

func (*NilResponse) DeepEqual added in v0.2.1

func (p *NilResponse) DeepEqual(ano *NilResponse) bool

func (*NilResponse) FastRead added in v0.2.1

func (p *NilResponse) FastRead(buf []byte) (int, error)

func (*NilResponse) FastWrite added in v0.2.1

func (p *NilResponse) FastWrite(buf []byte) int

for compatibility

func (*NilResponse) FastWriteNocopy added in v0.2.1

func (p *NilResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*NilResponse) InitDefault added in v0.2.1

func (p *NilResponse) InitDefault()

func (*NilResponse) Read added in v0.2.1

func (p *NilResponse) Read(iprot thrift.TProtocol) (err error)

func (*NilResponse) String added in v0.2.1

func (p *NilResponse) String() string

func (*NilResponse) Write added in v0.2.1

func (p *NilResponse) Write(oprot thrift.TProtocol) (err error)

type Position

type Position struct {
	Latitude  float64 `thrift:"latitude,1" frugal:"1,default,double" json:"latitude"`
	Longitude float64 `thrift:"longitude,2" frugal:"2,default,double" json:"longitude"`
}
var Car_Position_DEFAULT *Position

func NewPosition

func NewPosition() *Position

func (*Position) BLength

func (p *Position) BLength() int

func (*Position) DeepEqual

func (p *Position) DeepEqual(ano *Position) bool

func (*Position) FastRead

func (p *Position) FastRead(buf []byte) (int, error)

func (*Position) FastReadField1

func (p *Position) FastReadField1(buf []byte) (int, error)

func (*Position) FastReadField2

func (p *Position) FastReadField2(buf []byte) (int, error)

func (*Position) FastWrite

func (p *Position) FastWrite(buf []byte) int

for compatibility

func (*Position) FastWriteNocopy

func (p *Position) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*Position) Field1DeepEqual

func (p *Position) Field1DeepEqual(src float64) bool

func (*Position) Field2DeepEqual

func (p *Position) Field2DeepEqual(src float64) bool

func (*Position) GetLatitude

func (p *Position) GetLatitude() (v float64)

func (*Position) GetLongitude

func (p *Position) GetLongitude() (v float64)

func (*Position) InitDefault

func (p *Position) InitDefault()

func (*Position) Read

func (p *Position) Read(iprot thrift.TProtocol) (err error)

func (*Position) ReadField1

func (p *Position) ReadField1(iprot thrift.TProtocol) error

func (*Position) ReadField2

func (p *Position) ReadField2(iprot thrift.TProtocol) error

func (*Position) SetLatitude

func (p *Position) SetLatitude(val float64)

func (*Position) SetLongitude

func (p *Position) SetLongitude(val float64)

func (*Position) String

func (p *Position) String() string

func (*Position) Write

func (p *Position) Write(oprot thrift.TProtocol) (err error)

type Profile

type Profile struct {
	Identity       *Identity      `thrift:"identity,1" frugal:"1,default,Identity" json:"identity"`
	IdentityStatus IdentityStatus `thrift:"identity_status,2" frugal:"2,default,IdentityStatus" json:"identity_status"`
}
var ProfileRecord_Profile_DEFAULT *Profile

func NewProfile

func NewProfile() *Profile

func (*Profile) BLength

func (p *Profile) BLength() int

func (*Profile) DeepEqual

func (p *Profile) DeepEqual(ano *Profile) bool

func (*Profile) FastRead

func (p *Profile) FastRead(buf []byte) (int, error)

func (*Profile) FastReadField1

func (p *Profile) FastReadField1(buf []byte) (int, error)

func (*Profile) FastReadField2

func (p *Profile) FastReadField2(buf []byte) (int, error)

func (*Profile) FastWrite

func (p *Profile) FastWrite(buf []byte) int

for compatibility

func (*Profile) FastWriteNocopy

func (p *Profile) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*Profile) Field1DeepEqual

func (p *Profile) Field1DeepEqual(src *Identity) bool

func (*Profile) Field2DeepEqual

func (p *Profile) Field2DeepEqual(src IdentityStatus) bool

func (*Profile) GetIdentity

func (p *Profile) GetIdentity() (v *Identity)

func (*Profile) GetIdentityStatus

func (p *Profile) GetIdentityStatus() (v IdentityStatus)

func (*Profile) InitDefault

func (p *Profile) InitDefault()

func (*Profile) IsSetIdentity

func (p *Profile) IsSetIdentity() bool

func (*Profile) Read

func (p *Profile) Read(iprot thrift.TProtocol) (err error)

func (*Profile) ReadField1

func (p *Profile) ReadField1(iprot thrift.TProtocol) error

func (*Profile) ReadField2

func (p *Profile) ReadField2(iprot thrift.TProtocol) error

func (*Profile) SetIdentity

func (p *Profile) SetIdentity(val *Identity)

func (*Profile) SetIdentityStatus

func (p *Profile) SetIdentityStatus(val IdentityStatus)

func (*Profile) String

func (p *Profile) String() string

func (*Profile) Write

func (p *Profile) Write(oprot thrift.TProtocol) (err error)

type ProfileRecord

type ProfileRecord struct {
	AccountId   string   `thrift:"account_id,1" frugal:"1,default,string" json:"account_id"`
	PhotoBlobId string   `thrift:"photo_blob_id,2" frugal:"2,default,string" json:"photo_blob_id"`
	Profile     *Profile `thrift:"profile,3" frugal:"3,default,Profile" json:"profile"`
}

func NewProfileRecord

func NewProfileRecord() *ProfileRecord

func (*ProfileRecord) BLength

func (p *ProfileRecord) BLength() int

func (*ProfileRecord) DeepEqual

func (p *ProfileRecord) DeepEqual(ano *ProfileRecord) bool

func (*ProfileRecord) FastRead

func (p *ProfileRecord) FastRead(buf []byte) (int, error)

func (*ProfileRecord) FastReadField1

func (p *ProfileRecord) FastReadField1(buf []byte) (int, error)

func (*ProfileRecord) FastReadField2

func (p *ProfileRecord) FastReadField2(buf []byte) (int, error)

func (*ProfileRecord) FastReadField3

func (p *ProfileRecord) FastReadField3(buf []byte) (int, error)

func (*ProfileRecord) FastWrite

func (p *ProfileRecord) FastWrite(buf []byte) int

for compatibility

func (*ProfileRecord) FastWriteNocopy

func (p *ProfileRecord) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*ProfileRecord) Field1DeepEqual

func (p *ProfileRecord) Field1DeepEqual(src string) bool

func (*ProfileRecord) Field2DeepEqual

func (p *ProfileRecord) Field2DeepEqual(src string) bool

func (*ProfileRecord) Field3DeepEqual

func (p *ProfileRecord) Field3DeepEqual(src *Profile) bool

func (*ProfileRecord) GetAccountId

func (p *ProfileRecord) GetAccountId() (v string)

func (*ProfileRecord) GetPhotoBlobId

func (p *ProfileRecord) GetPhotoBlobId() (v string)

func (*ProfileRecord) GetProfile

func (p *ProfileRecord) GetProfile() (v *Profile)

func (*ProfileRecord) InitDefault

func (p *ProfileRecord) InitDefault()

func (*ProfileRecord) IsSetProfile

func (p *ProfileRecord) IsSetProfile() bool

func (*ProfileRecord) Read

func (p *ProfileRecord) Read(iprot thrift.TProtocol) (err error)

func (*ProfileRecord) ReadField1

func (p *ProfileRecord) ReadField1(iprot thrift.TProtocol) error

func (*ProfileRecord) ReadField2

func (p *ProfileRecord) ReadField2(iprot thrift.TProtocol) error

func (*ProfileRecord) ReadField3

func (p *ProfileRecord) ReadField3(iprot thrift.TProtocol) error

func (*ProfileRecord) SetAccountId

func (p *ProfileRecord) SetAccountId(val string)

func (*ProfileRecord) SetPhotoBlobId

func (p *ProfileRecord) SetPhotoBlobId(val string)

func (*ProfileRecord) SetProfile

func (p *ProfileRecord) SetProfile(val *Profile)

func (*ProfileRecord) String

func (p *ProfileRecord) String() string

func (*ProfileRecord) Write

func (p *ProfileRecord) Write(oprot thrift.TProtocol) (err error)

type Trip

type Trip struct {
	AccountId  string          `thrift:"account_id,1" frugal:"1,default,string" json:"account_id"`
	CarId      string          `thrift:"car_id,2" frugal:"2,default,string" json:"car_id"`
	Start      *LocationStatus `thrift:"start,3" frugal:"3,default,LocationStatus" json:"start"`
	Current    *LocationStatus `thrift:"current,4" frugal:"4,default,LocationStatus" json:"current"`
	End        *LocationStatus `thrift:"end,5" frugal:"5,default,LocationStatus" json:"end"`
	Status     TripStatus      `thrift:"status,6" frugal:"6,default,TripStatus" json:"status"`
	IdentityId string          `thrift:"identity_id,7" frugal:"7,default,string" json:"identity_id"`
}
var TripEntity_Trip_DEFAULT *Trip

func NewTrip

func NewTrip() *Trip

func (*Trip) BLength

func (p *Trip) BLength() int

func (*Trip) DeepEqual

func (p *Trip) DeepEqual(ano *Trip) bool

func (*Trip) FastRead

func (p *Trip) FastRead(buf []byte) (int, error)

func (*Trip) FastReadField1

func (p *Trip) FastReadField1(buf []byte) (int, error)

func (*Trip) FastReadField2

func (p *Trip) FastReadField2(buf []byte) (int, error)

func (*Trip) FastReadField3

func (p *Trip) FastReadField3(buf []byte) (int, error)

func (*Trip) FastReadField4

func (p *Trip) FastReadField4(buf []byte) (int, error)

func (*Trip) FastReadField5

func (p *Trip) FastReadField5(buf []byte) (int, error)

func (*Trip) FastReadField6

func (p *Trip) FastReadField6(buf []byte) (int, error)

func (*Trip) FastReadField7

func (p *Trip) FastReadField7(buf []byte) (int, error)

func (*Trip) FastWrite

func (p *Trip) FastWrite(buf []byte) int

for compatibility

func (*Trip) FastWriteNocopy

func (p *Trip) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*Trip) Field1DeepEqual

func (p *Trip) Field1DeepEqual(src string) bool

func (*Trip) Field2DeepEqual

func (p *Trip) Field2DeepEqual(src string) bool

func (*Trip) Field3DeepEqual

func (p *Trip) Field3DeepEqual(src *LocationStatus) bool

func (*Trip) Field4DeepEqual

func (p *Trip) Field4DeepEqual(src *LocationStatus) bool

func (*Trip) Field5DeepEqual

func (p *Trip) Field5DeepEqual(src *LocationStatus) bool

func (*Trip) Field6DeepEqual

func (p *Trip) Field6DeepEqual(src TripStatus) bool

func (*Trip) Field7DeepEqual

func (p *Trip) Field7DeepEqual(src string) bool

func (*Trip) GetAccountId

func (p *Trip) GetAccountId() (v string)

func (*Trip) GetCarId

func (p *Trip) GetCarId() (v string)

func (*Trip) GetCurrent

func (p *Trip) GetCurrent() (v *LocationStatus)

func (*Trip) GetEnd

func (p *Trip) GetEnd() (v *LocationStatus)

func (*Trip) GetIdentityId

func (p *Trip) GetIdentityId() (v string)

func (*Trip) GetStart

func (p *Trip) GetStart() (v *LocationStatus)

func (*Trip) GetStatus

func (p *Trip) GetStatus() (v TripStatus)

func (*Trip) InitDefault

func (p *Trip) InitDefault()

func (*Trip) IsSetCurrent

func (p *Trip) IsSetCurrent() bool

func (*Trip) IsSetEnd

func (p *Trip) IsSetEnd() bool

func (*Trip) IsSetStart

func (p *Trip) IsSetStart() bool

func (*Trip) Read

func (p *Trip) Read(iprot thrift.TProtocol) (err error)

func (*Trip) ReadField1

func (p *Trip) ReadField1(iprot thrift.TProtocol) error

func (*Trip) ReadField2

func (p *Trip) ReadField2(iprot thrift.TProtocol) error

func (*Trip) ReadField3

func (p *Trip) ReadField3(iprot thrift.TProtocol) error

func (*Trip) ReadField4

func (p *Trip) ReadField4(iprot thrift.TProtocol) error

func (*Trip) ReadField5

func (p *Trip) ReadField5(iprot thrift.TProtocol) error

func (*Trip) ReadField6

func (p *Trip) ReadField6(iprot thrift.TProtocol) error

func (*Trip) ReadField7

func (p *Trip) ReadField7(iprot thrift.TProtocol) error

func (*Trip) SetAccountId

func (p *Trip) SetAccountId(val string)

func (*Trip) SetCarId

func (p *Trip) SetCarId(val string)

func (*Trip) SetCurrent

func (p *Trip) SetCurrent(val *LocationStatus)

func (*Trip) SetEnd

func (p *Trip) SetEnd(val *LocationStatus)

func (*Trip) SetIdentityId

func (p *Trip) SetIdentityId(val string)

func (*Trip) SetStart

func (p *Trip) SetStart(val *LocationStatus)

func (*Trip) SetStatus

func (p *Trip) SetStatus(val TripStatus)

func (*Trip) String

func (p *Trip) String() string

func (*Trip) Write

func (p *Trip) Write(oprot thrift.TProtocol) (err error)

type TripEntity

type TripEntity struct {
	Id   string `thrift:"id,1" frugal:"1,default,string" json:"id"`
	Trip *Trip  `thrift:"trip,2" frugal:"2,default,Trip" json:"trip"`
}

func NewTripEntity

func NewTripEntity() *TripEntity

func (*TripEntity) BLength

func (p *TripEntity) BLength() int

func (*TripEntity) DeepEqual

func (p *TripEntity) DeepEqual(ano *TripEntity) bool

func (*TripEntity) FastRead

func (p *TripEntity) FastRead(buf []byte) (int, error)

func (*TripEntity) FastReadField1

func (p *TripEntity) FastReadField1(buf []byte) (int, error)

func (*TripEntity) FastReadField2

func (p *TripEntity) FastReadField2(buf []byte) (int, error)

func (*TripEntity) FastWrite

func (p *TripEntity) FastWrite(buf []byte) int

for compatibility

func (*TripEntity) FastWriteNocopy

func (p *TripEntity) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*TripEntity) Field1DeepEqual

func (p *TripEntity) Field1DeepEqual(src string) bool

func (*TripEntity) Field2DeepEqual

func (p *TripEntity) Field2DeepEqual(src *Trip) bool

func (*TripEntity) GetId

func (p *TripEntity) GetId() (v string)

func (*TripEntity) GetTrip

func (p *TripEntity) GetTrip() (v *Trip)

func (*TripEntity) InitDefault

func (p *TripEntity) InitDefault()

func (*TripEntity) IsSetTrip

func (p *TripEntity) IsSetTrip() bool

func (*TripEntity) Read

func (p *TripEntity) Read(iprot thrift.TProtocol) (err error)

func (*TripEntity) ReadField1

func (p *TripEntity) ReadField1(iprot thrift.TProtocol) error

func (*TripEntity) ReadField2

func (p *TripEntity) ReadField2(iprot thrift.TProtocol) error

func (*TripEntity) SetId

func (p *TripEntity) SetId(val string)

func (*TripEntity) SetTrip

func (p *TripEntity) SetTrip(val *Trip)

func (*TripEntity) String

func (p *TripEntity) String() string

func (*TripEntity) Write

func (p *TripEntity) Write(oprot thrift.TProtocol) (err error)

type TripStatus

type TripStatus int64
const (
	TripStatus_TS_NOT_SPECIFIED TripStatus = 0
	TripStatus_IN_PROGRESS      TripStatus = 1
	TripStatus_FINISHED         TripStatus = 2
)

func TripStatusFromString

func TripStatusFromString(s string) (TripStatus, error)

func TripStatusPtr

func TripStatusPtr(v TripStatus) *TripStatus

func (*TripStatus) Scan

func (p *TripStatus) Scan(value interface{}) (err error)

func (TripStatus) String

func (p TripStatus) String() string

func (*TripStatus) Value

func (p *TripStatus) Value() (driver.Value, error)

type User

type User struct {
	AccountId    string `thrift:"account_id,1" frugal:"1,default,string" json:"account_id"`
	Username     string `thrift:"username,2" frugal:"2,default,string" json:"username"`
	PhoneNumber  string `thrift:"phone_number,3" frugal:"3,default,string" json:"phone_number"`
	AvatarBlobId string `thrift:"avatar_blob_id,4" frugal:"4,default,string" json:"avatar_blob_id"`
	OpenId       string `thrift:"open_id,5" frugal:"5,default,string" json:"open_id"`
	Balance      int32  `thrift:"balance,6" frugal:"6,default,i32" json:"balance"`
}

func NewUser

func NewUser() *User

func (*User) BLength

func (p *User) BLength() int

func (*User) DeepEqual

func (p *User) DeepEqual(ano *User) bool

func (*User) FastRead

func (p *User) FastRead(buf []byte) (int, error)

func (*User) FastReadField1

func (p *User) FastReadField1(buf []byte) (int, error)

func (*User) FastReadField2

func (p *User) FastReadField2(buf []byte) (int, error)

func (*User) FastReadField3

func (p *User) FastReadField3(buf []byte) (int, error)

func (*User) FastReadField4

func (p *User) FastReadField4(buf []byte) (int, error)

func (*User) FastReadField5

func (p *User) FastReadField5(buf []byte) (int, error)

func (*User) FastReadField6 added in v0.2.1

func (p *User) FastReadField6(buf []byte) (int, error)

func (*User) FastWrite

func (p *User) FastWrite(buf []byte) int

for compatibility

func (*User) FastWriteNocopy

func (p *User) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*User) Field1DeepEqual

func (p *User) Field1DeepEqual(src string) bool

func (*User) Field2DeepEqual

func (p *User) Field2DeepEqual(src string) bool

func (*User) Field3DeepEqual

func (p *User) Field3DeepEqual(src string) bool

func (*User) Field4DeepEqual

func (p *User) Field4DeepEqual(src string) bool

func (*User) Field5DeepEqual

func (p *User) Field5DeepEqual(src string) bool

func (*User) Field6DeepEqual added in v0.2.1

func (p *User) Field6DeepEqual(src int32) bool

func (*User) GetAccountId

func (p *User) GetAccountId() (v string)

func (*User) GetAvatarBlobId

func (p *User) GetAvatarBlobId() (v string)

func (*User) GetBalance added in v0.2.1

func (p *User) GetBalance() (v int32)

func (*User) GetOpenId

func (p *User) GetOpenId() (v string)

func (*User) GetPhoneNumber

func (p *User) GetPhoneNumber() (v string)

func (*User) GetUsername

func (p *User) GetUsername() (v string)

func (*User) InitDefault

func (p *User) InitDefault()

func (*User) Read

func (p *User) Read(iprot thrift.TProtocol) (err error)

func (*User) ReadField1

func (p *User) ReadField1(iprot thrift.TProtocol) error

func (*User) ReadField2

func (p *User) ReadField2(iprot thrift.TProtocol) error

func (*User) ReadField3

func (p *User) ReadField3(iprot thrift.TProtocol) error

func (*User) ReadField4

func (p *User) ReadField4(iprot thrift.TProtocol) error

func (*User) ReadField5

func (p *User) ReadField5(iprot thrift.TProtocol) error

func (*User) ReadField6 added in v0.2.1

func (p *User) ReadField6(iprot thrift.TProtocol) error

func (*User) SetAccountId

func (p *User) SetAccountId(val string)

func (*User) SetAvatarBlobId

func (p *User) SetAvatarBlobId(val string)

func (*User) SetBalance added in v0.2.1

func (p *User) SetBalance(val int32)

func (*User) SetOpenId

func (p *User) SetOpenId(val string)

func (*User) SetPhoneNumber

func (p *User) SetPhoneNumber(val string)

func (*User) SetUsername

func (p *User) SetUsername(val string)

func (*User) String

func (p *User) String() string

func (*User) Write

func (p *User) Write(oprot thrift.TProtocol) (err error)

type UserInfo

type UserInfo struct {
	AccountId   string `thrift:"account_id,1" frugal:"1,default,string" json:"account_id"`
	Username    string `thrift:"username,2" frugal:"2,default,string" json:"username"`
	PhoneNumber string `thrift:"phone_number,3" frugal:"3,default,string" json:"phone_number"`
	AvatarUrl   string `thrift:"avatar_url,4" frugal:"4,default,string" json:"avatar_url"`
	Balance     int32  `thrift:"balance,5" frugal:"5,default,i32" json:"balance"`
}

func NewUserInfo

func NewUserInfo() *UserInfo

func (*UserInfo) BLength

func (p *UserInfo) BLength() int

func (*UserInfo) DeepEqual

func (p *UserInfo) DeepEqual(ano *UserInfo) bool

func (*UserInfo) FastRead

func (p *UserInfo) FastRead(buf []byte) (int, error)

func (*UserInfo) FastReadField1

func (p *UserInfo) FastReadField1(buf []byte) (int, error)

func (*UserInfo) FastReadField2

func (p *UserInfo) FastReadField2(buf []byte) (int, error)

func (*UserInfo) FastReadField3

func (p *UserInfo) FastReadField3(buf []byte) (int, error)

func (*UserInfo) FastReadField4

func (p *UserInfo) FastReadField4(buf []byte) (int, error)

func (*UserInfo) FastReadField5 added in v0.2.1

func (p *UserInfo) FastReadField5(buf []byte) (int, error)

func (*UserInfo) FastWrite

func (p *UserInfo) FastWrite(buf []byte) int

for compatibility

func (*UserInfo) FastWriteNocopy

func (p *UserInfo) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*UserInfo) Field1DeepEqual

func (p *UserInfo) Field1DeepEqual(src string) bool

func (*UserInfo) Field2DeepEqual

func (p *UserInfo) Field2DeepEqual(src string) bool

func (*UserInfo) Field3DeepEqual

func (p *UserInfo) Field3DeepEqual(src string) bool

func (*UserInfo) Field4DeepEqual

func (p *UserInfo) Field4DeepEqual(src string) bool

func (*UserInfo) Field5DeepEqual added in v0.2.1

func (p *UserInfo) Field5DeepEqual(src int32) bool

func (*UserInfo) GetAccountId

func (p *UserInfo) GetAccountId() (v string)

func (*UserInfo) GetAvatarUrl

func (p *UserInfo) GetAvatarUrl() (v string)

func (*UserInfo) GetBalance added in v0.2.1

func (p *UserInfo) GetBalance() (v int32)

func (*UserInfo) GetPhoneNumber

func (p *UserInfo) GetPhoneNumber() (v string)

func (*UserInfo) GetUsername

func (p *UserInfo) GetUsername() (v string)

func (*UserInfo) InitDefault

func (p *UserInfo) InitDefault()

func (*UserInfo) Read

func (p *UserInfo) Read(iprot thrift.TProtocol) (err error)

func (*UserInfo) ReadField1

func (p *UserInfo) ReadField1(iprot thrift.TProtocol) error

func (*UserInfo) ReadField2

func (p *UserInfo) ReadField2(iprot thrift.TProtocol) error

func (*UserInfo) ReadField3

func (p *UserInfo) ReadField3(iprot thrift.TProtocol) error

func (*UserInfo) ReadField4

func (p *UserInfo) ReadField4(iprot thrift.TProtocol) error

func (*UserInfo) ReadField5 added in v0.2.1

func (p *UserInfo) ReadField5(iprot thrift.TProtocol) error

func (*UserInfo) SetAccountId

func (p *UserInfo) SetAccountId(val string)

func (*UserInfo) SetAvatarUrl

func (p *UserInfo) SetAvatarUrl(val string)

func (*UserInfo) SetBalance added in v0.2.1

func (p *UserInfo) SetBalance(val int32)

func (*UserInfo) SetPhoneNumber

func (p *UserInfo) SetPhoneNumber(val string)

func (*UserInfo) SetUsername

func (p *UserInfo) SetUsername(val string)

func (*UserInfo) String

func (p *UserInfo) String() string

func (*UserInfo) Write

func (p *UserInfo) Write(oprot thrift.TProtocol) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL