Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type RailAPIOperatorNotModified
- type RailAPIOperatorOK
- type RailAPIOperatorParams
- func NewRailAPIOperatorParams() *RailAPIOperatorParams
- func NewRailAPIOperatorParamsWithContext(ctx context.Context) *RailAPIOperatorParams
- func NewRailAPIOperatorParamsWithHTTPClient(client *http.Client) *RailAPIOperatorParams
- func NewRailAPIOperatorParamsWithTimeout(timeout time.Duration) *RailAPIOperatorParams
- func (o *RailAPIOperatorParams) SetContext(ctx context.Context)
- func (o *RailAPIOperatorParams) SetDefaults()
- func (o *RailAPIOperatorParams) SetDollarFilter(dollarFilter *string)
- func (o *RailAPIOperatorParams) SetDollarFormat(dollarFormat string)
- func (o *RailAPIOperatorParams) SetDollarOrderby(dollarOrderby *string)
- func (o *RailAPIOperatorParams) SetDollarSelect(dollarSelect *string)
- func (o *RailAPIOperatorParams) SetDollarSkip(dollarSkip *string)
- func (o *RailAPIOperatorParams) SetDollarTop(dollarTop *int64)
- func (o *RailAPIOperatorParams) SetHTTPClient(client *http.Client)
- func (o *RailAPIOperatorParams) SetHealth(health *string)
- func (o *RailAPIOperatorParams) SetTimeout(timeout time.Duration)
- func (o *RailAPIOperatorParams) WithContext(ctx context.Context) *RailAPIOperatorParams
- func (o *RailAPIOperatorParams) WithDefaults() *RailAPIOperatorParams
- func (o *RailAPIOperatorParams) WithDollarFilter(dollarFilter *string) *RailAPIOperatorParams
- func (o *RailAPIOperatorParams) WithDollarFormat(dollarFormat string) *RailAPIOperatorParams
- func (o *RailAPIOperatorParams) WithDollarOrderby(dollarOrderby *string) *RailAPIOperatorParams
- func (o *RailAPIOperatorParams) WithDollarSelect(dollarSelect *string) *RailAPIOperatorParams
- func (o *RailAPIOperatorParams) WithDollarSkip(dollarSkip *string) *RailAPIOperatorParams
- func (o *RailAPIOperatorParams) WithDollarTop(dollarTop *int64) *RailAPIOperatorParams
- func (o *RailAPIOperatorParams) WithHTTPClient(client *http.Client) *RailAPIOperatorParams
- func (o *RailAPIOperatorParams) WithHealth(health *string) *RailAPIOperatorParams
- func (o *RailAPIOperatorParams) WithTimeout(timeout time.Duration) *RailAPIOperatorParams
- func (o *RailAPIOperatorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RailAPIOperatorReader
- type RailAPIOperatorStatus299
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) RailAPIOperator ¶
func (a *Client) RailAPIOperator(params *RailAPIOperatorParams, opts ...ClientOption) (*RailAPIOperatorOK, *RailAPIOperatorStatus299, error)
RailAPIOperator 取得軌道營運業者資料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 { RailAPIOperator(params *RailAPIOperatorParams, opts ...ClientOption) (*RailAPIOperatorOK, *RailAPIOperatorStatus299, 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 RailAPIOperatorNotModified ¶ added in v0.9.0
type RailAPIOperatorNotModified struct { }
RailAPIOperatorNotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewRailAPIOperatorNotModified ¶ added in v0.9.0
func NewRailAPIOperatorNotModified() *RailAPIOperatorNotModified
NewRailAPIOperatorNotModified creates a RailAPIOperatorNotModified with default headers values
func (*RailAPIOperatorNotModified) Error ¶ added in v0.9.0
func (o *RailAPIOperatorNotModified) Error() string
type RailAPIOperatorOK ¶
type RailAPIOperatorOK struct {
Payload []*models.PTXServiceDTOSharedSpecificationV2BaseOperator
}
RailAPIOperatorOK describes a response with status code 200, with default header values.
Success
func NewRailAPIOperatorOK ¶
func NewRailAPIOperatorOK() *RailAPIOperatorOK
NewRailAPIOperatorOK creates a RailAPIOperatorOK with default headers values
func (*RailAPIOperatorOK) Error ¶
func (o *RailAPIOperatorOK) Error() string
func (*RailAPIOperatorOK) GetPayload ¶
func (o *RailAPIOperatorOK) GetPayload() []*models.PTXServiceDTOSharedSpecificationV2BaseOperator
type RailAPIOperatorParams ¶
type RailAPIOperatorParams 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 }
RailAPIOperatorParams contains all the parameters to send to the API endpoint
for the rail Api operator operation. Typically these are written to a http.Request.
func NewRailAPIOperatorParams ¶
func NewRailAPIOperatorParams() *RailAPIOperatorParams
NewRailAPIOperatorParams creates a new RailAPIOperatorParams 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 NewRailAPIOperatorParamsWithContext ¶
func NewRailAPIOperatorParamsWithContext(ctx context.Context) *RailAPIOperatorParams
NewRailAPIOperatorParamsWithContext creates a new RailAPIOperatorParams object with the ability to set a context for a request.
func NewRailAPIOperatorParamsWithHTTPClient ¶
func NewRailAPIOperatorParamsWithHTTPClient(client *http.Client) *RailAPIOperatorParams
NewRailAPIOperatorParamsWithHTTPClient creates a new RailAPIOperatorParams object with the ability to set a custom HTTPClient for a request.
func NewRailAPIOperatorParamsWithTimeout ¶
func NewRailAPIOperatorParamsWithTimeout(timeout time.Duration) *RailAPIOperatorParams
NewRailAPIOperatorParamsWithTimeout creates a new RailAPIOperatorParams object with the ability to set a timeout on a request.
func (*RailAPIOperatorParams) SetContext ¶
func (o *RailAPIOperatorParams) SetContext(ctx context.Context)
SetContext adds the context to the rail Api operator params
func (*RailAPIOperatorParams) SetDefaults ¶ added in v0.9.0
func (o *RailAPIOperatorParams) SetDefaults()
SetDefaults hydrates default values in the rail Api operator params (not the query body).
All values with no default are reset to their zero value.
func (*RailAPIOperatorParams) SetDollarFilter ¶
func (o *RailAPIOperatorParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the rail Api operator params
func (*RailAPIOperatorParams) SetDollarFormat ¶
func (o *RailAPIOperatorParams) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the rail Api operator params
func (*RailAPIOperatorParams) SetDollarOrderby ¶
func (o *RailAPIOperatorParams) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the rail Api operator params
func (*RailAPIOperatorParams) SetDollarSelect ¶
func (o *RailAPIOperatorParams) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the rail Api operator params
func (*RailAPIOperatorParams) SetDollarSkip ¶
func (o *RailAPIOperatorParams) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the rail Api operator params
func (*RailAPIOperatorParams) SetDollarTop ¶
func (o *RailAPIOperatorParams) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the rail Api operator params
func (*RailAPIOperatorParams) SetHTTPClient ¶
func (o *RailAPIOperatorParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the rail Api operator params
func (*RailAPIOperatorParams) SetHealth ¶ added in v0.12.0
func (o *RailAPIOperatorParams) SetHealth(health *string)
SetHealth adds the health to the rail Api operator params
func (*RailAPIOperatorParams) SetTimeout ¶
func (o *RailAPIOperatorParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the rail Api operator params
func (*RailAPIOperatorParams) WithContext ¶
func (o *RailAPIOperatorParams) WithContext(ctx context.Context) *RailAPIOperatorParams
WithContext adds the context to the rail Api operator params
func (*RailAPIOperatorParams) WithDefaults ¶ added in v0.9.0
func (o *RailAPIOperatorParams) WithDefaults() *RailAPIOperatorParams
WithDefaults hydrates default values in the rail Api operator params (not the query body).
All values with no default are reset to their zero value.
func (*RailAPIOperatorParams) WithDollarFilter ¶
func (o *RailAPIOperatorParams) WithDollarFilter(dollarFilter *string) *RailAPIOperatorParams
WithDollarFilter adds the dollarFilter to the rail Api operator params
func (*RailAPIOperatorParams) WithDollarFormat ¶
func (o *RailAPIOperatorParams) WithDollarFormat(dollarFormat string) *RailAPIOperatorParams
WithDollarFormat adds the dollarFormat to the rail Api operator params
func (*RailAPIOperatorParams) WithDollarOrderby ¶
func (o *RailAPIOperatorParams) WithDollarOrderby(dollarOrderby *string) *RailAPIOperatorParams
WithDollarOrderby adds the dollarOrderby to the rail Api operator params
func (*RailAPIOperatorParams) WithDollarSelect ¶
func (o *RailAPIOperatorParams) WithDollarSelect(dollarSelect *string) *RailAPIOperatorParams
WithDollarSelect adds the dollarSelect to the rail Api operator params
func (*RailAPIOperatorParams) WithDollarSkip ¶
func (o *RailAPIOperatorParams) WithDollarSkip(dollarSkip *string) *RailAPIOperatorParams
WithDollarSkip adds the dollarSkip to the rail Api operator params
func (*RailAPIOperatorParams) WithDollarTop ¶
func (o *RailAPIOperatorParams) WithDollarTop(dollarTop *int64) *RailAPIOperatorParams
WithDollarTop adds the dollarTop to the rail Api operator params
func (*RailAPIOperatorParams) WithHTTPClient ¶
func (o *RailAPIOperatorParams) WithHTTPClient(client *http.Client) *RailAPIOperatorParams
WithHTTPClient adds the HTTPClient to the rail Api operator params
func (*RailAPIOperatorParams) WithHealth ¶ added in v0.12.0
func (o *RailAPIOperatorParams) WithHealth(health *string) *RailAPIOperatorParams
WithHealth adds the health to the rail Api operator params
func (*RailAPIOperatorParams) WithTimeout ¶
func (o *RailAPIOperatorParams) WithTimeout(timeout time.Duration) *RailAPIOperatorParams
WithTimeout adds the timeout to the rail Api operator params
func (*RailAPIOperatorParams) WriteToRequest ¶
func (o *RailAPIOperatorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RailAPIOperatorReader ¶
type RailAPIOperatorReader struct {
// contains filtered or unexported fields
}
RailAPIOperatorReader is a Reader for the RailAPIOperator structure.
func (*RailAPIOperatorReader) ReadResponse ¶
func (o *RailAPIOperatorReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RailAPIOperatorStatus299 ¶ added in v0.12.0
type RailAPIOperatorStatus299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
RailAPIOperatorStatus299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewRailAPIOperatorStatus299 ¶ added in v0.12.0
func NewRailAPIOperatorStatus299() *RailAPIOperatorStatus299
NewRailAPIOperatorStatus299 creates a RailAPIOperatorStatus299 with default headers values
func (*RailAPIOperatorStatus299) Error ¶ added in v0.12.0
func (o *RailAPIOperatorStatus299) Error() string
func (*RailAPIOperatorStatus299) GetPayload ¶ added in v0.12.0
func (o *RailAPIOperatorStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth