Documentation ¶
Index ¶
- Variables
- type CreateTripRequest
- func (p *CreateTripRequest) GetAvatarURL() (v string)
- func (p *CreateTripRequest) GetCarID() (v string)
- func (p *CreateTripRequest) GetStart() (v *base.Location)
- func (p *CreateTripRequest) IsSetStart() bool
- func (p *CreateTripRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *CreateTripRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *CreateTripRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *CreateTripRequest) ReadField3(iprot thrift.TProtocol) error
- func (p *CreateTripRequest) String() string
- func (p *CreateTripRequest) Write(oprot thrift.TProtocol) (err error)
- type DeleteTripRequest
- type GetAllTripsRequest
- type GetSomeTripsRequest
- type GetTripRequest
- type GetTripsRequest
- func (p *GetTripsRequest) GetStatus() (v base.TripStatus)
- func (p *GetTripsRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *GetTripsRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *GetTripsRequest) String() string
- func (p *GetTripsRequest) Write(oprot thrift.TProtocol) (err error)
- type TripService
- type TripServiceClient
- func (p *TripServiceClient) Client_() thrift.TClient
- func (p *TripServiceClient) CreateTrip(ctx context.Context, req *CreateTripRequest) (r *base.NilResponse, err error)
- func (p *TripServiceClient) DeleteTrip(ctx context.Context, req *DeleteTripRequest) (r *base.NilResponse, err error)
- func (p *TripServiceClient) GetAllTrips(ctx context.Context, req *GetAllTripsRequest) (r *base.NilResponse, err error)
- func (p *TripServiceClient) GetSomeTrips(ctx context.Context, req *GetSomeTripsRequest) (r *base.NilResponse, err error)
- func (p *TripServiceClient) GetTrip(ctx context.Context, req *GetTripRequest) (r *base.NilResponse, err error)
- func (p *TripServiceClient) GetTrips(ctx context.Context, req *GetTripsRequest) (r *base.NilResponse, err error)
- func (p *TripServiceClient) UpdateTrip(ctx context.Context, req *UpdateTripRequest) (r *base.NilResponse, err error)
- type TripServiceCreateTripArgs
- func (p *TripServiceCreateTripArgs) GetReq() (v *CreateTripRequest)
- func (p *TripServiceCreateTripArgs) IsSetReq() bool
- func (p *TripServiceCreateTripArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *TripServiceCreateTripArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *TripServiceCreateTripArgs) String() string
- func (p *TripServiceCreateTripArgs) Write(oprot thrift.TProtocol) (err error)
- type TripServiceCreateTripResult
- func (p *TripServiceCreateTripResult) GetSuccess() (v *base.NilResponse)
- func (p *TripServiceCreateTripResult) IsSetSuccess() bool
- func (p *TripServiceCreateTripResult) Read(iprot thrift.TProtocol) (err error)
- func (p *TripServiceCreateTripResult) ReadField0(iprot thrift.TProtocol) error
- func (p *TripServiceCreateTripResult) String() string
- func (p *TripServiceCreateTripResult) Write(oprot thrift.TProtocol) (err error)
- type TripServiceDeleteTripArgs
- func (p *TripServiceDeleteTripArgs) GetReq() (v *DeleteTripRequest)
- func (p *TripServiceDeleteTripArgs) IsSetReq() bool
- func (p *TripServiceDeleteTripArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *TripServiceDeleteTripArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *TripServiceDeleteTripArgs) String() string
- func (p *TripServiceDeleteTripArgs) Write(oprot thrift.TProtocol) (err error)
- type TripServiceDeleteTripResult
- func (p *TripServiceDeleteTripResult) GetSuccess() (v *base.NilResponse)
- func (p *TripServiceDeleteTripResult) IsSetSuccess() bool
- func (p *TripServiceDeleteTripResult) Read(iprot thrift.TProtocol) (err error)
- func (p *TripServiceDeleteTripResult) ReadField0(iprot thrift.TProtocol) error
- func (p *TripServiceDeleteTripResult) String() string
- func (p *TripServiceDeleteTripResult) Write(oprot thrift.TProtocol) (err error)
- type TripServiceGetAllTripsArgs
- func (p *TripServiceGetAllTripsArgs) GetReq() (v *GetAllTripsRequest)
- func (p *TripServiceGetAllTripsArgs) IsSetReq() bool
- func (p *TripServiceGetAllTripsArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *TripServiceGetAllTripsArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *TripServiceGetAllTripsArgs) String() string
- func (p *TripServiceGetAllTripsArgs) Write(oprot thrift.TProtocol) (err error)
- type TripServiceGetAllTripsResult
- func (p *TripServiceGetAllTripsResult) GetSuccess() (v *base.NilResponse)
- func (p *TripServiceGetAllTripsResult) IsSetSuccess() bool
- func (p *TripServiceGetAllTripsResult) Read(iprot thrift.TProtocol) (err error)
- func (p *TripServiceGetAllTripsResult) ReadField0(iprot thrift.TProtocol) error
- func (p *TripServiceGetAllTripsResult) String() string
- func (p *TripServiceGetAllTripsResult) Write(oprot thrift.TProtocol) (err error)
- type TripServiceGetSomeTripsArgs
- func (p *TripServiceGetSomeTripsArgs) GetReq() (v *GetSomeTripsRequest)
- func (p *TripServiceGetSomeTripsArgs) IsSetReq() bool
- func (p *TripServiceGetSomeTripsArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *TripServiceGetSomeTripsArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *TripServiceGetSomeTripsArgs) String() string
- func (p *TripServiceGetSomeTripsArgs) Write(oprot thrift.TProtocol) (err error)
- type TripServiceGetSomeTripsResult
- func (p *TripServiceGetSomeTripsResult) GetSuccess() (v *base.NilResponse)
- func (p *TripServiceGetSomeTripsResult) IsSetSuccess() bool
- func (p *TripServiceGetSomeTripsResult) Read(iprot thrift.TProtocol) (err error)
- func (p *TripServiceGetSomeTripsResult) ReadField0(iprot thrift.TProtocol) error
- func (p *TripServiceGetSomeTripsResult) String() string
- func (p *TripServiceGetSomeTripsResult) Write(oprot thrift.TProtocol) (err error)
- type TripServiceGetTripArgs
- func (p *TripServiceGetTripArgs) GetReq() (v *GetTripRequest)
- func (p *TripServiceGetTripArgs) IsSetReq() bool
- func (p *TripServiceGetTripArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *TripServiceGetTripArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *TripServiceGetTripArgs) String() string
- func (p *TripServiceGetTripArgs) Write(oprot thrift.TProtocol) (err error)
- type TripServiceGetTripResult
- func (p *TripServiceGetTripResult) GetSuccess() (v *base.NilResponse)
- func (p *TripServiceGetTripResult) IsSetSuccess() bool
- func (p *TripServiceGetTripResult) Read(iprot thrift.TProtocol) (err error)
- func (p *TripServiceGetTripResult) ReadField0(iprot thrift.TProtocol) error
- func (p *TripServiceGetTripResult) String() string
- func (p *TripServiceGetTripResult) Write(oprot thrift.TProtocol) (err error)
- type TripServiceGetTripsArgs
- func (p *TripServiceGetTripsArgs) GetReq() (v *GetTripsRequest)
- func (p *TripServiceGetTripsArgs) IsSetReq() bool
- func (p *TripServiceGetTripsArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *TripServiceGetTripsArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *TripServiceGetTripsArgs) String() string
- func (p *TripServiceGetTripsArgs) Write(oprot thrift.TProtocol) (err error)
- type TripServiceGetTripsResult
- func (p *TripServiceGetTripsResult) GetSuccess() (v *base.NilResponse)
- func (p *TripServiceGetTripsResult) IsSetSuccess() bool
- func (p *TripServiceGetTripsResult) Read(iprot thrift.TProtocol) (err error)
- func (p *TripServiceGetTripsResult) ReadField0(iprot thrift.TProtocol) error
- func (p *TripServiceGetTripsResult) String() string
- func (p *TripServiceGetTripsResult) Write(oprot thrift.TProtocol) (err error)
- type TripServiceProcessor
- func (p *TripServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *TripServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *TripServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *TripServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type TripServiceUpdateTripArgs
- func (p *TripServiceUpdateTripArgs) GetReq() (v *UpdateTripRequest)
- func (p *TripServiceUpdateTripArgs) IsSetReq() bool
- func (p *TripServiceUpdateTripArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *TripServiceUpdateTripArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *TripServiceUpdateTripArgs) String() string
- func (p *TripServiceUpdateTripArgs) Write(oprot thrift.TProtocol) (err error)
- type TripServiceUpdateTripResult
- func (p *TripServiceUpdateTripResult) GetSuccess() (v *base.NilResponse)
- func (p *TripServiceUpdateTripResult) IsSetSuccess() bool
- func (p *TripServiceUpdateTripResult) Read(iprot thrift.TProtocol) (err error)
- func (p *TripServiceUpdateTripResult) ReadField0(iprot thrift.TProtocol) error
- func (p *TripServiceUpdateTripResult) String() string
- func (p *TripServiceUpdateTripResult) Write(oprot thrift.TProtocol) (err error)
- type UpdateTripRequest
- func (p *UpdateTripRequest) GetCurrent() (v *base.Location)
- func (p *UpdateTripRequest) GetEndTrip() (v bool)
- func (p *UpdateTripRequest) GetID() (v string)
- func (p *UpdateTripRequest) IsSetCurrent() bool
- func (p *UpdateTripRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *UpdateTripRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *UpdateTripRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *UpdateTripRequest) ReadField3(iprot thrift.TProtocol) error
- func (p *UpdateTripRequest) String() string
- func (p *UpdateTripRequest) Write(oprot thrift.TProtocol) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateTripRequest_Start_DEFAULT *base.Location
View Source
var TripServiceCreateTripResult_Success_DEFAULT *base.NilResponse
View Source
var TripServiceDeleteTripResult_Success_DEFAULT *base.NilResponse
View Source
var TripServiceGetAllTripsResult_Success_DEFAULT *base.NilResponse
View Source
var TripServiceGetSomeTripsResult_Success_DEFAULT *base.NilResponse
View Source
var TripServiceGetTripResult_Success_DEFAULT *base.NilResponse
View Source
var TripServiceGetTripsResult_Success_DEFAULT *base.NilResponse
View Source
var TripServiceUpdateTripResult_Success_DEFAULT *base.NilResponse
View Source
var UpdateTripRequest_Current_DEFAULT *base.Location
Functions ¶
This section is empty.
Types ¶
type CreateTripRequest ¶
type CreateTripRequest struct { Start *base.Location `thrift:"start,1" form:"start" json:"start" query:"start"` CarID string `thrift:"car_id,2" form:"car_id" json:"car_id" query:"car_id"` AvatarURL string `thrift:"avatar_url,3" form:"avatar_url" json:"avatar_url" query:"avatar_url"` }
var TripServiceCreateTripArgs_Req_DEFAULT *CreateTripRequest
func NewCreateTripRequest ¶
func NewCreateTripRequest() *CreateTripRequest
func (*CreateTripRequest) GetAvatarURL ¶
func (p *CreateTripRequest) GetAvatarURL() (v string)
func (*CreateTripRequest) GetCarID ¶
func (p *CreateTripRequest) GetCarID() (v string)
func (*CreateTripRequest) GetStart ¶
func (p *CreateTripRequest) GetStart() (v *base.Location)
func (*CreateTripRequest) IsSetStart ¶
func (p *CreateTripRequest) IsSetStart() bool
func (*CreateTripRequest) Read ¶
func (p *CreateTripRequest) Read(iprot thrift.TProtocol) (err error)
func (*CreateTripRequest) ReadField1 ¶
func (p *CreateTripRequest) ReadField1(iprot thrift.TProtocol) error
func (*CreateTripRequest) ReadField2 ¶
func (p *CreateTripRequest) ReadField2(iprot thrift.TProtocol) error
func (*CreateTripRequest) ReadField3 ¶
func (p *CreateTripRequest) ReadField3(iprot thrift.TProtocol) error
func (*CreateTripRequest) String ¶
func (p *CreateTripRequest) String() string
type DeleteTripRequest ¶
type DeleteTripRequest struct {
ID string `thrift:"id,1" form:"id" json:"id" query:"id"`
}
var TripServiceDeleteTripArgs_Req_DEFAULT *DeleteTripRequest
func NewDeleteTripRequest ¶
func NewDeleteTripRequest() *DeleteTripRequest
func (*DeleteTripRequest) GetID ¶
func (p *DeleteTripRequest) GetID() (v string)
func (*DeleteTripRequest) Read ¶
func (p *DeleteTripRequest) Read(iprot thrift.TProtocol) (err error)
func (*DeleteTripRequest) ReadField1 ¶
func (p *DeleteTripRequest) ReadField1(iprot thrift.TProtocol) error
func (*DeleteTripRequest) String ¶
func (p *DeleteTripRequest) String() string
type GetAllTripsRequest ¶
type GetAllTripsRequest struct { }
var TripServiceGetAllTripsArgs_Req_DEFAULT *GetAllTripsRequest
func NewGetAllTripsRequest ¶
func NewGetAllTripsRequest() *GetAllTripsRequest
func (*GetAllTripsRequest) Read ¶
func (p *GetAllTripsRequest) Read(iprot thrift.TProtocol) (err error)
func (*GetAllTripsRequest) String ¶
func (p *GetAllTripsRequest) String() string
type GetSomeTripsRequest ¶
type GetSomeTripsRequest struct { }
var TripServiceGetSomeTripsArgs_Req_DEFAULT *GetSomeTripsRequest
func NewGetSomeTripsRequest ¶
func NewGetSomeTripsRequest() *GetSomeTripsRequest
func (*GetSomeTripsRequest) Read ¶
func (p *GetSomeTripsRequest) Read(iprot thrift.TProtocol) (err error)
func (*GetSomeTripsRequest) String ¶
func (p *GetSomeTripsRequest) String() string
type GetTripRequest ¶
type GetTripRequest struct {
ID string `thrift:"id,1" form:"id" json:"id" query:"id"`
}
var TripServiceGetTripArgs_Req_DEFAULT *GetTripRequest
func NewGetTripRequest ¶
func NewGetTripRequest() *GetTripRequest
func (*GetTripRequest) GetID ¶
func (p *GetTripRequest) GetID() (v string)
func (*GetTripRequest) ReadField1 ¶
func (p *GetTripRequest) ReadField1(iprot thrift.TProtocol) error
func (*GetTripRequest) String ¶
func (p *GetTripRequest) String() string
type GetTripsRequest ¶
type GetTripsRequest struct {
Status base.TripStatus `thrift:"status,1" form:"status" json:"status" query:"status"`
}
var TripServiceGetTripsArgs_Req_DEFAULT *GetTripsRequest
func NewGetTripsRequest ¶
func NewGetTripsRequest() *GetTripsRequest
func (*GetTripsRequest) GetStatus ¶
func (p *GetTripsRequest) GetStatus() (v base.TripStatus)
func (*GetTripsRequest) ReadField1 ¶
func (p *GetTripsRequest) ReadField1(iprot thrift.TProtocol) error
func (*GetTripsRequest) String ¶
func (p *GetTripsRequest) String() string
type TripService ¶
type TripService interface { // for back-stage management DeleteTrip(ctx context.Context, req *DeleteTripRequest) (r *base.NilResponse, err error) GetAllTrips(ctx context.Context, req *GetAllTripsRequest) (r *base.NilResponse, err error) GetSomeTrips(ctx context.Context, req *GetSomeTripsRequest) (r *base.NilResponse, err error) // for mini-program CreateTrip(ctx context.Context, req *CreateTripRequest) (r *base.NilResponse, err error) GetTrip(ctx context.Context, req *GetTripRequest) (r *base.NilResponse, err error) GetTrips(ctx context.Context, req *GetTripsRequest) (r *base.NilResponse, err error) UpdateTrip(ctx context.Context, req *UpdateTripRequest) (r *base.NilResponse, err error) }
type TripServiceClient ¶
type TripServiceClient struct {
// contains filtered or unexported fields
}
func NewTripServiceClient ¶
func NewTripServiceClient(c thrift.TClient) *TripServiceClient
func NewTripServiceClientFactory ¶
func NewTripServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *TripServiceClient
func NewTripServiceClientProtocol ¶
func NewTripServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TripServiceClient
func (*TripServiceClient) Client_ ¶
func (p *TripServiceClient) Client_() thrift.TClient
func (*TripServiceClient) CreateTrip ¶
func (p *TripServiceClient) CreateTrip(ctx context.Context, req *CreateTripRequest) (r *base.NilResponse, err error)
func (*TripServiceClient) DeleteTrip ¶
func (p *TripServiceClient) DeleteTrip(ctx context.Context, req *DeleteTripRequest) (r *base.NilResponse, err error)
func (*TripServiceClient) GetAllTrips ¶
func (p *TripServiceClient) GetAllTrips(ctx context.Context, req *GetAllTripsRequest) (r *base.NilResponse, err error)
func (*TripServiceClient) GetSomeTrips ¶
func (p *TripServiceClient) GetSomeTrips(ctx context.Context, req *GetSomeTripsRequest) (r *base.NilResponse, err error)
func (*TripServiceClient) GetTrip ¶
func (p *TripServiceClient) GetTrip(ctx context.Context, req *GetTripRequest) (r *base.NilResponse, err error)
func (*TripServiceClient) GetTrips ¶
func (p *TripServiceClient) GetTrips(ctx context.Context, req *GetTripsRequest) (r *base.NilResponse, err error)
func (*TripServiceClient) UpdateTrip ¶
func (p *TripServiceClient) UpdateTrip(ctx context.Context, req *UpdateTripRequest) (r *base.NilResponse, err error)
type TripServiceCreateTripArgs ¶
type TripServiceCreateTripArgs struct {
Req *CreateTripRequest `thrift:"req,1"`
}
func NewTripServiceCreateTripArgs ¶
func NewTripServiceCreateTripArgs() *TripServiceCreateTripArgs
func (*TripServiceCreateTripArgs) GetReq ¶
func (p *TripServiceCreateTripArgs) GetReq() (v *CreateTripRequest)
func (*TripServiceCreateTripArgs) IsSetReq ¶
func (p *TripServiceCreateTripArgs) IsSetReq() bool
func (*TripServiceCreateTripArgs) Read ¶
func (p *TripServiceCreateTripArgs) Read(iprot thrift.TProtocol) (err error)
func (*TripServiceCreateTripArgs) ReadField1 ¶
func (p *TripServiceCreateTripArgs) ReadField1(iprot thrift.TProtocol) error
func (*TripServiceCreateTripArgs) String ¶
func (p *TripServiceCreateTripArgs) String() string
type TripServiceCreateTripResult ¶
type TripServiceCreateTripResult struct {
Success *base.NilResponse `thrift:"success,0,optional"`
}
func NewTripServiceCreateTripResult ¶
func NewTripServiceCreateTripResult() *TripServiceCreateTripResult
func (*TripServiceCreateTripResult) GetSuccess ¶
func (p *TripServiceCreateTripResult) GetSuccess() (v *base.NilResponse)
func (*TripServiceCreateTripResult) IsSetSuccess ¶
func (p *TripServiceCreateTripResult) IsSetSuccess() bool
func (*TripServiceCreateTripResult) Read ¶
func (p *TripServiceCreateTripResult) Read(iprot thrift.TProtocol) (err error)
func (*TripServiceCreateTripResult) ReadField0 ¶
func (p *TripServiceCreateTripResult) ReadField0(iprot thrift.TProtocol) error
func (*TripServiceCreateTripResult) String ¶
func (p *TripServiceCreateTripResult) String() string
type TripServiceDeleteTripArgs ¶
type TripServiceDeleteTripArgs struct {
Req *DeleteTripRequest `thrift:"req,1"`
}
func NewTripServiceDeleteTripArgs ¶
func NewTripServiceDeleteTripArgs() *TripServiceDeleteTripArgs
func (*TripServiceDeleteTripArgs) GetReq ¶
func (p *TripServiceDeleteTripArgs) GetReq() (v *DeleteTripRequest)
func (*TripServiceDeleteTripArgs) IsSetReq ¶
func (p *TripServiceDeleteTripArgs) IsSetReq() bool
func (*TripServiceDeleteTripArgs) Read ¶
func (p *TripServiceDeleteTripArgs) Read(iprot thrift.TProtocol) (err error)
func (*TripServiceDeleteTripArgs) ReadField1 ¶
func (p *TripServiceDeleteTripArgs) ReadField1(iprot thrift.TProtocol) error
func (*TripServiceDeleteTripArgs) String ¶
func (p *TripServiceDeleteTripArgs) String() string
type TripServiceDeleteTripResult ¶
type TripServiceDeleteTripResult struct {
Success *base.NilResponse `thrift:"success,0,optional"`
}
func NewTripServiceDeleteTripResult ¶
func NewTripServiceDeleteTripResult() *TripServiceDeleteTripResult
func (*TripServiceDeleteTripResult) GetSuccess ¶
func (p *TripServiceDeleteTripResult) GetSuccess() (v *base.NilResponse)
func (*TripServiceDeleteTripResult) IsSetSuccess ¶
func (p *TripServiceDeleteTripResult) IsSetSuccess() bool
func (*TripServiceDeleteTripResult) Read ¶
func (p *TripServiceDeleteTripResult) Read(iprot thrift.TProtocol) (err error)
func (*TripServiceDeleteTripResult) ReadField0 ¶
func (p *TripServiceDeleteTripResult) ReadField0(iprot thrift.TProtocol) error
func (*TripServiceDeleteTripResult) String ¶
func (p *TripServiceDeleteTripResult) String() string
type TripServiceGetAllTripsArgs ¶
type TripServiceGetAllTripsArgs struct {
Req *GetAllTripsRequest `thrift:"req,1"`
}
func NewTripServiceGetAllTripsArgs ¶
func NewTripServiceGetAllTripsArgs() *TripServiceGetAllTripsArgs
func (*TripServiceGetAllTripsArgs) GetReq ¶
func (p *TripServiceGetAllTripsArgs) GetReq() (v *GetAllTripsRequest)
func (*TripServiceGetAllTripsArgs) IsSetReq ¶
func (p *TripServiceGetAllTripsArgs) IsSetReq() bool
func (*TripServiceGetAllTripsArgs) Read ¶
func (p *TripServiceGetAllTripsArgs) Read(iprot thrift.TProtocol) (err error)
func (*TripServiceGetAllTripsArgs) ReadField1 ¶
func (p *TripServiceGetAllTripsArgs) ReadField1(iprot thrift.TProtocol) error
func (*TripServiceGetAllTripsArgs) String ¶
func (p *TripServiceGetAllTripsArgs) String() string
type TripServiceGetAllTripsResult ¶
type TripServiceGetAllTripsResult struct {
Success *base.NilResponse `thrift:"success,0,optional"`
}
func NewTripServiceGetAllTripsResult ¶
func NewTripServiceGetAllTripsResult() *TripServiceGetAllTripsResult
func (*TripServiceGetAllTripsResult) GetSuccess ¶
func (p *TripServiceGetAllTripsResult) GetSuccess() (v *base.NilResponse)
func (*TripServiceGetAllTripsResult) IsSetSuccess ¶
func (p *TripServiceGetAllTripsResult) IsSetSuccess() bool
func (*TripServiceGetAllTripsResult) Read ¶
func (p *TripServiceGetAllTripsResult) Read(iprot thrift.TProtocol) (err error)
func (*TripServiceGetAllTripsResult) ReadField0 ¶
func (p *TripServiceGetAllTripsResult) ReadField0(iprot thrift.TProtocol) error
func (*TripServiceGetAllTripsResult) String ¶
func (p *TripServiceGetAllTripsResult) String() string
type TripServiceGetSomeTripsArgs ¶
type TripServiceGetSomeTripsArgs struct {
Req *GetSomeTripsRequest `thrift:"req,1"`
}
func NewTripServiceGetSomeTripsArgs ¶
func NewTripServiceGetSomeTripsArgs() *TripServiceGetSomeTripsArgs
func (*TripServiceGetSomeTripsArgs) GetReq ¶
func (p *TripServiceGetSomeTripsArgs) GetReq() (v *GetSomeTripsRequest)
func (*TripServiceGetSomeTripsArgs) IsSetReq ¶
func (p *TripServiceGetSomeTripsArgs) IsSetReq() bool
func (*TripServiceGetSomeTripsArgs) Read ¶
func (p *TripServiceGetSomeTripsArgs) Read(iprot thrift.TProtocol) (err error)
func (*TripServiceGetSomeTripsArgs) ReadField1 ¶
func (p *TripServiceGetSomeTripsArgs) ReadField1(iprot thrift.TProtocol) error
func (*TripServiceGetSomeTripsArgs) String ¶
func (p *TripServiceGetSomeTripsArgs) String() string
type TripServiceGetSomeTripsResult ¶
type TripServiceGetSomeTripsResult struct {
Success *base.NilResponse `thrift:"success,0,optional"`
}
func NewTripServiceGetSomeTripsResult ¶
func NewTripServiceGetSomeTripsResult() *TripServiceGetSomeTripsResult
func (*TripServiceGetSomeTripsResult) GetSuccess ¶
func (p *TripServiceGetSomeTripsResult) GetSuccess() (v *base.NilResponse)
func (*TripServiceGetSomeTripsResult) IsSetSuccess ¶
func (p *TripServiceGetSomeTripsResult) IsSetSuccess() bool
func (*TripServiceGetSomeTripsResult) Read ¶
func (p *TripServiceGetSomeTripsResult) Read(iprot thrift.TProtocol) (err error)
func (*TripServiceGetSomeTripsResult) ReadField0 ¶
func (p *TripServiceGetSomeTripsResult) ReadField0(iprot thrift.TProtocol) error
func (*TripServiceGetSomeTripsResult) String ¶
func (p *TripServiceGetSomeTripsResult) String() string
type TripServiceGetTripArgs ¶
type TripServiceGetTripArgs struct {
Req *GetTripRequest `thrift:"req,1"`
}
func NewTripServiceGetTripArgs ¶
func NewTripServiceGetTripArgs() *TripServiceGetTripArgs
func (*TripServiceGetTripArgs) GetReq ¶
func (p *TripServiceGetTripArgs) GetReq() (v *GetTripRequest)
func (*TripServiceGetTripArgs) IsSetReq ¶
func (p *TripServiceGetTripArgs) IsSetReq() bool
func (*TripServiceGetTripArgs) Read ¶
func (p *TripServiceGetTripArgs) Read(iprot thrift.TProtocol) (err error)
func (*TripServiceGetTripArgs) ReadField1 ¶
func (p *TripServiceGetTripArgs) ReadField1(iprot thrift.TProtocol) error
func (*TripServiceGetTripArgs) String ¶
func (p *TripServiceGetTripArgs) String() string
type TripServiceGetTripResult ¶
type TripServiceGetTripResult struct {
Success *base.NilResponse `thrift:"success,0,optional"`
}
func NewTripServiceGetTripResult ¶
func NewTripServiceGetTripResult() *TripServiceGetTripResult
func (*TripServiceGetTripResult) GetSuccess ¶
func (p *TripServiceGetTripResult) GetSuccess() (v *base.NilResponse)
func (*TripServiceGetTripResult) IsSetSuccess ¶
func (p *TripServiceGetTripResult) IsSetSuccess() bool
func (*TripServiceGetTripResult) Read ¶
func (p *TripServiceGetTripResult) Read(iprot thrift.TProtocol) (err error)
func (*TripServiceGetTripResult) ReadField0 ¶
func (p *TripServiceGetTripResult) ReadField0(iprot thrift.TProtocol) error
func (*TripServiceGetTripResult) String ¶
func (p *TripServiceGetTripResult) String() string
type TripServiceGetTripsArgs ¶
type TripServiceGetTripsArgs struct {
Req *GetTripsRequest `thrift:"req,1"`
}
func NewTripServiceGetTripsArgs ¶
func NewTripServiceGetTripsArgs() *TripServiceGetTripsArgs
func (*TripServiceGetTripsArgs) GetReq ¶
func (p *TripServiceGetTripsArgs) GetReq() (v *GetTripsRequest)
func (*TripServiceGetTripsArgs) IsSetReq ¶
func (p *TripServiceGetTripsArgs) IsSetReq() bool
func (*TripServiceGetTripsArgs) Read ¶
func (p *TripServiceGetTripsArgs) Read(iprot thrift.TProtocol) (err error)
func (*TripServiceGetTripsArgs) ReadField1 ¶
func (p *TripServiceGetTripsArgs) ReadField1(iprot thrift.TProtocol) error
func (*TripServiceGetTripsArgs) String ¶
func (p *TripServiceGetTripsArgs) String() string
type TripServiceGetTripsResult ¶
type TripServiceGetTripsResult struct {
Success *base.NilResponse `thrift:"success,0,optional"`
}
func NewTripServiceGetTripsResult ¶
func NewTripServiceGetTripsResult() *TripServiceGetTripsResult
func (*TripServiceGetTripsResult) GetSuccess ¶
func (p *TripServiceGetTripsResult) GetSuccess() (v *base.NilResponse)
func (*TripServiceGetTripsResult) IsSetSuccess ¶
func (p *TripServiceGetTripsResult) IsSetSuccess() bool
func (*TripServiceGetTripsResult) Read ¶
func (p *TripServiceGetTripsResult) Read(iprot thrift.TProtocol) (err error)
func (*TripServiceGetTripsResult) ReadField0 ¶
func (p *TripServiceGetTripsResult) ReadField0(iprot thrift.TProtocol) error
func (*TripServiceGetTripsResult) String ¶
func (p *TripServiceGetTripsResult) String() string
type TripServiceProcessor ¶
type TripServiceProcessor struct {
// contains filtered or unexported fields
}
func NewTripServiceProcessor ¶
func NewTripServiceProcessor(handler TripService) *TripServiceProcessor
func (*TripServiceProcessor) AddToProcessorMap ¶
func (p *TripServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*TripServiceProcessor) GetProcessorFunction ¶
func (p *TripServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*TripServiceProcessor) Process ¶
func (p *TripServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*TripServiceProcessor) ProcessorMap ¶
func (p *TripServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type TripServiceUpdateTripArgs ¶
type TripServiceUpdateTripArgs struct {
Req *UpdateTripRequest `thrift:"req,1"`
}
func NewTripServiceUpdateTripArgs ¶
func NewTripServiceUpdateTripArgs() *TripServiceUpdateTripArgs
func (*TripServiceUpdateTripArgs) GetReq ¶
func (p *TripServiceUpdateTripArgs) GetReq() (v *UpdateTripRequest)
func (*TripServiceUpdateTripArgs) IsSetReq ¶
func (p *TripServiceUpdateTripArgs) IsSetReq() bool
func (*TripServiceUpdateTripArgs) Read ¶
func (p *TripServiceUpdateTripArgs) Read(iprot thrift.TProtocol) (err error)
func (*TripServiceUpdateTripArgs) ReadField1 ¶
func (p *TripServiceUpdateTripArgs) ReadField1(iprot thrift.TProtocol) error
func (*TripServiceUpdateTripArgs) String ¶
func (p *TripServiceUpdateTripArgs) String() string
type TripServiceUpdateTripResult ¶
type TripServiceUpdateTripResult struct {
Success *base.NilResponse `thrift:"success,0,optional"`
}
func NewTripServiceUpdateTripResult ¶
func NewTripServiceUpdateTripResult() *TripServiceUpdateTripResult
func (*TripServiceUpdateTripResult) GetSuccess ¶
func (p *TripServiceUpdateTripResult) GetSuccess() (v *base.NilResponse)
func (*TripServiceUpdateTripResult) IsSetSuccess ¶
func (p *TripServiceUpdateTripResult) IsSetSuccess() bool
func (*TripServiceUpdateTripResult) Read ¶
func (p *TripServiceUpdateTripResult) Read(iprot thrift.TProtocol) (err error)
func (*TripServiceUpdateTripResult) ReadField0 ¶
func (p *TripServiceUpdateTripResult) ReadField0(iprot thrift.TProtocol) error
func (*TripServiceUpdateTripResult) String ¶
func (p *TripServiceUpdateTripResult) String() string
type UpdateTripRequest ¶
type UpdateTripRequest struct { ID string `thrift:"id,1" form:"id" json:"id" query:"id"` Current *base.Location `thrift:"current,2" form:"current" json:"current" query:"current"` EndTrip bool `thrift:"end_trip,3" form:"end_trip" json:"end_trip" query:"end_trip"` }
var TripServiceUpdateTripArgs_Req_DEFAULT *UpdateTripRequest
func NewUpdateTripRequest ¶
func NewUpdateTripRequest() *UpdateTripRequest
func (*UpdateTripRequest) GetCurrent ¶
func (p *UpdateTripRequest) GetCurrent() (v *base.Location)
func (*UpdateTripRequest) GetEndTrip ¶
func (p *UpdateTripRequest) GetEndTrip() (v bool)
func (*UpdateTripRequest) GetID ¶
func (p *UpdateTripRequest) GetID() (v string)
func (*UpdateTripRequest) IsSetCurrent ¶
func (p *UpdateTripRequest) IsSetCurrent() bool
func (*UpdateTripRequest) Read ¶
func (p *UpdateTripRequest) Read(iprot thrift.TProtocol) (err error)
func (*UpdateTripRequest) ReadField1 ¶
func (p *UpdateTripRequest) ReadField1(iprot thrift.TProtocol) error
func (*UpdateTripRequest) ReadField2 ¶
func (p *UpdateTripRequest) ReadField2(iprot thrift.TProtocol) error
func (*UpdateTripRequest) ReadField3 ¶
func (p *UpdateTripRequest) ReadField3(iprot thrift.TProtocol) error
func (*UpdateTripRequest) String ¶
func (p *UpdateTripRequest) String() string
Click to show internal directories.
Click to hide internal directories.