status

package
v0.0.0-...-b9aa217 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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, opts ...ClientOption) (*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 ClientOption added in v0.4.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetStatus(params *GetStatusParams, opts ...ClientOption) (*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 *models.BadRequest
}

GetStatusBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetStatusBadRequest

func NewGetStatusBadRequest() *GetStatusBadRequest

NewGetStatusBadRequest creates a GetStatusBadRequest with default headers values

func (*GetStatusBadRequest) Code added in v0.5.29

func (o *GetStatusBadRequest) Code() int

Code gets the status code for the get status bad request response

func (*GetStatusBadRequest) Error

func (o *GetStatusBadRequest) Error() string

func (*GetStatusBadRequest) GetPayload

func (o *GetStatusBadRequest) GetPayload() *models.BadRequest

func (*GetStatusBadRequest) IsClientError added in v0.5.29

func (o *GetStatusBadRequest) IsClientError() bool

IsClientError returns true when this get status bad request response has a 4xx status code

func (*GetStatusBadRequest) IsCode added in v0.5.29

func (o *GetStatusBadRequest) IsCode(code int) bool

IsCode returns true when this get status bad request response a status code equal to that given

func (*GetStatusBadRequest) IsRedirect added in v0.5.29

func (o *GetStatusBadRequest) IsRedirect() bool

IsRedirect returns true when this get status bad request response has a 3xx status code

func (*GetStatusBadRequest) IsServerError added in v0.5.29

func (o *GetStatusBadRequest) IsServerError() bool

IsServerError returns true when this get status bad request response has a 5xx status code

func (*GetStatusBadRequest) IsSuccess added in v0.5.29

func (o *GetStatusBadRequest) IsSuccess() bool

IsSuccess returns true when this get status bad request response has a 2xx status code

func (*GetStatusBadRequest) String added in v0.5.29

func (o *GetStatusBadRequest) String() string

type GetStatusEnhanceYourCalm

type GetStatusEnhanceYourCalm struct {
	Payload *models.ErrorLimited
}

GetStatusEnhanceYourCalm describes a response with status code 420, with default header values.

Error limited

func NewGetStatusEnhanceYourCalm

func NewGetStatusEnhanceYourCalm() *GetStatusEnhanceYourCalm

NewGetStatusEnhanceYourCalm creates a GetStatusEnhanceYourCalm with default headers values

func (*GetStatusEnhanceYourCalm) Code added in v0.5.29

func (o *GetStatusEnhanceYourCalm) Code() int

Code gets the status code for the get status enhance your calm response

func (*GetStatusEnhanceYourCalm) Error

func (o *GetStatusEnhanceYourCalm) Error() string

func (*GetStatusEnhanceYourCalm) GetPayload

func (o *GetStatusEnhanceYourCalm) GetPayload() *models.ErrorLimited

func (*GetStatusEnhanceYourCalm) IsClientError added in v0.5.29

func (o *GetStatusEnhanceYourCalm) IsClientError() bool

IsClientError returns true when this get status enhance your calm response has a 4xx status code

func (*GetStatusEnhanceYourCalm) IsCode added in v0.5.29

func (o *GetStatusEnhanceYourCalm) IsCode(code int) bool

IsCode returns true when this get status enhance your calm response a status code equal to that given

func (*GetStatusEnhanceYourCalm) IsRedirect added in v0.5.29

func (o *GetStatusEnhanceYourCalm) IsRedirect() bool

IsRedirect returns true when this get status enhance your calm response has a 3xx status code

func (*GetStatusEnhanceYourCalm) IsServerError added in v0.5.29

func (o *GetStatusEnhanceYourCalm) IsServerError() bool

IsServerError returns true when this get status enhance your calm response has a 5xx status code

func (*GetStatusEnhanceYourCalm) IsSuccess added in v0.5.29

func (o *GetStatusEnhanceYourCalm) IsSuccess() bool

IsSuccess returns true when this get status enhance your calm response has a 2xx status code

func (*GetStatusEnhanceYourCalm) String added in v0.5.29

func (o *GetStatusEnhanceYourCalm) String() string

type GetStatusGatewayTimeout

type GetStatusGatewayTimeout struct {
	Payload *models.GatewayTimeout
}

GetStatusGatewayTimeout describes a response with status code 504, with default header values.

Gateway timeout

func NewGetStatusGatewayTimeout

func NewGetStatusGatewayTimeout() *GetStatusGatewayTimeout

NewGetStatusGatewayTimeout creates a GetStatusGatewayTimeout with default headers values

func (*GetStatusGatewayTimeout) Code added in v0.5.29

func (o *GetStatusGatewayTimeout) Code() int

Code gets the status code for the get status gateway timeout response

func (*GetStatusGatewayTimeout) Error

func (o *GetStatusGatewayTimeout) Error() string

func (*GetStatusGatewayTimeout) GetPayload

func (*GetStatusGatewayTimeout) IsClientError added in v0.5.29

func (o *GetStatusGatewayTimeout) IsClientError() bool

IsClientError returns true when this get status gateway timeout response has a 4xx status code

func (*GetStatusGatewayTimeout) IsCode added in v0.5.29

func (o *GetStatusGatewayTimeout) IsCode(code int) bool

IsCode returns true when this get status gateway timeout response a status code equal to that given

func (*GetStatusGatewayTimeout) IsRedirect added in v0.5.29

func (o *GetStatusGatewayTimeout) IsRedirect() bool

IsRedirect returns true when this get status gateway timeout response has a 3xx status code

func (*GetStatusGatewayTimeout) IsServerError added in v0.5.29

func (o *GetStatusGatewayTimeout) IsServerError() bool

IsServerError returns true when this get status gateway timeout response has a 5xx status code

func (*GetStatusGatewayTimeout) IsSuccess added in v0.5.29

func (o *GetStatusGatewayTimeout) IsSuccess() bool

IsSuccess returns true when this get status gateway timeout response has a 2xx status code

func (*GetStatusGatewayTimeout) String added in v0.5.29

func (o *GetStatusGatewayTimeout) String() string

type GetStatusInternalServerError

type GetStatusInternalServerError struct {
	Payload *models.InternalServerError
}

GetStatusInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetStatusInternalServerError

func NewGetStatusInternalServerError() *GetStatusInternalServerError

NewGetStatusInternalServerError creates a GetStatusInternalServerError with default headers values

func (*GetStatusInternalServerError) Code added in v0.5.29

Code gets the status code for the get status internal server error response

func (*GetStatusInternalServerError) Error

func (*GetStatusInternalServerError) GetPayload

func (*GetStatusInternalServerError) IsClientError added in v0.5.29

func (o *GetStatusInternalServerError) IsClientError() bool

IsClientError returns true when this get status internal server error response has a 4xx status code

func (*GetStatusInternalServerError) IsCode added in v0.5.29

func (o *GetStatusInternalServerError) IsCode(code int) bool

IsCode returns true when this get status internal server error response a status code equal to that given

func (*GetStatusInternalServerError) IsRedirect added in v0.5.29

func (o *GetStatusInternalServerError) IsRedirect() bool

IsRedirect returns true when this get status internal server error response has a 3xx status code

func (*GetStatusInternalServerError) IsServerError added in v0.5.29

func (o *GetStatusInternalServerError) IsServerError() bool

IsServerError returns true when this get status internal server error response has a 5xx status code

func (*GetStatusInternalServerError) IsSuccess added in v0.5.29

func (o *GetStatusInternalServerError) IsSuccess() bool

IsSuccess returns true when this get status internal server error response has a 2xx status code

func (*GetStatusInternalServerError) String added in v0.5.29

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 describes a response with status code 304, with default header values.

Not modified

func NewGetStatusNotModified

func NewGetStatusNotModified() *GetStatusNotModified

NewGetStatusNotModified creates a GetStatusNotModified with default headers values

func (*GetStatusNotModified) Code added in v0.5.29

func (o *GetStatusNotModified) Code() int

Code gets the status code for the get status not modified response

func (*GetStatusNotModified) Error

func (o *GetStatusNotModified) Error() string

func (*GetStatusNotModified) IsClientError added in v0.5.29

func (o *GetStatusNotModified) IsClientError() bool

IsClientError returns true when this get status not modified response has a 4xx status code

func (*GetStatusNotModified) IsCode added in v0.5.29

func (o *GetStatusNotModified) IsCode(code int) bool

IsCode returns true when this get status not modified response a status code equal to that given

func (*GetStatusNotModified) IsRedirect added in v0.5.29

func (o *GetStatusNotModified) IsRedirect() bool

IsRedirect returns true when this get status not modified response has a 3xx status code

func (*GetStatusNotModified) IsServerError added in v0.5.29

func (o *GetStatusNotModified) IsServerError() bool

IsServerError returns true when this get status not modified response has a 5xx status code

func (*GetStatusNotModified) IsSuccess added in v0.5.29

func (o *GetStatusNotModified) IsSuccess() bool

IsSuccess returns true when this get status not modified response has a 2xx status code

func (*GetStatusNotModified) String added in v0.5.29

func (o *GetStatusNotModified) String() 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 describes a response with status code 200, with default header values.

Server status

func NewGetStatusOK

func NewGetStatusOK() *GetStatusOK

NewGetStatusOK creates a GetStatusOK with default headers values

func (*GetStatusOK) Code added in v0.5.29

func (o *GetStatusOK) Code() int

Code gets the status code for the get status o k response

func (*GetStatusOK) Error

func (o *GetStatusOK) Error() string

func (*GetStatusOK) GetPayload

func (o *GetStatusOK) GetPayload() *GetStatusOKBody

func (*GetStatusOK) IsClientError added in v0.5.29

func (o *GetStatusOK) IsClientError() bool

IsClientError returns true when this get status o k response has a 4xx status code

func (*GetStatusOK) IsCode added in v0.5.29

func (o *GetStatusOK) IsCode(code int) bool

IsCode returns true when this get status o k response a status code equal to that given

func (*GetStatusOK) IsRedirect added in v0.5.29

func (o *GetStatusOK) IsRedirect() bool

IsRedirect returns true when this get status o k response has a 3xx status code

func (*GetStatusOK) IsServerError added in v0.5.29

func (o *GetStatusOK) IsServerError() bool

IsServerError returns true when this get status o k response has a 5xx status code

func (*GetStatusOK) IsSuccess added in v0.5.29

func (o *GetStatusOK) IsSuccess() bool

IsSuccess returns true when this get status o k response has a 2xx status code

func (*GetStatusOK) String added in v0.5.29

func (o *GetStatusOK) String() string

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) ContextValidate added in v0.3.0

func (o *GetStatusOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get status o k body based on context it is used

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

func (*GetStatusOKBody) Validate

func (o *GetStatusOKBody) Validate(formats strfmt.Registry) error

Validate validates this get status o k body

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

	   Default: "tranquility"
	*/
	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 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 NewGetStatusParamsWithContext

func NewGetStatusParamsWithContext(ctx context.Context) *GetStatusParams

NewGetStatusParamsWithContext creates a new GetStatusParams object with 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 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 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) SetDefaults added in v0.3.0

func (o *GetStatusParams) SetDefaults()

SetDefaults hydrates default values in the get status params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults added in v0.3.0

func (o *GetStatusParams) WithDefaults() *GetStatusParams

WithDefaults hydrates default values in the get status params (not the query body).

All values with no default are reset to their zero value.

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 {
	Payload *models.ServiceUnavailable
}

GetStatusServiceUnavailable describes a response with status code 503, with default header values.

Service unavailable

func NewGetStatusServiceUnavailable

func NewGetStatusServiceUnavailable() *GetStatusServiceUnavailable

NewGetStatusServiceUnavailable creates a GetStatusServiceUnavailable with default headers values

func (*GetStatusServiceUnavailable) Code added in v0.5.29

func (o *GetStatusServiceUnavailable) Code() int

Code gets the status code for the get status service unavailable response

func (*GetStatusServiceUnavailable) Error

func (*GetStatusServiceUnavailable) GetPayload

func (*GetStatusServiceUnavailable) IsClientError added in v0.5.29

func (o *GetStatusServiceUnavailable) IsClientError() bool

IsClientError returns true when this get status service unavailable response has a 4xx status code

func (*GetStatusServiceUnavailable) IsCode added in v0.5.29

func (o *GetStatusServiceUnavailable) IsCode(code int) bool

IsCode returns true when this get status service unavailable response a status code equal to that given

func (*GetStatusServiceUnavailable) IsRedirect added in v0.5.29

func (o *GetStatusServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this get status service unavailable response has a 3xx status code

func (*GetStatusServiceUnavailable) IsServerError added in v0.5.29

func (o *GetStatusServiceUnavailable) IsServerError() bool

IsServerError returns true when this get status service unavailable response has a 5xx status code

func (*GetStatusServiceUnavailable) IsSuccess added in v0.5.29

func (o *GetStatusServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this get status service unavailable response has a 2xx status code

func (*GetStatusServiceUnavailable) String added in v0.5.29

func (o *GetStatusServiceUnavailable) String() string

Jump to

Keyboard shortcuts

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