Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type RailAPIOperator2165NotModified
- type RailAPIOperator2165OK
- type RailAPIOperator2165Params
- func NewRailAPIOperator2165Params() *RailAPIOperator2165Params
- func NewRailAPIOperator2165ParamsWithContext(ctx context.Context) *RailAPIOperator2165Params
- func NewRailAPIOperator2165ParamsWithHTTPClient(client *http.Client) *RailAPIOperator2165Params
- func NewRailAPIOperator2165ParamsWithTimeout(timeout time.Duration) *RailAPIOperator2165Params
- func (o *RailAPIOperator2165Params) SetContext(ctx context.Context)
- func (o *RailAPIOperator2165Params) SetDefaults()
- func (o *RailAPIOperator2165Params) SetDollarFilter(dollarFilter *string)
- func (o *RailAPIOperator2165Params) SetDollarFormat(dollarFormat string)
- func (o *RailAPIOperator2165Params) SetDollarOrderby(dollarOrderby *string)
- func (o *RailAPIOperator2165Params) SetDollarSelect(dollarSelect *string)
- func (o *RailAPIOperator2165Params) SetDollarSkip(dollarSkip *string)
- func (o *RailAPIOperator2165Params) SetDollarTop(dollarTop *int64)
- func (o *RailAPIOperator2165Params) SetHTTPClient(client *http.Client)
- func (o *RailAPIOperator2165Params) SetHealth(health *string)
- func (o *RailAPIOperator2165Params) SetTimeout(timeout time.Duration)
- func (o *RailAPIOperator2165Params) WithContext(ctx context.Context) *RailAPIOperator2165Params
- func (o *RailAPIOperator2165Params) WithDefaults() *RailAPIOperator2165Params
- func (o *RailAPIOperator2165Params) WithDollarFilter(dollarFilter *string) *RailAPIOperator2165Params
- func (o *RailAPIOperator2165Params) WithDollarFormat(dollarFormat string) *RailAPIOperator2165Params
- func (o *RailAPIOperator2165Params) WithDollarOrderby(dollarOrderby *string) *RailAPIOperator2165Params
- func (o *RailAPIOperator2165Params) WithDollarSelect(dollarSelect *string) *RailAPIOperator2165Params
- func (o *RailAPIOperator2165Params) WithDollarSkip(dollarSkip *string) *RailAPIOperator2165Params
- func (o *RailAPIOperator2165Params) WithDollarTop(dollarTop *int64) *RailAPIOperator2165Params
- func (o *RailAPIOperator2165Params) WithHTTPClient(client *http.Client) *RailAPIOperator2165Params
- func (o *RailAPIOperator2165Params) WithHealth(health *string) *RailAPIOperator2165Params
- func (o *RailAPIOperator2165Params) WithTimeout(timeout time.Duration) *RailAPIOperator2165Params
- func (o *RailAPIOperator2165Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RailAPIOperator2165Reader
- type RailAPIOperator2165Status299
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for rail basic API
func (*Client) RailAPIOperator2165 ¶ added in v0.15.0
func (a *Client) RailAPIOperator2165(params *RailAPIOperator2165Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RailAPIOperator2165OK, *RailAPIOperator2165Status299, error)
RailAPIOperator2165 取得軌道營運業者資料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 ¶ added in v0.5.0
type ClientService interface { RailAPIOperator2165(params *RailAPIOperator2165Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RailAPIOperator2165OK, *RailAPIOperator2165Status299, 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 rail basic API client.
type RailAPIOperator2165NotModified ¶ added in v0.15.0
type RailAPIOperator2165NotModified struct { }
RailAPIOperator2165NotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewRailAPIOperator2165NotModified ¶ added in v0.15.0
func NewRailAPIOperator2165NotModified() *RailAPIOperator2165NotModified
NewRailAPIOperator2165NotModified creates a RailAPIOperator2165NotModified with default headers values
func (*RailAPIOperator2165NotModified) Error ¶ added in v0.15.0
func (o *RailAPIOperator2165NotModified) Error() string
type RailAPIOperator2165OK ¶ added in v0.15.0
type RailAPIOperator2165OK struct {
Payload []*models.PTXServiceDTOSharedSpecificationV2BaseOperator
}
RailAPIOperator2165OK describes a response with status code 200, with default header values.
Success
func NewRailAPIOperator2165OK ¶ added in v0.15.0
func NewRailAPIOperator2165OK() *RailAPIOperator2165OK
NewRailAPIOperator2165OK creates a RailAPIOperator2165OK with default headers values
func (*RailAPIOperator2165OK) Error ¶ added in v0.15.0
func (o *RailAPIOperator2165OK) Error() string
func (*RailAPIOperator2165OK) GetPayload ¶ added in v0.15.0
func (o *RailAPIOperator2165OK) GetPayload() []*models.PTXServiceDTOSharedSpecificationV2BaseOperator
type RailAPIOperator2165Params ¶ added in v0.15.0
type RailAPIOperator2165Params struct { /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RailAPIOperator2165Params contains all the parameters to send to the API endpoint
for the rail Api operator 2165 operation. Typically these are written to a http.Request.
func NewRailAPIOperator2165Params ¶ added in v0.15.0
func NewRailAPIOperator2165Params() *RailAPIOperator2165Params
NewRailAPIOperator2165Params creates a new RailAPIOperator2165Params 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 NewRailAPIOperator2165ParamsWithContext ¶ added in v0.15.0
func NewRailAPIOperator2165ParamsWithContext(ctx context.Context) *RailAPIOperator2165Params
NewRailAPIOperator2165ParamsWithContext creates a new RailAPIOperator2165Params object with the ability to set a context for a request.
func NewRailAPIOperator2165ParamsWithHTTPClient ¶ added in v0.15.0
func NewRailAPIOperator2165ParamsWithHTTPClient(client *http.Client) *RailAPIOperator2165Params
NewRailAPIOperator2165ParamsWithHTTPClient creates a new RailAPIOperator2165Params object with the ability to set a custom HTTPClient for a request.
func NewRailAPIOperator2165ParamsWithTimeout ¶ added in v0.15.0
func NewRailAPIOperator2165ParamsWithTimeout(timeout time.Duration) *RailAPIOperator2165Params
NewRailAPIOperator2165ParamsWithTimeout creates a new RailAPIOperator2165Params object with the ability to set a timeout on a request.
func (*RailAPIOperator2165Params) SetContext ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) SetContext(ctx context.Context)
SetContext adds the context to the rail Api operator 2165 params
func (*RailAPIOperator2165Params) SetDefaults ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) SetDefaults()
SetDefaults hydrates default values in the rail Api operator 2165 params (not the query body).
All values with no default are reset to their zero value.
func (*RailAPIOperator2165Params) SetDollarFilter ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the rail Api operator 2165 params
func (*RailAPIOperator2165Params) SetDollarFormat ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the rail Api operator 2165 params
func (*RailAPIOperator2165Params) SetDollarOrderby ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the rail Api operator 2165 params
func (*RailAPIOperator2165Params) SetDollarSelect ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the rail Api operator 2165 params
func (*RailAPIOperator2165Params) SetDollarSkip ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the rail Api operator 2165 params
func (*RailAPIOperator2165Params) SetDollarTop ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the rail Api operator 2165 params
func (*RailAPIOperator2165Params) SetHTTPClient ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the rail Api operator 2165 params
func (*RailAPIOperator2165Params) SetHealth ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) SetHealth(health *string)
SetHealth adds the health to the rail Api operator 2165 params
func (*RailAPIOperator2165Params) SetTimeout ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the rail Api operator 2165 params
func (*RailAPIOperator2165Params) WithContext ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) WithContext(ctx context.Context) *RailAPIOperator2165Params
WithContext adds the context to the rail Api operator 2165 params
func (*RailAPIOperator2165Params) WithDefaults ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) WithDefaults() *RailAPIOperator2165Params
WithDefaults hydrates default values in the rail Api operator 2165 params (not the query body).
All values with no default are reset to their zero value.
func (*RailAPIOperator2165Params) WithDollarFilter ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) WithDollarFilter(dollarFilter *string) *RailAPIOperator2165Params
WithDollarFilter adds the dollarFilter to the rail Api operator 2165 params
func (*RailAPIOperator2165Params) WithDollarFormat ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) WithDollarFormat(dollarFormat string) *RailAPIOperator2165Params
WithDollarFormat adds the dollarFormat to the rail Api operator 2165 params
func (*RailAPIOperator2165Params) WithDollarOrderby ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) WithDollarOrderby(dollarOrderby *string) *RailAPIOperator2165Params
WithDollarOrderby adds the dollarOrderby to the rail Api operator 2165 params
func (*RailAPIOperator2165Params) WithDollarSelect ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) WithDollarSelect(dollarSelect *string) *RailAPIOperator2165Params
WithDollarSelect adds the dollarSelect to the rail Api operator 2165 params
func (*RailAPIOperator2165Params) WithDollarSkip ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) WithDollarSkip(dollarSkip *string) *RailAPIOperator2165Params
WithDollarSkip adds the dollarSkip to the rail Api operator 2165 params
func (*RailAPIOperator2165Params) WithDollarTop ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) WithDollarTop(dollarTop *int64) *RailAPIOperator2165Params
WithDollarTop adds the dollarTop to the rail Api operator 2165 params
func (*RailAPIOperator2165Params) WithHTTPClient ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) WithHTTPClient(client *http.Client) *RailAPIOperator2165Params
WithHTTPClient adds the HTTPClient to the rail Api operator 2165 params
func (*RailAPIOperator2165Params) WithHealth ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) WithHealth(health *string) *RailAPIOperator2165Params
WithHealth adds the health to the rail Api operator 2165 params
func (*RailAPIOperator2165Params) WithTimeout ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) WithTimeout(timeout time.Duration) *RailAPIOperator2165Params
WithTimeout adds the timeout to the rail Api operator 2165 params
func (*RailAPIOperator2165Params) WriteToRequest ¶ added in v0.15.0
func (o *RailAPIOperator2165Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RailAPIOperator2165Reader ¶ added in v0.15.0
type RailAPIOperator2165Reader struct {
// contains filtered or unexported fields
}
RailAPIOperator2165Reader is a Reader for the RailAPIOperator2165 structure.
func (*RailAPIOperator2165Reader) ReadResponse ¶ added in v0.15.0
func (o *RailAPIOperator2165Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RailAPIOperator2165Status299 ¶ added in v0.15.0
type RailAPIOperator2165Status299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
RailAPIOperator2165Status299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewRailAPIOperator2165Status299 ¶ added in v0.15.0
func NewRailAPIOperator2165Status299() *RailAPIOperator2165Status299
NewRailAPIOperator2165Status299 creates a RailAPIOperator2165Status299 with default headers values
func (*RailAPIOperator2165Status299) Error ¶ added in v0.15.0
func (o *RailAPIOperator2165Status299) Error() string
func (*RailAPIOperator2165Status299) GetPayload ¶ added in v0.15.0
func (o *RailAPIOperator2165Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth