Documentation
¶
Index ¶
- type Client
- type ClientService
- type GetStatusBadRequest
- type GetStatusEnhanceYourCalm
- type GetStatusGatewayTimeout
- type GetStatusInternalServerError
- type GetStatusNotModified
- type GetStatusOK
- type GetStatusOKBody
- type GetStatusParams
- func (o *GetStatusParams) SetContext(ctx context.Context)
- func (o *GetStatusParams) SetDatasource(datasource *string)
- func (o *GetStatusParams) SetHTTPClient(client *http.Client)
- func (o *GetStatusParams) SetIfNoneMatch(ifNoneMatch *string)
- func (o *GetStatusParams) SetTimeout(timeout time.Duration)
- func (o *GetStatusParams) WithContext(ctx context.Context) *GetStatusParams
- func (o *GetStatusParams) WithDatasource(datasource *string) *GetStatusParams
- func (o *GetStatusParams) WithHTTPClient(client *http.Client) *GetStatusParams
- func (o *GetStatusParams) WithIfNoneMatch(ifNoneMatch *string) *GetStatusParams
- func (o *GetStatusParams) WithTimeout(timeout time.Duration) *GetStatusParams
- func (o *GetStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetStatusReader
- type GetStatusServiceUnavailable
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 status API
func (*Client) GetStatus ¶
func (a *Client) GetStatus(params *GetStatusParams) (*GetStatusOK, error)
GetStatus retrieves the uptime and player counts EVE Server status
---
This route is cached for up to 30 seconds
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface {
GetStatus(params *GetStatusParams) (*GetStatusOK, 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 status API client.
type GetStatusBadRequest ¶
type GetStatusBadRequest struct {
Payload *esimodels.BadRequest
}
GetStatusBadRequest handles this case with default header values.
Bad request
func NewGetStatusBadRequest ¶
func NewGetStatusBadRequest() *GetStatusBadRequest
NewGetStatusBadRequest creates a GetStatusBadRequest with default headers values
func (*GetStatusBadRequest) Error ¶
func (o *GetStatusBadRequest) Error() string
func (*GetStatusBadRequest) GetPayload ¶
func (o *GetStatusBadRequest) GetPayload() *esimodels.BadRequest
type GetStatusEnhanceYourCalm ¶
type GetStatusEnhanceYourCalm struct {
Payload *esimodels.ErrorLimited
}
GetStatusEnhanceYourCalm handles this case with default header values.
Error limited
func NewGetStatusEnhanceYourCalm ¶
func NewGetStatusEnhanceYourCalm() *GetStatusEnhanceYourCalm
NewGetStatusEnhanceYourCalm creates a GetStatusEnhanceYourCalm with default headers values
func (*GetStatusEnhanceYourCalm) Error ¶
func (o *GetStatusEnhanceYourCalm) Error() string
func (*GetStatusEnhanceYourCalm) GetPayload ¶
func (o *GetStatusEnhanceYourCalm) GetPayload() *esimodels.ErrorLimited
type GetStatusGatewayTimeout ¶
type GetStatusGatewayTimeout struct {
Payload *esimodels.GatewayTimeout
}
GetStatusGatewayTimeout handles this case with default header values.
Gateway timeout
func NewGetStatusGatewayTimeout ¶
func NewGetStatusGatewayTimeout() *GetStatusGatewayTimeout
NewGetStatusGatewayTimeout creates a GetStatusGatewayTimeout with default headers values
func (*GetStatusGatewayTimeout) Error ¶
func (o *GetStatusGatewayTimeout) Error() string
func (*GetStatusGatewayTimeout) GetPayload ¶
func (o *GetStatusGatewayTimeout) GetPayload() *esimodels.GatewayTimeout
type GetStatusInternalServerError ¶
type GetStatusInternalServerError struct {
Payload *esimodels.InternalServerError
}
GetStatusInternalServerError handles this case with default header values.
Internal server error
func NewGetStatusInternalServerError ¶
func NewGetStatusInternalServerError() *GetStatusInternalServerError
NewGetStatusInternalServerError creates a GetStatusInternalServerError with default headers values
func (*GetStatusInternalServerError) Error ¶
func (o *GetStatusInternalServerError) Error() string
func (*GetStatusInternalServerError) GetPayload ¶
func (o *GetStatusInternalServerError) GetPayload() *esimodels.InternalServerError
type GetStatusNotModified ¶
type GetStatusNotModified struct {
/*The caching mechanism used
*/
CacheControl string
/*RFC7232 compliant entity tag
*/
ETag string
/*RFC7231 formatted datetime string
*/
Expires string
/*RFC7231 formatted datetime string
*/
LastModified string
}
GetStatusNotModified handles this case with default header values.
Not modified
func NewGetStatusNotModified ¶
func NewGetStatusNotModified() *GetStatusNotModified
NewGetStatusNotModified creates a GetStatusNotModified with default headers values
func (*GetStatusNotModified) Error ¶
func (o *GetStatusNotModified) Error() string
type GetStatusOK ¶
type GetStatusOK struct {
/*The caching mechanism used
*/
CacheControl string
/*RFC7232 compliant entity tag
*/
ETag string
/*RFC7231 formatted datetime string
*/
Expires string
/*RFC7231 formatted datetime string
*/
LastModified string
Payload *GetStatusOKBody
}
GetStatusOK handles this case with default header values.
Server status
func NewGetStatusOK ¶
func NewGetStatusOK() *GetStatusOK
NewGetStatusOK creates a GetStatusOK with default headers values
func (*GetStatusOK) Error ¶
func (o *GetStatusOK) Error() string
func (*GetStatusOK) GetPayload ¶
func (o *GetStatusOK) GetPayload() *GetStatusOKBody
type GetStatusOKBody ¶
type GetStatusOKBody struct {
// get_status_players
//
// Current online player count
// Required: true
Players *int64 `json:"players"`
// get_status_server_version
//
// Running version as string
// Required: true
ServerVersion *string `json:"server_version"`
// get_status_start_time
//
// Server start timestamp
// Required: true
// Format: date-time
StartTime *strfmt.DateTime `json:"start_time"`
// get_status_vip
//
// If the server is in VIP mode
Vip bool `json:"vip,omitempty"`
}
GetStatusOKBody get_status_ok // // 200 ok object swagger:model GetStatusOKBody
func (*GetStatusOKBody) MarshalBinary ¶
func (o *GetStatusOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetStatusOKBody) UnmarshalBinary ¶
func (o *GetStatusOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetStatusParams ¶
type GetStatusParams struct {
/*IfNoneMatch
ETag from a previous request. A 304 will be returned if this matches the current ETag
*/
IfNoneMatch *string
/*Datasource
The server name you would like data from
*/
Datasource *string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetStatusParams contains all the parameters to send to the API endpoint for the get status operation typically these are written to a http.Request
func NewGetStatusParams ¶
func NewGetStatusParams() *GetStatusParams
NewGetStatusParams creates a new GetStatusParams object with the default values initialized.
func NewGetStatusParamsWithContext ¶
func NewGetStatusParamsWithContext(ctx context.Context) *GetStatusParams
NewGetStatusParamsWithContext creates a new GetStatusParams object with the default values initialized, and the ability to set a context for a request
func NewGetStatusParamsWithHTTPClient ¶
func NewGetStatusParamsWithHTTPClient(client *http.Client) *GetStatusParams
NewGetStatusParamsWithHTTPClient creates a new GetStatusParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetStatusParamsWithTimeout ¶
func NewGetStatusParamsWithTimeout(timeout time.Duration) *GetStatusParams
NewGetStatusParamsWithTimeout creates a new GetStatusParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetStatusParams) SetContext ¶
func (o *GetStatusParams) SetContext(ctx context.Context)
SetContext adds the context to the get status params
func (*GetStatusParams) SetDatasource ¶
func (o *GetStatusParams) SetDatasource(datasource *string)
SetDatasource adds the datasource to the get status params
func (*GetStatusParams) SetHTTPClient ¶
func (o *GetStatusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get status params
func (*GetStatusParams) SetIfNoneMatch ¶
func (o *GetStatusParams) SetIfNoneMatch(ifNoneMatch *string)
SetIfNoneMatch adds the ifNoneMatch to the get status params
func (*GetStatusParams) SetTimeout ¶
func (o *GetStatusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get status params
func (*GetStatusParams) WithContext ¶
func (o *GetStatusParams) WithContext(ctx context.Context) *GetStatusParams
WithContext adds the context to the get status params
func (*GetStatusParams) WithDatasource ¶
func (o *GetStatusParams) WithDatasource(datasource *string) *GetStatusParams
WithDatasource adds the datasource to the get status params
func (*GetStatusParams) WithHTTPClient ¶
func (o *GetStatusParams) WithHTTPClient(client *http.Client) *GetStatusParams
WithHTTPClient adds the HTTPClient to the get status params
func (*GetStatusParams) WithIfNoneMatch ¶
func (o *GetStatusParams) WithIfNoneMatch(ifNoneMatch *string) *GetStatusParams
WithIfNoneMatch adds the ifNoneMatch to the get status params
func (*GetStatusParams) WithTimeout ¶
func (o *GetStatusParams) WithTimeout(timeout time.Duration) *GetStatusParams
WithTimeout adds the timeout to the get status params
func (*GetStatusParams) WriteToRequest ¶
func (o *GetStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetStatusReader ¶
type GetStatusReader struct {
// contains filtered or unexported fields
}
GetStatusReader is a Reader for the GetStatus structure.
func (*GetStatusReader) ReadResponse ¶
func (o *GetStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetStatusServiceUnavailable ¶
type GetStatusServiceUnavailable struct {
}
GetStatusServiceUnavailable handles this case with default header values.
Service unavailable
func NewGetStatusServiceUnavailable ¶
func NewGetStatusServiceUnavailable() *GetStatusServiceUnavailable
NewGetStatusServiceUnavailable creates a GetStatusServiceUnavailable with default headers values
func (*GetStatusServiceUnavailable) Error ¶
func (o *GetStatusServiceUnavailable) Error() string
func (*GetStatusServiceUnavailable) GetPayload ¶
func (o *GetStatusServiceUnavailable) GetPayload() *esimodels.ServiceUnavailable