status

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 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) (*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 *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) Error

func (o *GetStatusBadRequest) Error() string

func (*GetStatusBadRequest) GetPayload

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

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) Error

func (o *GetStatusEnhanceYourCalm) Error() string

func (*GetStatusEnhanceYourCalm) GetPayload

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

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) Error

func (o *GetStatusGatewayTimeout) Error() string

func (*GetStatusGatewayTimeout) GetPayload

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) Error

func (*GetStatusInternalServerError) GetPayload

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) 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 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) 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) 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) Error

func (*GetStatusServiceUnavailable) GetPayload

Jump to

Keyboard shortcuts

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