Documentation
¶
Index ¶
- type BikeAPIAvailabilityAllCityNearByNotModified
- type BikeAPIAvailabilityAllCityNearByOK
- type BikeAPIAvailabilityAllCityNearByParams
- func NewBikeAPIAvailabilityAllCityNearByParams() *BikeAPIAvailabilityAllCityNearByParams
- func NewBikeAPIAvailabilityAllCityNearByParamsWithContext(ctx context.Context) *BikeAPIAvailabilityAllCityNearByParams
- func NewBikeAPIAvailabilityAllCityNearByParamsWithHTTPClient(client *http.Client) *BikeAPIAvailabilityAllCityNearByParams
- func NewBikeAPIAvailabilityAllCityNearByParamsWithTimeout(timeout time.Duration) *BikeAPIAvailabilityAllCityNearByParams
- func (o *BikeAPIAvailabilityAllCityNearByParams) SetContext(ctx context.Context)
- func (o *BikeAPIAvailabilityAllCityNearByParams) SetDefaults()
- func (o *BikeAPIAvailabilityAllCityNearByParams) SetDollarFilter(dollarFilter *string)
- func (o *BikeAPIAvailabilityAllCityNearByParams) SetDollarFormat(dollarFormat string)
- func (o *BikeAPIAvailabilityAllCityNearByParams) SetDollarOrderby(dollarOrderby *string)
- func (o *BikeAPIAvailabilityAllCityNearByParams) SetDollarSelect(dollarSelect *string)
- func (o *BikeAPIAvailabilityAllCityNearByParams) SetDollarSkip(dollarSkip *string)
- func (o *BikeAPIAvailabilityAllCityNearByParams) SetDollarSpatialFilter(dollarSpatialFilter string)
- func (o *BikeAPIAvailabilityAllCityNearByParams) SetDollarTop(dollarTop *int64)
- func (o *BikeAPIAvailabilityAllCityNearByParams) SetHTTPClient(client *http.Client)
- func (o *BikeAPIAvailabilityAllCityNearByParams) SetHealth(health *string)
- func (o *BikeAPIAvailabilityAllCityNearByParams) SetTimeout(timeout time.Duration)
- func (o *BikeAPIAvailabilityAllCityNearByParams) WithContext(ctx context.Context) *BikeAPIAvailabilityAllCityNearByParams
- func (o *BikeAPIAvailabilityAllCityNearByParams) WithDefaults() *BikeAPIAvailabilityAllCityNearByParams
- func (o *BikeAPIAvailabilityAllCityNearByParams) WithDollarFilter(dollarFilter *string) *BikeAPIAvailabilityAllCityNearByParams
- func (o *BikeAPIAvailabilityAllCityNearByParams) WithDollarFormat(dollarFormat string) *BikeAPIAvailabilityAllCityNearByParams
- func (o *BikeAPIAvailabilityAllCityNearByParams) WithDollarOrderby(dollarOrderby *string) *BikeAPIAvailabilityAllCityNearByParams
- func (o *BikeAPIAvailabilityAllCityNearByParams) WithDollarSelect(dollarSelect *string) *BikeAPIAvailabilityAllCityNearByParams
- func (o *BikeAPIAvailabilityAllCityNearByParams) WithDollarSkip(dollarSkip *string) *BikeAPIAvailabilityAllCityNearByParams
- func (o *BikeAPIAvailabilityAllCityNearByParams) WithDollarSpatialFilter(dollarSpatialFilter string) *BikeAPIAvailabilityAllCityNearByParams
- func (o *BikeAPIAvailabilityAllCityNearByParams) WithDollarTop(dollarTop *int64) *BikeAPIAvailabilityAllCityNearByParams
- func (o *BikeAPIAvailabilityAllCityNearByParams) WithHTTPClient(client *http.Client) *BikeAPIAvailabilityAllCityNearByParams
- func (o *BikeAPIAvailabilityAllCityNearByParams) WithHealth(health *string) *BikeAPIAvailabilityAllCityNearByParams
- func (o *BikeAPIAvailabilityAllCityNearByParams) WithTimeout(timeout time.Duration) *BikeAPIAvailabilityAllCityNearByParams
- func (o *BikeAPIAvailabilityAllCityNearByParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BikeAPIAvailabilityAllCityNearByReader
- type BikeAPIAvailabilityAllCityNearByStatus299
- type BikeAPIStationAllCityNearByNotModified
- type BikeAPIStationAllCityNearByOK
- type BikeAPIStationAllCityNearByParams
- func NewBikeAPIStationAllCityNearByParams() *BikeAPIStationAllCityNearByParams
- func NewBikeAPIStationAllCityNearByParamsWithContext(ctx context.Context) *BikeAPIStationAllCityNearByParams
- func NewBikeAPIStationAllCityNearByParamsWithHTTPClient(client *http.Client) *BikeAPIStationAllCityNearByParams
- func NewBikeAPIStationAllCityNearByParamsWithTimeout(timeout time.Duration) *BikeAPIStationAllCityNearByParams
- func (o *BikeAPIStationAllCityNearByParams) SetContext(ctx context.Context)
- func (o *BikeAPIStationAllCityNearByParams) SetDefaults()
- func (o *BikeAPIStationAllCityNearByParams) SetDollarFilter(dollarFilter *string)
- func (o *BikeAPIStationAllCityNearByParams) SetDollarFormat(dollarFormat string)
- func (o *BikeAPIStationAllCityNearByParams) SetDollarOrderby(dollarOrderby *string)
- func (o *BikeAPIStationAllCityNearByParams) SetDollarSelect(dollarSelect *string)
- func (o *BikeAPIStationAllCityNearByParams) SetDollarSkip(dollarSkip *string)
- func (o *BikeAPIStationAllCityNearByParams) SetDollarSpatialFilter(dollarSpatialFilter string)
- func (o *BikeAPIStationAllCityNearByParams) SetDollarTop(dollarTop *int64)
- func (o *BikeAPIStationAllCityNearByParams) SetHTTPClient(client *http.Client)
- func (o *BikeAPIStationAllCityNearByParams) SetHealth(health *string)
- func (o *BikeAPIStationAllCityNearByParams) SetTimeout(timeout time.Duration)
- func (o *BikeAPIStationAllCityNearByParams) WithContext(ctx context.Context) *BikeAPIStationAllCityNearByParams
- func (o *BikeAPIStationAllCityNearByParams) WithDefaults() *BikeAPIStationAllCityNearByParams
- func (o *BikeAPIStationAllCityNearByParams) WithDollarFilter(dollarFilter *string) *BikeAPIStationAllCityNearByParams
- func (o *BikeAPIStationAllCityNearByParams) WithDollarFormat(dollarFormat string) *BikeAPIStationAllCityNearByParams
- func (o *BikeAPIStationAllCityNearByParams) WithDollarOrderby(dollarOrderby *string) *BikeAPIStationAllCityNearByParams
- func (o *BikeAPIStationAllCityNearByParams) WithDollarSelect(dollarSelect *string) *BikeAPIStationAllCityNearByParams
- func (o *BikeAPIStationAllCityNearByParams) WithDollarSkip(dollarSkip *string) *BikeAPIStationAllCityNearByParams
- func (o *BikeAPIStationAllCityNearByParams) WithDollarSpatialFilter(dollarSpatialFilter string) *BikeAPIStationAllCityNearByParams
- func (o *BikeAPIStationAllCityNearByParams) WithDollarTop(dollarTop *int64) *BikeAPIStationAllCityNearByParams
- func (o *BikeAPIStationAllCityNearByParams) WithHTTPClient(client *http.Client) *BikeAPIStationAllCityNearByParams
- func (o *BikeAPIStationAllCityNearByParams) WithHealth(health *string) *BikeAPIStationAllCityNearByParams
- func (o *BikeAPIStationAllCityNearByParams) WithTimeout(timeout time.Duration) *BikeAPIStationAllCityNearByParams
- func (o *BikeAPIStationAllCityNearByParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BikeAPIStationAllCityNearByReader
- type BikeAPIStationAllCityNearByStatus299
- type Client
- func (a *Client) BikeAPIAvailabilityAllCityNearBy(params *BikeAPIAvailabilityAllCityNearByParams, ...) (*BikeAPIAvailabilityAllCityNearByOK, ...)
- func (a *Client) BikeAPIStationAllCityNearBy(params *BikeAPIStationAllCityNearByParams, ...) (*BikeAPIStationAllCityNearByOK, *BikeAPIStationAllCityNearByStatus299, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BikeAPIAvailabilityAllCityNearByNotModified ¶
type BikeAPIAvailabilityAllCityNearByNotModified struct { }
BikeAPIAvailabilityAllCityNearByNotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewBikeAPIAvailabilityAllCityNearByNotModified ¶
func NewBikeAPIAvailabilityAllCityNearByNotModified() *BikeAPIAvailabilityAllCityNearByNotModified
NewBikeAPIAvailabilityAllCityNearByNotModified creates a BikeAPIAvailabilityAllCityNearByNotModified with default headers values
func (*BikeAPIAvailabilityAllCityNearByNotModified) Error ¶
func (o *BikeAPIAvailabilityAllCityNearByNotModified) Error() string
type BikeAPIAvailabilityAllCityNearByOK ¶
type BikeAPIAvailabilityAllCityNearByOK struct {
Payload []*models.PTXServiceDTOBikeSpecificationV2BikeAvailability
}
BikeAPIAvailabilityAllCityNearByOK describes a response with status code 200, with default header values.
Success
func NewBikeAPIAvailabilityAllCityNearByOK ¶
func NewBikeAPIAvailabilityAllCityNearByOK() *BikeAPIAvailabilityAllCityNearByOK
NewBikeAPIAvailabilityAllCityNearByOK creates a BikeAPIAvailabilityAllCityNearByOK with default headers values
func (*BikeAPIAvailabilityAllCityNearByOK) Error ¶
func (o *BikeAPIAvailabilityAllCityNearByOK) Error() string
func (*BikeAPIAvailabilityAllCityNearByOK) GetPayload ¶
func (o *BikeAPIAvailabilityAllCityNearByOK) GetPayload() []*models.PTXServiceDTOBikeSpecificationV2BikeAvailability
type BikeAPIAvailabilityAllCityNearByParams ¶
type BikeAPIAvailabilityAllCityNearByParams struct { /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarSpatialFilter. 空間過濾(最大搜尋半徑為1000公尺),語法為nearby({Lat},{Lon},{DistanceInMeters}),例如nearby(25.047675, 121.517055, 100) */ DollarSpatialFilter string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
BikeAPIAvailabilityAllCityNearByParams contains all the parameters to send to the API endpoint
for the bike Api availability all city near by operation. Typically these are written to a http.Request.
func NewBikeAPIAvailabilityAllCityNearByParams ¶
func NewBikeAPIAvailabilityAllCityNearByParams() *BikeAPIAvailabilityAllCityNearByParams
NewBikeAPIAvailabilityAllCityNearByParams creates a new BikeAPIAvailabilityAllCityNearByParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewBikeAPIAvailabilityAllCityNearByParamsWithContext ¶
func NewBikeAPIAvailabilityAllCityNearByParamsWithContext(ctx context.Context) *BikeAPIAvailabilityAllCityNearByParams
NewBikeAPIAvailabilityAllCityNearByParamsWithContext creates a new BikeAPIAvailabilityAllCityNearByParams object with the ability to set a context for a request.
func NewBikeAPIAvailabilityAllCityNearByParamsWithHTTPClient ¶
func NewBikeAPIAvailabilityAllCityNearByParamsWithHTTPClient(client *http.Client) *BikeAPIAvailabilityAllCityNearByParams
NewBikeAPIAvailabilityAllCityNearByParamsWithHTTPClient creates a new BikeAPIAvailabilityAllCityNearByParams object with the ability to set a custom HTTPClient for a request.
func NewBikeAPIAvailabilityAllCityNearByParamsWithTimeout ¶
func NewBikeAPIAvailabilityAllCityNearByParamsWithTimeout(timeout time.Duration) *BikeAPIAvailabilityAllCityNearByParams
NewBikeAPIAvailabilityAllCityNearByParamsWithTimeout creates a new BikeAPIAvailabilityAllCityNearByParams object with the ability to set a timeout on a request.
func (*BikeAPIAvailabilityAllCityNearByParams) SetContext ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) SetContext(ctx context.Context)
SetContext adds the context to the bike Api availability all city near by params
func (*BikeAPIAvailabilityAllCityNearByParams) SetDefaults ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) SetDefaults()
SetDefaults hydrates default values in the bike Api availability all city near by params (not the query body).
All values with no default are reset to their zero value.
func (*BikeAPIAvailabilityAllCityNearByParams) SetDollarFilter ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the bike Api availability all city near by params
func (*BikeAPIAvailabilityAllCityNearByParams) SetDollarFormat ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the bike Api availability all city near by params
func (*BikeAPIAvailabilityAllCityNearByParams) SetDollarOrderby ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the bike Api availability all city near by params
func (*BikeAPIAvailabilityAllCityNearByParams) SetDollarSelect ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the bike Api availability all city near by params
func (*BikeAPIAvailabilityAllCityNearByParams) SetDollarSkip ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the bike Api availability all city near by params
func (*BikeAPIAvailabilityAllCityNearByParams) SetDollarSpatialFilter ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) SetDollarSpatialFilter(dollarSpatialFilter string)
SetDollarSpatialFilter adds the dollarSpatialFilter to the bike Api availability all city near by params
func (*BikeAPIAvailabilityAllCityNearByParams) SetDollarTop ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the bike Api availability all city near by params
func (*BikeAPIAvailabilityAllCityNearByParams) SetHTTPClient ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the bike Api availability all city near by params
func (*BikeAPIAvailabilityAllCityNearByParams) SetHealth ¶ added in v0.12.0
func (o *BikeAPIAvailabilityAllCityNearByParams) SetHealth(health *string)
SetHealth adds the health to the bike Api availability all city near by params
func (*BikeAPIAvailabilityAllCityNearByParams) SetTimeout ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the bike Api availability all city near by params
func (*BikeAPIAvailabilityAllCityNearByParams) WithContext ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) WithContext(ctx context.Context) *BikeAPIAvailabilityAllCityNearByParams
WithContext adds the context to the bike Api availability all city near by params
func (*BikeAPIAvailabilityAllCityNearByParams) WithDefaults ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) WithDefaults() *BikeAPIAvailabilityAllCityNearByParams
WithDefaults hydrates default values in the bike Api availability all city near by params (not the query body).
All values with no default are reset to their zero value.
func (*BikeAPIAvailabilityAllCityNearByParams) WithDollarFilter ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) WithDollarFilter(dollarFilter *string) *BikeAPIAvailabilityAllCityNearByParams
WithDollarFilter adds the dollarFilter to the bike Api availability all city near by params
func (*BikeAPIAvailabilityAllCityNearByParams) WithDollarFormat ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) WithDollarFormat(dollarFormat string) *BikeAPIAvailabilityAllCityNearByParams
WithDollarFormat adds the dollarFormat to the bike Api availability all city near by params
func (*BikeAPIAvailabilityAllCityNearByParams) WithDollarOrderby ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) WithDollarOrderby(dollarOrderby *string) *BikeAPIAvailabilityAllCityNearByParams
WithDollarOrderby adds the dollarOrderby to the bike Api availability all city near by params
func (*BikeAPIAvailabilityAllCityNearByParams) WithDollarSelect ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) WithDollarSelect(dollarSelect *string) *BikeAPIAvailabilityAllCityNearByParams
WithDollarSelect adds the dollarSelect to the bike Api availability all city near by params
func (*BikeAPIAvailabilityAllCityNearByParams) WithDollarSkip ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) WithDollarSkip(dollarSkip *string) *BikeAPIAvailabilityAllCityNearByParams
WithDollarSkip adds the dollarSkip to the bike Api availability all city near by params
func (*BikeAPIAvailabilityAllCityNearByParams) WithDollarSpatialFilter ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) WithDollarSpatialFilter(dollarSpatialFilter string) *BikeAPIAvailabilityAllCityNearByParams
WithDollarSpatialFilter adds the dollarSpatialFilter to the bike Api availability all city near by params
func (*BikeAPIAvailabilityAllCityNearByParams) WithDollarTop ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) WithDollarTop(dollarTop *int64) *BikeAPIAvailabilityAllCityNearByParams
WithDollarTop adds the dollarTop to the bike Api availability all city near by params
func (*BikeAPIAvailabilityAllCityNearByParams) WithHTTPClient ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) WithHTTPClient(client *http.Client) *BikeAPIAvailabilityAllCityNearByParams
WithHTTPClient adds the HTTPClient to the bike Api availability all city near by params
func (*BikeAPIAvailabilityAllCityNearByParams) WithHealth ¶ added in v0.12.0
func (o *BikeAPIAvailabilityAllCityNearByParams) WithHealth(health *string) *BikeAPIAvailabilityAllCityNearByParams
WithHealth adds the health to the bike Api availability all city near by params
func (*BikeAPIAvailabilityAllCityNearByParams) WithTimeout ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) WithTimeout(timeout time.Duration) *BikeAPIAvailabilityAllCityNearByParams
WithTimeout adds the timeout to the bike Api availability all city near by params
func (*BikeAPIAvailabilityAllCityNearByParams) WriteToRequest ¶
func (o *BikeAPIAvailabilityAllCityNearByParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type BikeAPIAvailabilityAllCityNearByReader ¶
type BikeAPIAvailabilityAllCityNearByReader struct {
// contains filtered or unexported fields
}
BikeAPIAvailabilityAllCityNearByReader is a Reader for the BikeAPIAvailabilityAllCityNearBy structure.
func (*BikeAPIAvailabilityAllCityNearByReader) ReadResponse ¶
func (o *BikeAPIAvailabilityAllCityNearByReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type BikeAPIAvailabilityAllCityNearByStatus299 ¶ added in v0.12.0
type BikeAPIAvailabilityAllCityNearByStatus299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
BikeAPIAvailabilityAllCityNearByStatus299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewBikeAPIAvailabilityAllCityNearByStatus299 ¶ added in v0.12.0
func NewBikeAPIAvailabilityAllCityNearByStatus299() *BikeAPIAvailabilityAllCityNearByStatus299
NewBikeAPIAvailabilityAllCityNearByStatus299 creates a BikeAPIAvailabilityAllCityNearByStatus299 with default headers values
func (*BikeAPIAvailabilityAllCityNearByStatus299) Error ¶ added in v0.12.0
func (o *BikeAPIAvailabilityAllCityNearByStatus299) Error() string
func (*BikeAPIAvailabilityAllCityNearByStatus299) GetPayload ¶ added in v0.12.0
func (o *BikeAPIAvailabilityAllCityNearByStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type BikeAPIStationAllCityNearByNotModified ¶
type BikeAPIStationAllCityNearByNotModified struct { }
BikeAPIStationAllCityNearByNotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewBikeAPIStationAllCityNearByNotModified ¶
func NewBikeAPIStationAllCityNearByNotModified() *BikeAPIStationAllCityNearByNotModified
NewBikeAPIStationAllCityNearByNotModified creates a BikeAPIStationAllCityNearByNotModified with default headers values
func (*BikeAPIStationAllCityNearByNotModified) Error ¶
func (o *BikeAPIStationAllCityNearByNotModified) Error() string
type BikeAPIStationAllCityNearByOK ¶
type BikeAPIStationAllCityNearByOK struct {
Payload []*models.PTXServiceDTOBikeSpecificationV2BikeStation
}
BikeAPIStationAllCityNearByOK describes a response with status code 200, with default header values.
Success
func NewBikeAPIStationAllCityNearByOK ¶
func NewBikeAPIStationAllCityNearByOK() *BikeAPIStationAllCityNearByOK
NewBikeAPIStationAllCityNearByOK creates a BikeAPIStationAllCityNearByOK with default headers values
func (*BikeAPIStationAllCityNearByOK) Error ¶
func (o *BikeAPIStationAllCityNearByOK) Error() string
func (*BikeAPIStationAllCityNearByOK) GetPayload ¶
func (o *BikeAPIStationAllCityNearByOK) GetPayload() []*models.PTXServiceDTOBikeSpecificationV2BikeStation
type BikeAPIStationAllCityNearByParams ¶
type BikeAPIStationAllCityNearByParams struct { /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarSpatialFilter. 空間過濾(最大搜尋半徑為1000公尺),語法為nearby({Lat},{Lon},{DistanceInMeters}),例如nearby(25.047675, 121.517055, 100) */ DollarSpatialFilter string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
BikeAPIStationAllCityNearByParams contains all the parameters to send to the API endpoint
for the bike Api station all city near by operation. Typically these are written to a http.Request.
func NewBikeAPIStationAllCityNearByParams ¶
func NewBikeAPIStationAllCityNearByParams() *BikeAPIStationAllCityNearByParams
NewBikeAPIStationAllCityNearByParams creates a new BikeAPIStationAllCityNearByParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewBikeAPIStationAllCityNearByParamsWithContext ¶
func NewBikeAPIStationAllCityNearByParamsWithContext(ctx context.Context) *BikeAPIStationAllCityNearByParams
NewBikeAPIStationAllCityNearByParamsWithContext creates a new BikeAPIStationAllCityNearByParams object with the ability to set a context for a request.
func NewBikeAPIStationAllCityNearByParamsWithHTTPClient ¶
func NewBikeAPIStationAllCityNearByParamsWithHTTPClient(client *http.Client) *BikeAPIStationAllCityNearByParams
NewBikeAPIStationAllCityNearByParamsWithHTTPClient creates a new BikeAPIStationAllCityNearByParams object with the ability to set a custom HTTPClient for a request.
func NewBikeAPIStationAllCityNearByParamsWithTimeout ¶
func NewBikeAPIStationAllCityNearByParamsWithTimeout(timeout time.Duration) *BikeAPIStationAllCityNearByParams
NewBikeAPIStationAllCityNearByParamsWithTimeout creates a new BikeAPIStationAllCityNearByParams object with the ability to set a timeout on a request.
func (*BikeAPIStationAllCityNearByParams) SetContext ¶
func (o *BikeAPIStationAllCityNearByParams) SetContext(ctx context.Context)
SetContext adds the context to the bike Api station all city near by params
func (*BikeAPIStationAllCityNearByParams) SetDefaults ¶
func (o *BikeAPIStationAllCityNearByParams) SetDefaults()
SetDefaults hydrates default values in the bike Api station all city near by params (not the query body).
All values with no default are reset to their zero value.
func (*BikeAPIStationAllCityNearByParams) SetDollarFilter ¶
func (o *BikeAPIStationAllCityNearByParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the bike Api station all city near by params
func (*BikeAPIStationAllCityNearByParams) SetDollarFormat ¶
func (o *BikeAPIStationAllCityNearByParams) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the bike Api station all city near by params
func (*BikeAPIStationAllCityNearByParams) SetDollarOrderby ¶
func (o *BikeAPIStationAllCityNearByParams) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the bike Api station all city near by params
func (*BikeAPIStationAllCityNearByParams) SetDollarSelect ¶
func (o *BikeAPIStationAllCityNearByParams) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the bike Api station all city near by params
func (*BikeAPIStationAllCityNearByParams) SetDollarSkip ¶
func (o *BikeAPIStationAllCityNearByParams) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the bike Api station all city near by params
func (*BikeAPIStationAllCityNearByParams) SetDollarSpatialFilter ¶
func (o *BikeAPIStationAllCityNearByParams) SetDollarSpatialFilter(dollarSpatialFilter string)
SetDollarSpatialFilter adds the dollarSpatialFilter to the bike Api station all city near by params
func (*BikeAPIStationAllCityNearByParams) SetDollarTop ¶
func (o *BikeAPIStationAllCityNearByParams) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the bike Api station all city near by params
func (*BikeAPIStationAllCityNearByParams) SetHTTPClient ¶
func (o *BikeAPIStationAllCityNearByParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the bike Api station all city near by params
func (*BikeAPIStationAllCityNearByParams) SetHealth ¶ added in v0.12.0
func (o *BikeAPIStationAllCityNearByParams) SetHealth(health *string)
SetHealth adds the health to the bike Api station all city near by params
func (*BikeAPIStationAllCityNearByParams) SetTimeout ¶
func (o *BikeAPIStationAllCityNearByParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the bike Api station all city near by params
func (*BikeAPIStationAllCityNearByParams) WithContext ¶
func (o *BikeAPIStationAllCityNearByParams) WithContext(ctx context.Context) *BikeAPIStationAllCityNearByParams
WithContext adds the context to the bike Api station all city near by params
func (*BikeAPIStationAllCityNearByParams) WithDefaults ¶
func (o *BikeAPIStationAllCityNearByParams) WithDefaults() *BikeAPIStationAllCityNearByParams
WithDefaults hydrates default values in the bike Api station all city near by params (not the query body).
All values with no default are reset to their zero value.
func (*BikeAPIStationAllCityNearByParams) WithDollarFilter ¶
func (o *BikeAPIStationAllCityNearByParams) WithDollarFilter(dollarFilter *string) *BikeAPIStationAllCityNearByParams
WithDollarFilter adds the dollarFilter to the bike Api station all city near by params
func (*BikeAPIStationAllCityNearByParams) WithDollarFormat ¶
func (o *BikeAPIStationAllCityNearByParams) WithDollarFormat(dollarFormat string) *BikeAPIStationAllCityNearByParams
WithDollarFormat adds the dollarFormat to the bike Api station all city near by params
func (*BikeAPIStationAllCityNearByParams) WithDollarOrderby ¶
func (o *BikeAPIStationAllCityNearByParams) WithDollarOrderby(dollarOrderby *string) *BikeAPIStationAllCityNearByParams
WithDollarOrderby adds the dollarOrderby to the bike Api station all city near by params
func (*BikeAPIStationAllCityNearByParams) WithDollarSelect ¶
func (o *BikeAPIStationAllCityNearByParams) WithDollarSelect(dollarSelect *string) *BikeAPIStationAllCityNearByParams
WithDollarSelect adds the dollarSelect to the bike Api station all city near by params
func (*BikeAPIStationAllCityNearByParams) WithDollarSkip ¶
func (o *BikeAPIStationAllCityNearByParams) WithDollarSkip(dollarSkip *string) *BikeAPIStationAllCityNearByParams
WithDollarSkip adds the dollarSkip to the bike Api station all city near by params
func (*BikeAPIStationAllCityNearByParams) WithDollarSpatialFilter ¶
func (o *BikeAPIStationAllCityNearByParams) WithDollarSpatialFilter(dollarSpatialFilter string) *BikeAPIStationAllCityNearByParams
WithDollarSpatialFilter adds the dollarSpatialFilter to the bike Api station all city near by params
func (*BikeAPIStationAllCityNearByParams) WithDollarTop ¶
func (o *BikeAPIStationAllCityNearByParams) WithDollarTop(dollarTop *int64) *BikeAPIStationAllCityNearByParams
WithDollarTop adds the dollarTop to the bike Api station all city near by params
func (*BikeAPIStationAllCityNearByParams) WithHTTPClient ¶
func (o *BikeAPIStationAllCityNearByParams) WithHTTPClient(client *http.Client) *BikeAPIStationAllCityNearByParams
WithHTTPClient adds the HTTPClient to the bike Api station all city near by params
func (*BikeAPIStationAllCityNearByParams) WithHealth ¶ added in v0.12.0
func (o *BikeAPIStationAllCityNearByParams) WithHealth(health *string) *BikeAPIStationAllCityNearByParams
WithHealth adds the health to the bike Api station all city near by params
func (*BikeAPIStationAllCityNearByParams) WithTimeout ¶
func (o *BikeAPIStationAllCityNearByParams) WithTimeout(timeout time.Duration) *BikeAPIStationAllCityNearByParams
WithTimeout adds the timeout to the bike Api station all city near by params
func (*BikeAPIStationAllCityNearByParams) WriteToRequest ¶
func (o *BikeAPIStationAllCityNearByParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type BikeAPIStationAllCityNearByReader ¶
type BikeAPIStationAllCityNearByReader struct {
// contains filtered or unexported fields
}
BikeAPIStationAllCityNearByReader is a Reader for the BikeAPIStationAllCityNearBy structure.
func (*BikeAPIStationAllCityNearByReader) ReadResponse ¶
func (o *BikeAPIStationAllCityNearByReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type BikeAPIStationAllCityNearByStatus299 ¶ added in v0.12.0
type BikeAPIStationAllCityNearByStatus299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
BikeAPIStationAllCityNearByStatus299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewBikeAPIStationAllCityNearByStatus299 ¶ added in v0.12.0
func NewBikeAPIStationAllCityNearByStatus299() *BikeAPIStationAllCityNearByStatus299
NewBikeAPIStationAllCityNearByStatus299 creates a BikeAPIStationAllCityNearByStatus299 with default headers values
func (*BikeAPIStationAllCityNearByStatus299) Error ¶ added in v0.12.0
func (o *BikeAPIStationAllCityNearByStatus299) Error() string
func (*BikeAPIStationAllCityNearByStatus299) GetPayload ¶ added in v0.12.0
func (o *BikeAPIStationAllCityNearByStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for advanced API
func (*Client) BikeAPIAvailabilityAllCityNearBy ¶
func (a *Client) BikeAPIAvailabilityAllCityNearBy(params *BikeAPIAvailabilityAllCityNearByParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BikeAPIAvailabilityAllCityNearByOK, *BikeAPIAvailabilityAllCityNearByStatus299, error)
BikeAPIAvailabilityAllCityNearBy 取得指定s 位置 範圍 的全臺公共自行車即時車位資料
取得指定[位置,範圍]的全臺公共自行車即時車位資料
func (*Client) BikeAPIStationAllCityNearBy ¶
func (a *Client) BikeAPIStationAllCityNearBy(params *BikeAPIStationAllCityNearByParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BikeAPIStationAllCityNearByOK, *BikeAPIStationAllCityNearByStatus299, error)
BikeAPIStationAllCityNearBy 取得指定s 位置 範圍 的全臺公共自行車租借站位資料
取得指定[位置,範圍]的全臺公共自行車租借站位資料
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶ added in v0.11.0
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { BikeAPIAvailabilityAllCityNearBy(params *BikeAPIAvailabilityAllCityNearByParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BikeAPIAvailabilityAllCityNearByOK, *BikeAPIAvailabilityAllCityNearByStatus299, error) BikeAPIStationAllCityNearBy(params *BikeAPIStationAllCityNearByParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BikeAPIStationAllCityNearByOK, *BikeAPIStationAllCityNearByStatus299, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new advanced API client.