Documentation ¶
Index ¶
- type BaseResponse
- func (p *BaseResponse) GetStatusCode() (v int64)
- func (p *BaseResponse) GetStatusMsg() (v string)
- func (p *BaseResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *BaseResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *BaseResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *BaseResponse) String() string
- func (p *BaseResponse) Write(oprot thrift.TProtocol) (err error)
- type Car
- func (p *Car) GetDriver() (v *Driver)
- func (p *Car) GetPlateNum() (v string)
- func (p *Car) GetPosition() (v *Position)
- func (p *Car) GetPower() (v float64)
- func (p *Car) GetStatus() (v CarStatus)
- func (p *Car) GetTripID() (v string)
- func (p *Car) IsSetDriver() bool
- func (p *Car) IsSetPosition() bool
- func (p *Car) Read(iprot thrift.TProtocol) (err error)
- func (p *Car) ReadField1(iprot thrift.TProtocol) error
- func (p *Car) ReadField2(iprot thrift.TProtocol) error
- func (p *Car) ReadField3(iprot thrift.TProtocol) error
- func (p *Car) ReadField4(iprot thrift.TProtocol) error
- func (p *Car) ReadField5(iprot thrift.TProtocol) error
- func (p *Car) ReadField6(iprot thrift.TProtocol) error
- func (p *Car) String() string
- func (p *Car) Write(oprot thrift.TProtocol) (err error)
- type CarEntity
- func (p *CarEntity) GetCar() (v *Car)
- func (p *CarEntity) GetID() (v string)
- func (p *CarEntity) IsSetCar() bool
- func (p *CarEntity) Read(iprot thrift.TProtocol) (err error)
- func (p *CarEntity) ReadField1(iprot thrift.TProtocol) error
- func (p *CarEntity) ReadField2(iprot thrift.TProtocol) error
- func (p *CarEntity) String() string
- func (p *CarEntity) Write(oprot thrift.TProtocol) (err error)
- type CarStatus
- type Driver
- func (p *Driver) GetAvatarURL() (v string)
- func (p *Driver) GetID() (v int64)
- func (p *Driver) Read(iprot thrift.TProtocol) (err error)
- func (p *Driver) ReadField1(iprot thrift.TProtocol) error
- func (p *Driver) ReadField2(iprot thrift.TProtocol) error
- func (p *Driver) String() string
- func (p *Driver) Write(oprot thrift.TProtocol) (err error)
- type Gender
- type Identity
- func (p *Identity) GetBirthDateMillis() (v int64)
- func (p *Identity) GetGender() (v Gender)
- func (p *Identity) GetLicNumber() (v string)
- func (p *Identity) GetName() (v string)
- func (p *Identity) Read(iprot thrift.TProtocol) (err error)
- func (p *Identity) ReadField1(iprot thrift.TProtocol) error
- func (p *Identity) ReadField2(iprot thrift.TProtocol) error
- func (p *Identity) ReadField3(iprot thrift.TProtocol) error
- func (p *Identity) ReadField4(iprot thrift.TProtocol) error
- func (p *Identity) String() string
- func (p *Identity) Write(oprot thrift.TProtocol) (err error)
- type IdentityStatus
- type Location
- func (p *Location) GetLatitude() (v float64)
- func (p *Location) GetLongitude() (v float64)
- func (p *Location) Read(iprot thrift.TProtocol) (err error)
- func (p *Location) ReadField1(iprot thrift.TProtocol) error
- func (p *Location) ReadField2(iprot thrift.TProtocol) error
- func (p *Location) String() string
- func (p *Location) Write(oprot thrift.TProtocol) (err error)
- type LocationStatus
- func (p *LocationStatus) GetFeeCent() (v int32)
- func (p *LocationStatus) GetKmDriven() (v float64)
- func (p *LocationStatus) GetLocation() (v *Location)
- func (p *LocationStatus) GetPoiName() (v string)
- func (p *LocationStatus) GetTimestampSec() (v int64)
- func (p *LocationStatus) IsSetLocation() bool
- func (p *LocationStatus) Read(iprot thrift.TProtocol) (err error)
- func (p *LocationStatus) ReadField1(iprot thrift.TProtocol) error
- func (p *LocationStatus) ReadField2(iprot thrift.TProtocol) error
- func (p *LocationStatus) ReadField3(iprot thrift.TProtocol) error
- func (p *LocationStatus) ReadField4(iprot thrift.TProtocol) error
- func (p *LocationStatus) ReadField5(iprot thrift.TProtocol) error
- func (p *LocationStatus) String() string
- func (p *LocationStatus) Write(oprot thrift.TProtocol) (err error)
- type NilResponse
- type Position
- func (p *Position) GetLatitude() (v float64)
- func (p *Position) GetLongitude() (v float64)
- func (p *Position) Read(iprot thrift.TProtocol) (err error)
- func (p *Position) ReadField1(iprot thrift.TProtocol) error
- func (p *Position) ReadField2(iprot thrift.TProtocol) error
- func (p *Position) String() string
- func (p *Position) Write(oprot thrift.TProtocol) (err error)
- type Profile
- func (p *Profile) GetIdentity() (v *Identity)
- func (p *Profile) GetIdentityStatus() (v IdentityStatus)
- func (p *Profile) IsSetIdentity() bool
- func (p *Profile) Read(iprot thrift.TProtocol) (err error)
- func (p *Profile) ReadField1(iprot thrift.TProtocol) error
- func (p *Profile) ReadField2(iprot thrift.TProtocol) error
- func (p *Profile) String() string
- func (p *Profile) Write(oprot thrift.TProtocol) (err error)
- type ProfileRecord
- func (p *ProfileRecord) GetAccountID() (v int64)
- func (p *ProfileRecord) GetPhotoBlobID() (v int64)
- func (p *ProfileRecord) GetProfile() (v *Profile)
- func (p *ProfileRecord) IsSetProfile() bool
- func (p *ProfileRecord) Read(iprot thrift.TProtocol) (err error)
- func (p *ProfileRecord) ReadField1(iprot thrift.TProtocol) error
- func (p *ProfileRecord) ReadField2(iprot thrift.TProtocol) error
- func (p *ProfileRecord) ReadField3(iprot thrift.TProtocol) error
- func (p *ProfileRecord) String() string
- func (p *ProfileRecord) Write(oprot thrift.TProtocol) (err error)
- type Trip
- func (p *Trip) GetAccountID() (v int64)
- func (p *Trip) GetCarID() (v string)
- func (p *Trip) GetCurrent() (v *LocationStatus)
- func (p *Trip) GetEnd() (v *LocationStatus)
- func (p *Trip) GetIdentityID() (v string)
- func (p *Trip) GetStart() (v *LocationStatus)
- func (p *Trip) GetStatus() (v TripStatus)
- func (p *Trip) IsSetCurrent() bool
- func (p *Trip) IsSetEnd() bool
- func (p *Trip) IsSetStart() bool
- func (p *Trip) Read(iprot thrift.TProtocol) (err error)
- func (p *Trip) ReadField1(iprot thrift.TProtocol) error
- func (p *Trip) ReadField2(iprot thrift.TProtocol) error
- func (p *Trip) ReadField3(iprot thrift.TProtocol) error
- func (p *Trip) ReadField4(iprot thrift.TProtocol) error
- func (p *Trip) ReadField5(iprot thrift.TProtocol) error
- func (p *Trip) ReadField6(iprot thrift.TProtocol) error
- func (p *Trip) ReadField7(iprot thrift.TProtocol) error
- func (p *Trip) String() string
- func (p *Trip) Write(oprot thrift.TProtocol) (err error)
- type TripEntity
- func (p *TripEntity) GetID() (v string)
- func (p *TripEntity) GetTrip() (v *Trip)
- func (p *TripEntity) IsSetTrip() bool
- func (p *TripEntity) Read(iprot thrift.TProtocol) (err error)
- func (p *TripEntity) ReadField1(iprot thrift.TProtocol) error
- func (p *TripEntity) ReadField2(iprot thrift.TProtocol) error
- func (p *TripEntity) String() string
- func (p *TripEntity) Write(oprot thrift.TProtocol) (err error)
- type TripStatus
- type User
- func (p *User) GetAccountID() (v int64)
- func (p *User) GetAvatarBlobID() (v int64)
- func (p *User) GetOpenID() (v string)
- func (p *User) GetPhoneNumber() (v int64)
- func (p *User) GetUsername() (v string)
- func (p *User) Read(iprot thrift.TProtocol) (err error)
- func (p *User) ReadField1(iprot thrift.TProtocol) error
- func (p *User) ReadField2(iprot thrift.TProtocol) error
- func (p *User) ReadField3(iprot thrift.TProtocol) error
- func (p *User) ReadField4(iprot thrift.TProtocol) error
- func (p *User) ReadField5(iprot thrift.TProtocol) error
- func (p *User) String() string
- func (p *User) Write(oprot thrift.TProtocol) (err error)
- type UserInfo
- func (p *UserInfo) GetAccountID() (v int64)
- func (p *UserInfo) GetAvatarURL() (v string)
- func (p *UserInfo) GetPhoneNumber() (v int64)
- func (p *UserInfo) GetUsername() (v string)
- func (p *UserInfo) Read(iprot thrift.TProtocol) (err error)
- func (p *UserInfo) ReadField1(iprot thrift.TProtocol) error
- func (p *UserInfo) ReadField2(iprot thrift.TProtocol) error
- func (p *UserInfo) ReadField3(iprot thrift.TProtocol) error
- func (p *UserInfo) ReadField4(iprot thrift.TProtocol) error
- func (p *UserInfo) String() string
- func (p *UserInfo) Write(oprot thrift.TProtocol) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseResponse ¶
type BaseResponse struct { StatusCode int64 `thrift:"status_code,1" form:"status_code" json:"status_code" query:"status_code"` StatusMsg string `thrift:"status_msg,2" form:"status_msg" json:"status_msg" query:"status_msg"` }
func NewBaseResponse ¶
func NewBaseResponse() *BaseResponse
func (*BaseResponse) GetStatusCode ¶
func (p *BaseResponse) GetStatusCode() (v int64)
func (*BaseResponse) GetStatusMsg ¶
func (p *BaseResponse) GetStatusMsg() (v string)
func (*BaseResponse) ReadField1 ¶
func (p *BaseResponse) ReadField1(iprot thrift.TProtocol) error
func (*BaseResponse) ReadField2 ¶
func (p *BaseResponse) ReadField2(iprot thrift.TProtocol) error
func (*BaseResponse) String ¶
func (p *BaseResponse) String() string
type Car ¶
type Car struct { Status CarStatus `thrift:"status,1" form:"status" json:"status" query:"status"` Driver *Driver `thrift:"driver,2" form:"driver" json:"driver" query:"driver"` Position *Position `thrift:"position,3" form:"position" json:"position" query:"position"` TripID string `thrift:"trip_id,4" form:"trip_id" json:"trip_id" query:"trip_id"` Power float64 `thrift:"power,5" form:"power" json:"power" query:"power"` PlateNum string `thrift:"plate_num,6" form:"plate_num" json:"plate_num" query:"plate_num"` }
var CarEntity_Car_DEFAULT *Car
func (*Car) GetPlateNum ¶
func (*Car) GetPosition ¶
func (*Car) IsSetDriver ¶
func (*Car) IsSetPosition ¶
type CarEntity ¶
type CarEntity struct { ID string `thrift:"id,1" form:"id" json:"id" query:"id"` Car *Car `thrift:"car,2" form:"car" json:"car" query:"car"` }
func NewCarEntity ¶
func NewCarEntity() *CarEntity
type Driver ¶
type Driver struct { ID int64 `thrift:"id,1" form:"id" json:"id" query:"id"` AvatarURL string `thrift:"avatar_url,2" form:"avatar_url" json:"avatar_url" query:"avatar_url"` }
var Car_Driver_DEFAULT *Driver
func (*Driver) GetAvatarURL ¶
type Identity ¶
type Identity struct { LicNumber string `thrift:"lic_number,1" form:"lic_number" json:"lic_number" query:"lic_number"` Name string `thrift:"name,2" form:"name" json:"name" query:"name"` Gender Gender `thrift:"gender,3" form:"gender" json:"gender" query:"gender"` BirthDateMillis int64 `thrift:"birth_date_millis,4" form:"birth_date_millis" json:"birth_date_millis" query:"birth_date_millis"` }
var Profile_Identity_DEFAULT *Identity
func NewIdentity ¶
func NewIdentity() *Identity
func (*Identity) GetBirthDateMillis ¶
func (*Identity) GetLicNumber ¶
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
type Location ¶
type Location struct { Latitude float64 `thrift:"latitude,1" form:"latitude" json:"latitude" query:"latitude"` Longitude float64 `thrift:"longitude,2" form:"longitude" json:"longitude" query:"longitude"` }
Trip Service
var LocationStatus_Location_DEFAULT *Location
func NewLocation ¶
func NewLocation() *Location
func (*Location) GetLatitude ¶
func (*Location) GetLongitude ¶
type LocationStatus ¶
type LocationStatus struct { Location *Location `thrift:"location,1" form:"location" json:"location" query:"location"` FeeCent int32 `thrift:"fee_cent,2" form:"fee_cent" json:"fee_cent" query:"fee_cent"` KmDriven float64 `thrift:"km_driven,3" form:"km_driven" json:"km_driven" query:"km_driven"` PoiName string `thrift:"poi_name,4" form:"poi_name" json:"poi_name" query:"poi_name"` TimestampSec int64 `thrift:"timestamp_sec,5" form:"timestamp_sec" json:"timestamp_sec" query:"timestamp_sec"` }
var Trip_Current_DEFAULT *LocationStatus
var Trip_End_DEFAULT *LocationStatus
var Trip_Start_DEFAULT *LocationStatus
func NewLocationStatus ¶
func NewLocationStatus() *LocationStatus
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) IsSetLocation ¶
func (p *LocationStatus) IsSetLocation() bool
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) String ¶
func (p *LocationStatus) String() string
type NilResponse ¶
type NilResponse struct { }
func NewNilResponse ¶
func NewNilResponse() *NilResponse
func (*NilResponse) String ¶
func (p *NilResponse) String() string
type Position ¶
type Position struct { Latitude float64 `thrift:"latitude,1" form:"latitude" json:"latitude" query:"latitude"` Longitude float64 `thrift:"longitude,2" form:"longitude" json:"longitude" query:"longitude"` }
var Car_Position_DEFAULT *Position
func NewPosition ¶
func NewPosition() *Position
func (*Position) GetLatitude ¶
func (*Position) GetLongitude ¶
type Profile ¶
type Profile struct { Identity *Identity `thrift:"identity,1" form:"identity" json:"identity" query:"identity"` IdentityStatus IdentityStatus `thrift:"identity_status,2" form:"identity_status" json:"identity_status" query:"identity_status"` }
var ProfileRecord_Profile_DEFAULT *Profile
func NewProfile ¶
func NewProfile() *Profile
func (*Profile) GetIdentity ¶
func (*Profile) GetIdentityStatus ¶
func (p *Profile) GetIdentityStatus() (v IdentityStatus)
func (*Profile) IsSetIdentity ¶
type ProfileRecord ¶
type ProfileRecord struct { AccountID int64 `thrift:"account_id,1" form:"account_id" json:"account_id" query:"account_id"` PhotoBlobID int64 `thrift:"photo_blob_id,2" form:"photo_blob_id" json:"photo_blob_id" query:"photo_blob_id"` Profile *Profile `thrift:"profile,3" form:"profile" json:"profile" query:"profile"` }
func NewProfileRecord ¶
func NewProfileRecord() *ProfileRecord
func (*ProfileRecord) GetAccountID ¶
func (p *ProfileRecord) GetAccountID() (v int64)
func (*ProfileRecord) GetPhotoBlobID ¶
func (p *ProfileRecord) GetPhotoBlobID() (v int64)
func (*ProfileRecord) GetProfile ¶
func (p *ProfileRecord) GetProfile() (v *Profile)
func (*ProfileRecord) IsSetProfile ¶
func (p *ProfileRecord) IsSetProfile() bool
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) String ¶
func (p *ProfileRecord) String() string
type Trip ¶
type Trip struct { AccountID int64 `thrift:"account_id,1" form:"account_id" json:"account_id" query:"account_id"` CarID string `thrift:"car_id,2" form:"car_id" json:"car_id" query:"car_id"` Start *LocationStatus `thrift:"start,3" form:"start" json:"start" query:"start"` Current *LocationStatus `thrift:"current,4" form:"current" json:"current" query:"current"` End *LocationStatus `thrift:"end,5" form:"end" json:"end" query:"end"` Status TripStatus `thrift:"status,6" form:"status" json:"status" query:"status"` IdentityID string `thrift:"identity_id,7" form:"identity_id" json:"identity_id" query:"identity_id"` }
var TripEntity_Trip_DEFAULT *Trip
func (*Trip) GetAccountID ¶
func (*Trip) GetCurrent ¶
func (p *Trip) GetCurrent() (v *LocationStatus)
func (*Trip) GetEnd ¶
func (p *Trip) GetEnd() (v *LocationStatus)
func (*Trip) GetIdentityID ¶
func (*Trip) GetStart ¶
func (p *Trip) GetStart() (v *LocationStatus)
func (*Trip) GetStatus ¶
func (p *Trip) GetStatus() (v TripStatus)
func (*Trip) IsSetCurrent ¶
func (*Trip) IsSetStart ¶
type TripEntity ¶
type TripEntity struct { ID string `thrift:"id,1" form:"id" json:"id" query:"id"` Trip *Trip `thrift:"trip,2" form:"trip" json:"trip" query:"trip"` }
func NewTripEntity ¶
func NewTripEntity() *TripEntity
func (*TripEntity) GetID ¶
func (p *TripEntity) GetID() (v string)
func (*TripEntity) GetTrip ¶
func (p *TripEntity) GetTrip() (v *Trip)
func (*TripEntity) IsSetTrip ¶
func (p *TripEntity) IsSetTrip() bool
func (*TripEntity) ReadField1 ¶
func (p *TripEntity) ReadField1(iprot thrift.TProtocol) error
func (*TripEntity) ReadField2 ¶
func (p *TripEntity) ReadField2(iprot thrift.TProtocol) error
func (*TripEntity) String ¶
func (p *TripEntity) String() string
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
type User ¶
type User struct { AccountID int64 `thrift:"account_id,1" form:"account_id" json:"account_id" query:"account_id"` Username string `thrift:"username,2" form:"username" json:"username" query:"username"` PhoneNumber int64 `thrift:"phone_number,3" form:"phone_number" json:"phone_number" query:"phone_number"` AvatarBlobID int64 `thrift:"avatar_blob_id,4" form:"avatar_blob_id" json:"avatar_blob_id" query:"avatar_blob_id"` OpenID string `thrift:"open_id,5" form:"open_id" json:"open_id" query:"open_id"` }
func (*User) GetAccountID ¶
func (*User) GetAvatarBlobID ¶
func (*User) GetPhoneNumber ¶
func (*User) GetUsername ¶
type UserInfo ¶
type UserInfo struct { AccountID int64 `thrift:"account_id,1" form:"account_id" json:"account_id" query:"account_id"` Username string `thrift:"username,2" form:"username" json:"username" query:"username"` PhoneNumber int64 `thrift:"phone_number,3" form:"phone_number" json:"phone_number" query:"phone_number"` AvatarURL string `thrift:"avatar_url,4" form:"avatar_url" json:"avatar_url" query:"avatar_url"` }
func NewUserInfo ¶
func NewUserInfo() *UserInfo
func (*UserInfo) GetAccountID ¶
func (*UserInfo) GetAvatarURL ¶
func (*UserInfo) GetPhoneNumber ¶
func (*UserInfo) GetUsername ¶
Click to show internal directories.
Click to hide internal directories.