Documentation ¶
Index ¶
- type Client
- func (a *Client) ListServer(params *ListServerParams, authInfo runtime.ClientAuthInfoWriter) (*ListServerOK, *ListServerInternalServerError, error)
- func (a *Client) ListServerPerNamespace(params *ListServerPerNamespaceParams, authInfo runtime.ClientAuthInfoWriter) (*ListServerPerNamespaceOK, *ListServerPerNamespaceInternalServerError, error)
- func (a *Client) ListServerPerNamespaceShort(params *ListServerPerNamespaceParams, authInfo runtime.ClientAuthInfoWriter) (*ListServerPerNamespaceOK, error)
- func (a *Client) ListServerShort(params *ListServerParams, authInfo runtime.ClientAuthInfoWriter) (*ListServerOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type ListServerInternalServerError
- type ListServerOK
- type ListServerParams
- func (o *ListServerParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *ListServerParams) SetContext(ctx context.Context)
- func (o *ListServerParams) SetHTTPClient(client *http.Client)
- func (o *ListServerParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *ListServerParams) SetTimeout(timeout time.Duration)
- func (o *ListServerParams) WithContext(ctx context.Context) *ListServerParams
- func (o *ListServerParams) WithHTTPClient(client *http.Client) *ListServerParams
- func (o *ListServerParams) WithTimeout(timeout time.Duration) *ListServerParams
- func (o *ListServerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListServerPerNamespaceInternalServerError
- type ListServerPerNamespaceOK
- type ListServerPerNamespaceParams
- func NewListServerPerNamespaceParams() *ListServerPerNamespaceParams
- func NewListServerPerNamespaceParamsWithContext(ctx context.Context) *ListServerPerNamespaceParams
- func NewListServerPerNamespaceParamsWithHTTPClient(client *http.Client) *ListServerPerNamespaceParams
- func NewListServerPerNamespaceParamsWithTimeout(timeout time.Duration) *ListServerPerNamespaceParams
- func (o *ListServerPerNamespaceParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *ListServerPerNamespaceParams) SetContext(ctx context.Context)
- func (o *ListServerPerNamespaceParams) SetHTTPClient(client *http.Client)
- func (o *ListServerPerNamespaceParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *ListServerPerNamespaceParams) SetNamespace(namespace string)
- func (o *ListServerPerNamespaceParams) SetStatus(status *string)
- func (o *ListServerPerNamespaceParams) SetTimeout(timeout time.Duration)
- func (o *ListServerPerNamespaceParams) WithContext(ctx context.Context) *ListServerPerNamespaceParams
- func (o *ListServerPerNamespaceParams) WithHTTPClient(client *http.Client) *ListServerPerNamespaceParams
- func (o *ListServerPerNamespaceParams) WithNamespace(namespace string) *ListServerPerNamespaceParams
- func (o *ListServerPerNamespaceParams) WithStatus(status *string) *ListServerPerNamespaceParams
- func (o *ListServerPerNamespaceParams) WithTimeout(timeout time.Duration) *ListServerPerNamespaceParams
- func (o *ListServerPerNamespaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListServerPerNamespaceReader
- type ListServerReader
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 public API
func (*Client) ListServer ¶
func (a *Client) ListServer(params *ListServerParams, authInfo runtime.ClientAuthInfoWriter) (*ListServerOK, *ListServerInternalServerError, error)
ListServer gets list of qo s services ```
This endpoint lists all QoS services available in all regions.
This endpoint is intended to be called by game client to find out all available regions. After getting a list of QoS on each region, game client is expected to ping each one with UDP connection as described below:
1. Make UDP connection to each QoS's IP:Port 2. Send string "PING" after connection established 3. Wait for string "PONG" response 4. Note the request-response latency for each QoS in each region
The game then can use ping latency information to either:
- Inform the player on these latencies and let player choose preferred region
- Send the latency list to Matchmaking Service so that player can be matched with other players in nearby regions
```
func (*Client) ListServerPerNamespace ¶ added in v0.20.0
func (a *Client) ListServerPerNamespace(params *ListServerPerNamespaceParams, authInfo runtime.ClientAuthInfoWriter) (*ListServerPerNamespaceOK, *ListServerPerNamespaceInternalServerError, error)
ListServerPerNamespace gets list of qo s services per region ```
This endpoint lists all QoS services available in all regions.
This endpoint is intended to be called by game client to find out all available regions. After getting a list of QoS on each region, game client is expected to ping each one with UDP connection as described below:
1. Make UDP connection to each QoS's IP:Port 2. Send string "PING" after connection established 3. Wait for string "PONG" response 4. Note the request-response latency for each QoS in each region
The game then can use ping latency information to either:
- Inform the player on these latencies and let player choose preferred region
- Send the latency list to Matchmaking Service so that player can be matched with other players in nearby regions
```
func (*Client) ListServerPerNamespaceShort ¶ added in v0.20.0
func (a *Client) ListServerPerNamespaceShort(params *ListServerPerNamespaceParams, authInfo runtime.ClientAuthInfoWriter) (*ListServerPerNamespaceOK, error)
func (*Client) ListServerShort ¶ added in v0.8.0
func (a *Client) ListServerShort(params *ListServerParams, authInfo runtime.ClientAuthInfoWriter) (*ListServerOK, error)
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { ListServer(params *ListServerParams, authInfo runtime.ClientAuthInfoWriter) (*ListServerOK, *ListServerInternalServerError, error) ListServerShort(params *ListServerParams, authInfo runtime.ClientAuthInfoWriter) (*ListServerOK, error) ListServerPerNamespace(params *ListServerPerNamespaceParams, authInfo runtime.ClientAuthInfoWriter) (*ListServerPerNamespaceOK, *ListServerPerNamespaceInternalServerError, error) ListServerPerNamespaceShort(params *ListServerPerNamespaceParams, authInfo runtime.ClientAuthInfoWriter) (*ListServerPerNamespaceOK, 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 public API client.
type ListServerInternalServerError ¶
type ListServerInternalServerError struct {
Payload *qosmclientmodels.ResponseError
}
ListServerInternalServerError handles this case with default header values.
Internal Server Error
func NewListServerInternalServerError ¶
func NewListServerInternalServerError() *ListServerInternalServerError
NewListServerInternalServerError creates a ListServerInternalServerError with default headers values
func (*ListServerInternalServerError) Error ¶
func (o *ListServerInternalServerError) Error() string
func (*ListServerInternalServerError) GetPayload ¶
func (o *ListServerInternalServerError) GetPayload() *qosmclientmodels.ResponseError
type ListServerOK ¶
type ListServerOK struct {
Payload *qosmclientmodels.ModelsListServerResponse
}
ListServerOK handles this case with default header values.
list of QoS services returned
func NewListServerOK ¶
func NewListServerOK() *ListServerOK
NewListServerOK creates a ListServerOK with default headers values
func (*ListServerOK) Error ¶
func (o *ListServerOK) Error() string
func (*ListServerOK) GetPayload ¶
func (o *ListServerOK) GetPayload() *qosmclientmodels.ModelsListServerResponse
type ListServerParams ¶
type ListServerParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListServerParams contains all the parameters to send to the API endpoint for the list server operation typically these are written to a http.Request
func NewListServerParams ¶
func NewListServerParams() *ListServerParams
NewListServerParams creates a new ListServerParams object with the default values initialized.
func NewListServerParamsWithContext ¶
func NewListServerParamsWithContext(ctx context.Context) *ListServerParams
NewListServerParamsWithContext creates a new ListServerParams object with the default values initialized, and the ability to set a context for a request
func NewListServerParamsWithHTTPClient ¶
func NewListServerParamsWithHTTPClient(client *http.Client) *ListServerParams
NewListServerParamsWithHTTPClient creates a new ListServerParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListServerParamsWithTimeout ¶
func NewListServerParamsWithTimeout(timeout time.Duration) *ListServerParams
NewListServerParamsWithTimeout creates a new ListServerParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListServerParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *ListServerParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the list server params
func (*ListServerParams) SetContext ¶
func (o *ListServerParams) SetContext(ctx context.Context)
SetContext adds the context to the list server params
func (*ListServerParams) SetHTTPClient ¶
func (o *ListServerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list server params
func (*ListServerParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *ListServerParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the list server params
func (*ListServerParams) SetTimeout ¶
func (o *ListServerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list server params
func (*ListServerParams) WithContext ¶
func (o *ListServerParams) WithContext(ctx context.Context) *ListServerParams
WithContext adds the context to the list server params
func (*ListServerParams) WithHTTPClient ¶
func (o *ListServerParams) WithHTTPClient(client *http.Client) *ListServerParams
WithHTTPClient adds the HTTPClient to the list server params
func (*ListServerParams) WithTimeout ¶
func (o *ListServerParams) WithTimeout(timeout time.Duration) *ListServerParams
WithTimeout adds the timeout to the list server params
func (*ListServerParams) WriteToRequest ¶
func (o *ListServerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListServerPerNamespaceInternalServerError ¶ added in v0.20.0
type ListServerPerNamespaceInternalServerError struct {
Payload *qosmclientmodels.ResponseError
}
ListServerPerNamespaceInternalServerError handles this case with default header values.
Internal Server Error
func NewListServerPerNamespaceInternalServerError ¶ added in v0.20.0
func NewListServerPerNamespaceInternalServerError() *ListServerPerNamespaceInternalServerError
NewListServerPerNamespaceInternalServerError creates a ListServerPerNamespaceInternalServerError with default headers values
func (*ListServerPerNamespaceInternalServerError) Error ¶ added in v0.20.0
func (o *ListServerPerNamespaceInternalServerError) Error() string
func (*ListServerPerNamespaceInternalServerError) GetPayload ¶ added in v0.20.0
func (o *ListServerPerNamespaceInternalServerError) GetPayload() *qosmclientmodels.ResponseError
type ListServerPerNamespaceOK ¶ added in v0.20.0
type ListServerPerNamespaceOK struct {
Payload *qosmclientmodels.ModelsListServerResponse
}
ListServerPerNamespaceOK handles this case with default header values.
list of QoS services returned
func NewListServerPerNamespaceOK ¶ added in v0.20.0
func NewListServerPerNamespaceOK() *ListServerPerNamespaceOK
NewListServerPerNamespaceOK creates a ListServerPerNamespaceOK with default headers values
func (*ListServerPerNamespaceOK) Error ¶ added in v0.20.0
func (o *ListServerPerNamespaceOK) Error() string
func (*ListServerPerNamespaceOK) GetPayload ¶ added in v0.20.0
func (o *ListServerPerNamespaceOK) GetPayload() *qosmclientmodels.ModelsListServerResponse
type ListServerPerNamespaceParams ¶ added in v0.20.0
type ListServerPerNamespaceParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Namespace namespace of the QoS */ Namespace string /*Status QoS status, available value: ACTIVE, INACTIVE, UNREACHABLE */ Status *string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListServerPerNamespaceParams contains all the parameters to send to the API endpoint for the list server per namespace operation typically these are written to a http.Request
func NewListServerPerNamespaceParams ¶ added in v0.20.0
func NewListServerPerNamespaceParams() *ListServerPerNamespaceParams
NewListServerPerNamespaceParams creates a new ListServerPerNamespaceParams object with the default values initialized.
func NewListServerPerNamespaceParamsWithContext ¶ added in v0.20.0
func NewListServerPerNamespaceParamsWithContext(ctx context.Context) *ListServerPerNamespaceParams
NewListServerPerNamespaceParamsWithContext creates a new ListServerPerNamespaceParams object with the default values initialized, and the ability to set a context for a request
func NewListServerPerNamespaceParamsWithHTTPClient ¶ added in v0.20.0
func NewListServerPerNamespaceParamsWithHTTPClient(client *http.Client) *ListServerPerNamespaceParams
NewListServerPerNamespaceParamsWithHTTPClient creates a new ListServerPerNamespaceParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListServerPerNamespaceParamsWithTimeout ¶ added in v0.20.0
func NewListServerPerNamespaceParamsWithTimeout(timeout time.Duration) *ListServerPerNamespaceParams
NewListServerPerNamespaceParamsWithTimeout creates a new ListServerPerNamespaceParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListServerPerNamespaceParams) SetAuthInfoWriter ¶ added in v0.20.0
func (o *ListServerPerNamespaceParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the list server per namespace params
func (*ListServerPerNamespaceParams) SetContext ¶ added in v0.20.0
func (o *ListServerPerNamespaceParams) SetContext(ctx context.Context)
SetContext adds the context to the list server per namespace params
func (*ListServerPerNamespaceParams) SetHTTPClient ¶ added in v0.20.0
func (o *ListServerPerNamespaceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list server per namespace params
func (*ListServerPerNamespaceParams) SetHTTPClientTransport ¶ added in v0.20.0
func (o *ListServerPerNamespaceParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the list server per namespace params
func (*ListServerPerNamespaceParams) SetNamespace ¶ added in v0.20.0
func (o *ListServerPerNamespaceParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the list server per namespace params
func (*ListServerPerNamespaceParams) SetStatus ¶ added in v0.20.0
func (o *ListServerPerNamespaceParams) SetStatus(status *string)
SetStatus adds the status to the list server per namespace params
func (*ListServerPerNamespaceParams) SetTimeout ¶ added in v0.20.0
func (o *ListServerPerNamespaceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list server per namespace params
func (*ListServerPerNamespaceParams) WithContext ¶ added in v0.20.0
func (o *ListServerPerNamespaceParams) WithContext(ctx context.Context) *ListServerPerNamespaceParams
WithContext adds the context to the list server per namespace params
func (*ListServerPerNamespaceParams) WithHTTPClient ¶ added in v0.20.0
func (o *ListServerPerNamespaceParams) WithHTTPClient(client *http.Client) *ListServerPerNamespaceParams
WithHTTPClient adds the HTTPClient to the list server per namespace params
func (*ListServerPerNamespaceParams) WithNamespace ¶ added in v0.20.0
func (o *ListServerPerNamespaceParams) WithNamespace(namespace string) *ListServerPerNamespaceParams
WithNamespace adds the namespace to the list server per namespace params
func (*ListServerPerNamespaceParams) WithStatus ¶ added in v0.20.0
func (o *ListServerPerNamespaceParams) WithStatus(status *string) *ListServerPerNamespaceParams
WithStatus adds the status to the list server per namespace params
func (*ListServerPerNamespaceParams) WithTimeout ¶ added in v0.20.0
func (o *ListServerPerNamespaceParams) WithTimeout(timeout time.Duration) *ListServerPerNamespaceParams
WithTimeout adds the timeout to the list server per namespace params
func (*ListServerPerNamespaceParams) WriteToRequest ¶ added in v0.20.0
func (o *ListServerPerNamespaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListServerPerNamespaceReader ¶ added in v0.20.0
type ListServerPerNamespaceReader struct {
// contains filtered or unexported fields
}
ListServerPerNamespaceReader is a Reader for the ListServerPerNamespace structure.
func (*ListServerPerNamespaceReader) ReadResponse ¶ added in v0.20.0
func (o *ListServerPerNamespaceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListServerReader ¶
type ListServerReader struct {
// contains filtered or unexported fields
}
ListServerReader is a Reader for the ListServer structure.
func (*ListServerReader) ReadResponse ¶
func (o *ListServerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.