Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type ShipInternationalLivePosition3237NotModified
- type ShipInternationalLivePosition3237OK
- type ShipInternationalLivePosition3237Params
- func NewShipInternationalLivePosition3237Params() *ShipInternationalLivePosition3237Params
- func NewShipInternationalLivePosition3237ParamsWithContext(ctx context.Context) *ShipInternationalLivePosition3237Params
- func NewShipInternationalLivePosition3237ParamsWithHTTPClient(client *http.Client) *ShipInternationalLivePosition3237Params
- func NewShipInternationalLivePosition3237ParamsWithTimeout(timeout time.Duration) *ShipInternationalLivePosition3237Params
- func (o *ShipInternationalLivePosition3237Params) SetContext(ctx context.Context)
- func (o *ShipInternationalLivePosition3237Params) SetDefaults()
- func (o *ShipInternationalLivePosition3237Params) SetDollarCount(dollarCount *bool)
- func (o *ShipInternationalLivePosition3237Params) SetDollarFilter(dollarFilter *string)
- func (o *ShipInternationalLivePosition3237Params) SetDollarFormat(dollarFormat string)
- func (o *ShipInternationalLivePosition3237Params) SetDollarOrderby(dollarOrderby *string)
- func (o *ShipInternationalLivePosition3237Params) SetDollarSelect(dollarSelect *string)
- func (o *ShipInternationalLivePosition3237Params) SetDollarSkip(dollarSkip *string)
- func (o *ShipInternationalLivePosition3237Params) SetDollarTop(dollarTop *int64)
- func (o *ShipInternationalLivePosition3237Params) SetHTTPClient(client *http.Client)
- func (o *ShipInternationalLivePosition3237Params) SetHealth(health *string)
- func (o *ShipInternationalLivePosition3237Params) SetTimeout(timeout time.Duration)
- func (o *ShipInternationalLivePosition3237Params) WithContext(ctx context.Context) *ShipInternationalLivePosition3237Params
- func (o *ShipInternationalLivePosition3237Params) WithDefaults() *ShipInternationalLivePosition3237Params
- func (o *ShipInternationalLivePosition3237Params) WithDollarCount(dollarCount *bool) *ShipInternationalLivePosition3237Params
- func (o *ShipInternationalLivePosition3237Params) WithDollarFilter(dollarFilter *string) *ShipInternationalLivePosition3237Params
- func (o *ShipInternationalLivePosition3237Params) WithDollarFormat(dollarFormat string) *ShipInternationalLivePosition3237Params
- func (o *ShipInternationalLivePosition3237Params) WithDollarOrderby(dollarOrderby *string) *ShipInternationalLivePosition3237Params
- func (o *ShipInternationalLivePosition3237Params) WithDollarSelect(dollarSelect *string) *ShipInternationalLivePosition3237Params
- func (o *ShipInternationalLivePosition3237Params) WithDollarSkip(dollarSkip *string) *ShipInternationalLivePosition3237Params
- func (o *ShipInternationalLivePosition3237Params) WithDollarTop(dollarTop *int64) *ShipInternationalLivePosition3237Params
- func (o *ShipInternationalLivePosition3237Params) WithHTTPClient(client *http.Client) *ShipInternationalLivePosition3237Params
- func (o *ShipInternationalLivePosition3237Params) WithHealth(health *string) *ShipInternationalLivePosition3237Params
- func (o *ShipInternationalLivePosition3237Params) WithTimeout(timeout time.Duration) *ShipInternationalLivePosition3237Params
- func (o *ShipInternationalLivePosition3237Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ShipInternationalLivePosition3237Reader
- type ShipInternationalLivePosition3237Status299
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 international ship API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) ShipInternationalLivePosition3237 ¶ added in v0.15.0
func (a *Client) ShipInternationalLivePosition3237(params *ShipInternationalLivePosition3237Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ShipInternationalLivePosition3237OK, *ShipInternationalLivePosition3237Status299, error)
ShipInternationalLivePosition3237 取得國際航運之船舶即時位置資料s
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { ShipInternationalLivePosition3237(params *ShipInternationalLivePosition3237Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ShipInternationalLivePosition3237OK, *ShipInternationalLivePosition3237Status299, 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 international ship API client.
type ShipInternationalLivePosition3237NotModified ¶ added in v0.15.0
type ShipInternationalLivePosition3237NotModified struct { }
ShipInternationalLivePosition3237NotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewShipInternationalLivePosition3237NotModified ¶ added in v0.15.0
func NewShipInternationalLivePosition3237NotModified() *ShipInternationalLivePosition3237NotModified
NewShipInternationalLivePosition3237NotModified creates a ShipInternationalLivePosition3237NotModified with default headers values
func (*ShipInternationalLivePosition3237NotModified) Error ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237NotModified) Error() string
type ShipInternationalLivePosition3237OK ¶ added in v0.15.0
type ShipInternationalLivePosition3237OK struct {
Payload *models.PTXAPIShipModelShipLiveWrapperPTXServiceDTOShipSpecificationV3LivePosition
}
ShipInternationalLivePosition3237OK describes a response with status code 200, with default header values.
Success
func NewShipInternationalLivePosition3237OK ¶ added in v0.15.0
func NewShipInternationalLivePosition3237OK() *ShipInternationalLivePosition3237OK
NewShipInternationalLivePosition3237OK creates a ShipInternationalLivePosition3237OK with default headers values
func (*ShipInternationalLivePosition3237OK) Error ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237OK) Error() string
func (*ShipInternationalLivePosition3237OK) GetPayload ¶ added in v0.15.0
type ShipInternationalLivePosition3237Params ¶ added in v0.15.0
type ShipInternationalLivePosition3237Params struct { /* DollarCount. 查詢數量 */ DollarCount *bool /* 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 }
ShipInternationalLivePosition3237Params contains all the parameters to send to the API endpoint
for the ship international live position 3237 operation. Typically these are written to a http.Request.
func NewShipInternationalLivePosition3237Params ¶ added in v0.15.0
func NewShipInternationalLivePosition3237Params() *ShipInternationalLivePosition3237Params
NewShipInternationalLivePosition3237Params creates a new ShipInternationalLivePosition3237Params 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 NewShipInternationalLivePosition3237ParamsWithContext ¶ added in v0.15.0
func NewShipInternationalLivePosition3237ParamsWithContext(ctx context.Context) *ShipInternationalLivePosition3237Params
NewShipInternationalLivePosition3237ParamsWithContext creates a new ShipInternationalLivePosition3237Params object with the ability to set a context for a request.
func NewShipInternationalLivePosition3237ParamsWithHTTPClient ¶ added in v0.15.0
func NewShipInternationalLivePosition3237ParamsWithHTTPClient(client *http.Client) *ShipInternationalLivePosition3237Params
NewShipInternationalLivePosition3237ParamsWithHTTPClient creates a new ShipInternationalLivePosition3237Params object with the ability to set a custom HTTPClient for a request.
func NewShipInternationalLivePosition3237ParamsWithTimeout ¶ added in v0.15.0
func NewShipInternationalLivePosition3237ParamsWithTimeout(timeout time.Duration) *ShipInternationalLivePosition3237Params
NewShipInternationalLivePosition3237ParamsWithTimeout creates a new ShipInternationalLivePosition3237Params object with the ability to set a timeout on a request.
func (*ShipInternationalLivePosition3237Params) SetContext ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) SetContext(ctx context.Context)
SetContext adds the context to the ship international live position 3237 params
func (*ShipInternationalLivePosition3237Params) SetDefaults ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) SetDefaults()
SetDefaults hydrates default values in the ship international live position 3237 params (not the query body).
All values with no default are reset to their zero value.
func (*ShipInternationalLivePosition3237Params) SetDollarCount ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) SetDollarCount(dollarCount *bool)
SetDollarCount adds the dollarCount to the ship international live position 3237 params
func (*ShipInternationalLivePosition3237Params) SetDollarFilter ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the ship international live position 3237 params
func (*ShipInternationalLivePosition3237Params) SetDollarFormat ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the ship international live position 3237 params
func (*ShipInternationalLivePosition3237Params) SetDollarOrderby ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the ship international live position 3237 params
func (*ShipInternationalLivePosition3237Params) SetDollarSelect ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the ship international live position 3237 params
func (*ShipInternationalLivePosition3237Params) SetDollarSkip ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the ship international live position 3237 params
func (*ShipInternationalLivePosition3237Params) SetDollarTop ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the ship international live position 3237 params
func (*ShipInternationalLivePosition3237Params) SetHTTPClient ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the ship international live position 3237 params
func (*ShipInternationalLivePosition3237Params) SetHealth ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) SetHealth(health *string)
SetHealth adds the health to the ship international live position 3237 params
func (*ShipInternationalLivePosition3237Params) SetTimeout ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the ship international live position 3237 params
func (*ShipInternationalLivePosition3237Params) WithContext ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) WithContext(ctx context.Context) *ShipInternationalLivePosition3237Params
WithContext adds the context to the ship international live position 3237 params
func (*ShipInternationalLivePosition3237Params) WithDefaults ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) WithDefaults() *ShipInternationalLivePosition3237Params
WithDefaults hydrates default values in the ship international live position 3237 params (not the query body).
All values with no default are reset to their zero value.
func (*ShipInternationalLivePosition3237Params) WithDollarCount ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) WithDollarCount(dollarCount *bool) *ShipInternationalLivePosition3237Params
WithDollarCount adds the dollarCount to the ship international live position 3237 params
func (*ShipInternationalLivePosition3237Params) WithDollarFilter ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) WithDollarFilter(dollarFilter *string) *ShipInternationalLivePosition3237Params
WithDollarFilter adds the dollarFilter to the ship international live position 3237 params
func (*ShipInternationalLivePosition3237Params) WithDollarFormat ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) WithDollarFormat(dollarFormat string) *ShipInternationalLivePosition3237Params
WithDollarFormat adds the dollarFormat to the ship international live position 3237 params
func (*ShipInternationalLivePosition3237Params) WithDollarOrderby ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) WithDollarOrderby(dollarOrderby *string) *ShipInternationalLivePosition3237Params
WithDollarOrderby adds the dollarOrderby to the ship international live position 3237 params
func (*ShipInternationalLivePosition3237Params) WithDollarSelect ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) WithDollarSelect(dollarSelect *string) *ShipInternationalLivePosition3237Params
WithDollarSelect adds the dollarSelect to the ship international live position 3237 params
func (*ShipInternationalLivePosition3237Params) WithDollarSkip ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) WithDollarSkip(dollarSkip *string) *ShipInternationalLivePosition3237Params
WithDollarSkip adds the dollarSkip to the ship international live position 3237 params
func (*ShipInternationalLivePosition3237Params) WithDollarTop ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) WithDollarTop(dollarTop *int64) *ShipInternationalLivePosition3237Params
WithDollarTop adds the dollarTop to the ship international live position 3237 params
func (*ShipInternationalLivePosition3237Params) WithHTTPClient ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) WithHTTPClient(client *http.Client) *ShipInternationalLivePosition3237Params
WithHTTPClient adds the HTTPClient to the ship international live position 3237 params
func (*ShipInternationalLivePosition3237Params) WithHealth ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) WithHealth(health *string) *ShipInternationalLivePosition3237Params
WithHealth adds the health to the ship international live position 3237 params
func (*ShipInternationalLivePosition3237Params) WithTimeout ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) WithTimeout(timeout time.Duration) *ShipInternationalLivePosition3237Params
WithTimeout adds the timeout to the ship international live position 3237 params
func (*ShipInternationalLivePosition3237Params) WriteToRequest ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ShipInternationalLivePosition3237Reader ¶ added in v0.15.0
type ShipInternationalLivePosition3237Reader struct {
// contains filtered or unexported fields
}
ShipInternationalLivePosition3237Reader is a Reader for the ShipInternationalLivePosition3237 structure.
func (*ShipInternationalLivePosition3237Reader) ReadResponse ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ShipInternationalLivePosition3237Status299 ¶ added in v0.15.0
type ShipInternationalLivePosition3237Status299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
ShipInternationalLivePosition3237Status299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewShipInternationalLivePosition3237Status299 ¶ added in v0.15.0
func NewShipInternationalLivePosition3237Status299() *ShipInternationalLivePosition3237Status299
NewShipInternationalLivePosition3237Status299 creates a ShipInternationalLivePosition3237Status299 with default headers values
func (*ShipInternationalLivePosition3237Status299) Error ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Status299) Error() string
func (*ShipInternationalLivePosition3237Status299) GetPayload ¶ added in v0.15.0
func (o *ShipInternationalLivePosition3237Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth