advanced

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

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

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 (*BikeAPIAvailabilityAllCityNearByOK) GetPayload

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

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

WithContext adds the context to the bike Api availability all city near by params

func (*BikeAPIAvailabilityAllCityNearByParams) WithDefaults

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

WithDollarFilter adds the dollarFilter to the bike Api availability all city near by params

func (*BikeAPIAvailabilityAllCityNearByParams) WithDollarFormat

WithDollarFormat adds the dollarFormat to the bike Api availability all city near by params

func (*BikeAPIAvailabilityAllCityNearByParams) WithDollarOrderby

WithDollarOrderby adds the dollarOrderby to the bike Api availability all city near by params

func (*BikeAPIAvailabilityAllCityNearByParams) WithDollarSelect

WithDollarSelect adds the dollarSelect to the bike Api availability all city near by params

func (*BikeAPIAvailabilityAllCityNearByParams) WithDollarSkip

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

WithDollarTop adds the dollarTop to the bike Api availability all city near by params

func (*BikeAPIAvailabilityAllCityNearByParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the bike Api availability all city near by params

func (*BikeAPIAvailabilityAllCityNearByParams) WithHealth added in v0.12.0

WithHealth adds the health to the bike Api availability all city near by params

func (*BikeAPIAvailabilityAllCityNearByParams) WithTimeout

WithTimeout adds the timeout to the bike Api availability all city near by params

func (*BikeAPIAvailabilityAllCityNearByParams) WriteToRequest

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 (*BikeAPIAvailabilityAllCityNearByStatus299) GetPayload added in v0.12.0

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

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 (*BikeAPIStationAllCityNearByOK) GetPayload

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

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

WithContext adds the context to the bike Api station all city near by params

func (*BikeAPIStationAllCityNearByParams) WithDefaults

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

WithDollarFilter adds the dollarFilter to the bike Api station all city near by params

func (*BikeAPIStationAllCityNearByParams) WithDollarFormat

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

WithDollarSelect adds the dollarSelect to the bike Api station all city near by params

func (*BikeAPIStationAllCityNearByParams) WithDollarSkip

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

WithDollarTop adds the dollarTop to the bike Api station all city near by params

func (*BikeAPIStationAllCityNearByParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the bike Api station all city near by params

func (*BikeAPIStationAllCityNearByParams) WithHealth added in v0.12.0

WithHealth adds the health to the bike Api station all city near by params

func (*BikeAPIStationAllCityNearByParams) WithTimeout

WithTimeout adds the timeout to the bike Api station all city near by params

func (*BikeAPIStationAllCityNearByParams) WriteToRequest

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 (*BikeAPIStationAllCityNearByStatus299) GetPayload added in v0.12.0

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for advanced API

func (*Client) BikeAPIAvailabilityAllCityNearBy

BikeAPIAvailabilityAllCityNearBy 取得指定s 位置 範圍 的全臺公共自行車即時車位資料

取得指定[位置,範圍]的全臺公共自行車即時車位資料

func (*Client) BikeAPIStationAllCityNearBy

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

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.

Jump to

Keyboard shortcuts

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