Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteGameRecordHandlerV1(params *DeleteGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*DeleteGameRecordHandlerV1OK, *DeleteGameRecordHandlerV1InternalServerError, ...)
- func (a *Client) GetGameRecordHandlerV1(params *GetGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*GetGameRecordHandlerV1OK, *GetGameRecordHandlerV1InternalServerError, error)
- func (a *Client) PostGameRecordHandlerV1(params *PostGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*PostGameRecordHandlerV1OK, *PostGameRecordHandlerV1InternalServerError, error)
- func (a *Client) PutGameRecordHandlerV1(params *PutGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*PutGameRecordHandlerV1OK, *PutGameRecordHandlerV1InternalServerError, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type DeleteGameRecordHandlerV1Default
- type DeleteGameRecordHandlerV1InternalServerError
- type DeleteGameRecordHandlerV1OK
- type DeleteGameRecordHandlerV1Params
- func NewDeleteGameRecordHandlerV1Params() *DeleteGameRecordHandlerV1Params
- func NewDeleteGameRecordHandlerV1ParamsWithContext(ctx context.Context) *DeleteGameRecordHandlerV1Params
- func NewDeleteGameRecordHandlerV1ParamsWithHTTPClient(client *http.Client) *DeleteGameRecordHandlerV1Params
- func NewDeleteGameRecordHandlerV1ParamsWithTimeout(timeout time.Duration) *DeleteGameRecordHandlerV1Params
- func (o *DeleteGameRecordHandlerV1Params) SetContext(ctx context.Context)
- func (o *DeleteGameRecordHandlerV1Params) SetHTTPClient(client *http.Client)
- func (o *DeleteGameRecordHandlerV1Params) SetKey(key string)
- func (o *DeleteGameRecordHandlerV1Params) SetNamespace(namespace string)
- func (o *DeleteGameRecordHandlerV1Params) SetTimeout(timeout time.Duration)
- func (o *DeleteGameRecordHandlerV1Params) WithContext(ctx context.Context) *DeleteGameRecordHandlerV1Params
- func (o *DeleteGameRecordHandlerV1Params) WithHTTPClient(client *http.Client) *DeleteGameRecordHandlerV1Params
- func (o *DeleteGameRecordHandlerV1Params) WithKey(key string) *DeleteGameRecordHandlerV1Params
- func (o *DeleteGameRecordHandlerV1Params) WithNamespace(namespace string) *DeleteGameRecordHandlerV1Params
- func (o *DeleteGameRecordHandlerV1Params) WithTimeout(timeout time.Duration) *DeleteGameRecordHandlerV1Params
- func (o *DeleteGameRecordHandlerV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteGameRecordHandlerV1Reader
- type GetGameRecordHandlerV1Default
- type GetGameRecordHandlerV1InternalServerError
- type GetGameRecordHandlerV1OK
- type GetGameRecordHandlerV1Params
- func NewGetGameRecordHandlerV1Params() *GetGameRecordHandlerV1Params
- func NewGetGameRecordHandlerV1ParamsWithContext(ctx context.Context) *GetGameRecordHandlerV1Params
- func NewGetGameRecordHandlerV1ParamsWithHTTPClient(client *http.Client) *GetGameRecordHandlerV1Params
- func NewGetGameRecordHandlerV1ParamsWithTimeout(timeout time.Duration) *GetGameRecordHandlerV1Params
- func (o *GetGameRecordHandlerV1Params) SetContext(ctx context.Context)
- func (o *GetGameRecordHandlerV1Params) SetHTTPClient(client *http.Client)
- func (o *GetGameRecordHandlerV1Params) SetKey(key string)
- func (o *GetGameRecordHandlerV1Params) SetNamespace(namespace string)
- func (o *GetGameRecordHandlerV1Params) SetTimeout(timeout time.Duration)
- func (o *GetGameRecordHandlerV1Params) WithContext(ctx context.Context) *GetGameRecordHandlerV1Params
- func (o *GetGameRecordHandlerV1Params) WithHTTPClient(client *http.Client) *GetGameRecordHandlerV1Params
- func (o *GetGameRecordHandlerV1Params) WithKey(key string) *GetGameRecordHandlerV1Params
- func (o *GetGameRecordHandlerV1Params) WithNamespace(namespace string) *GetGameRecordHandlerV1Params
- func (o *GetGameRecordHandlerV1Params) WithTimeout(timeout time.Duration) *GetGameRecordHandlerV1Params
- func (o *GetGameRecordHandlerV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetGameRecordHandlerV1Reader
- type PostGameRecordHandlerV1Default
- type PostGameRecordHandlerV1InternalServerError
- type PostGameRecordHandlerV1OK
- type PostGameRecordHandlerV1Params
- func NewPostGameRecordHandlerV1Params() *PostGameRecordHandlerV1Params
- func NewPostGameRecordHandlerV1ParamsWithContext(ctx context.Context) *PostGameRecordHandlerV1Params
- func NewPostGameRecordHandlerV1ParamsWithHTTPClient(client *http.Client) *PostGameRecordHandlerV1Params
- func NewPostGameRecordHandlerV1ParamsWithTimeout(timeout time.Duration) *PostGameRecordHandlerV1Params
- func (o *PostGameRecordHandlerV1Params) SetBody(body cloudsaveclientmodels.ModelsGameRecordRequest)
- func (o *PostGameRecordHandlerV1Params) SetContext(ctx context.Context)
- func (o *PostGameRecordHandlerV1Params) SetHTTPClient(client *http.Client)
- func (o *PostGameRecordHandlerV1Params) SetKey(key string)
- func (o *PostGameRecordHandlerV1Params) SetNamespace(namespace string)
- func (o *PostGameRecordHandlerV1Params) SetTimeout(timeout time.Duration)
- func (o *PostGameRecordHandlerV1Params) WithBody(body cloudsaveclientmodels.ModelsGameRecordRequest) *PostGameRecordHandlerV1Params
- func (o *PostGameRecordHandlerV1Params) WithContext(ctx context.Context) *PostGameRecordHandlerV1Params
- func (o *PostGameRecordHandlerV1Params) WithHTTPClient(client *http.Client) *PostGameRecordHandlerV1Params
- func (o *PostGameRecordHandlerV1Params) WithKey(key string) *PostGameRecordHandlerV1Params
- func (o *PostGameRecordHandlerV1Params) WithNamespace(namespace string) *PostGameRecordHandlerV1Params
- func (o *PostGameRecordHandlerV1Params) WithTimeout(timeout time.Duration) *PostGameRecordHandlerV1Params
- func (o *PostGameRecordHandlerV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostGameRecordHandlerV1Reader
- type PutGameRecordHandlerV1Default
- type PutGameRecordHandlerV1InternalServerError
- type PutGameRecordHandlerV1OK
- type PutGameRecordHandlerV1Params
- func NewPutGameRecordHandlerV1Params() *PutGameRecordHandlerV1Params
- func NewPutGameRecordHandlerV1ParamsWithContext(ctx context.Context) *PutGameRecordHandlerV1Params
- func NewPutGameRecordHandlerV1ParamsWithHTTPClient(client *http.Client) *PutGameRecordHandlerV1Params
- func NewPutGameRecordHandlerV1ParamsWithTimeout(timeout time.Duration) *PutGameRecordHandlerV1Params
- func (o *PutGameRecordHandlerV1Params) SetBody(body cloudsaveclientmodels.ModelsGameRecordRequest)
- func (o *PutGameRecordHandlerV1Params) SetContext(ctx context.Context)
- func (o *PutGameRecordHandlerV1Params) SetHTTPClient(client *http.Client)
- func (o *PutGameRecordHandlerV1Params) SetKey(key string)
- func (o *PutGameRecordHandlerV1Params) SetNamespace(namespace string)
- func (o *PutGameRecordHandlerV1Params) SetTimeout(timeout time.Duration)
- func (o *PutGameRecordHandlerV1Params) WithBody(body cloudsaveclientmodels.ModelsGameRecordRequest) *PutGameRecordHandlerV1Params
- func (o *PutGameRecordHandlerV1Params) WithContext(ctx context.Context) *PutGameRecordHandlerV1Params
- func (o *PutGameRecordHandlerV1Params) WithHTTPClient(client *http.Client) *PutGameRecordHandlerV1Params
- func (o *PutGameRecordHandlerV1Params) WithKey(key string) *PutGameRecordHandlerV1Params
- func (o *PutGameRecordHandlerV1Params) WithNamespace(namespace string) *PutGameRecordHandlerV1Params
- func (o *PutGameRecordHandlerV1Params) WithTimeout(timeout time.Duration) *PutGameRecordHandlerV1Params
- func (o *PutGameRecordHandlerV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutGameRecordHandlerV1Reader
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 game record API
func (*Client) DeleteGameRecordHandlerV1 ¶
func (a *Client) DeleteGameRecordHandlerV1(params *DeleteGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*DeleteGameRecordHandlerV1OK, *DeleteGameRecordHandlerV1InternalServerError, error)
DeleteGameRecordHandlerV1 deletes game record <table> <tr> <td>Required Permission</td> <td><code>NAMESPACE:{namespace}:CLOUDSAVE:RECORD [DELETE]</code></td> </tr> <tr> <td>Required Scope</td> <td><code>social</code></td> </tr>
</table> <br/>
Delete records by its key
func (*Client) GetGameRecordHandlerV1 ¶
func (a *Client) GetGameRecordHandlerV1(params *GetGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*GetGameRecordHandlerV1OK, *GetGameRecordHandlerV1InternalServerError, error)
GetGameRecordHandlerV1 gets game record <table> <tr> <td>Required Permission</td> <td><code>NAMESPACE:{namespace}:CLOUDSAVE:RECORD [READ]</code></td> </tr> <tr> <td>Required Scope</td> <td><code>social</code></td> </tr>
</table> <br/>
Get game record by its key.
func (*Client) PostGameRecordHandlerV1 ¶
func (a *Client) PostGameRecordHandlerV1(params *PostGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*PostGameRecordHandlerV1OK, *PostGameRecordHandlerV1InternalServerError, error)
PostGameRecordHandlerV1 creates or append game record <table> <tr> <td>Required Permission</td> <td><code>NAMESPACE:{namespace}:CLOUDSAVE:RECORD [CREATE]</code></td> </tr> <tr> <td>Required Scope</td> <td><code>social</code></td> </tr>
</table> <br/>
If there's already record, the record will be merged with conditions: - If field name is already exist, the value will be replaced - If field name is not exists it will append the field and its value
Example:
Replace value in a specific JSON key <pre> // existed record
{ "foo": "bar" }
// new update (request body)
{ "foo": "barUpdated" }
// result
{ "foo": "barUpdated" }
</pre>
Append new json item <pre> // existed record
{ "foo": "bar" }
// new update (request body)
{ "foo_new": "bar_new" }
// result
{ "foo": "bar", "foo_new": "bar_new" }
</pre>
func (*Client) PutGameRecordHandlerV1 ¶
func (a *Client) PutGameRecordHandlerV1(params *PutGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*PutGameRecordHandlerV1OK, *PutGameRecordHandlerV1InternalServerError, error)
PutGameRecordHandlerV1 creates or replace game record <table> <tr> <td>Required Permission</td> <td><code>NAMESPACE:{namespace}:CLOUDSAVE:RECORD [UPDATE]</code></td> </tr> <tr> <td>Required Scope</td> <td><code>social</code></td> </tr>
</table> <br/>
If record already exists, it will be replaced with the one from request body (all fields will be deleted). If record is not exists, it will create a new one with value from request body.
Example:
Replace all records <pre>
// existed record { "foo": "bar" } // new update (request body) { "foo_new": "bar_new" } // result { "foo_new": "bar_new" }
</pre>
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { DeleteGameRecordHandlerV1(params *DeleteGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*DeleteGameRecordHandlerV1OK, *DeleteGameRecordHandlerV1InternalServerError, error) GetGameRecordHandlerV1(params *GetGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*GetGameRecordHandlerV1OK, *GetGameRecordHandlerV1InternalServerError, error) PostGameRecordHandlerV1(params *PostGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*PostGameRecordHandlerV1OK, *PostGameRecordHandlerV1InternalServerError, error) PutGameRecordHandlerV1(params *PutGameRecordHandlerV1Params, authInfo runtime.ClientAuthInfoWriter) (*PutGameRecordHandlerV1OK, *PutGameRecordHandlerV1InternalServerError, 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 game record API client.
type DeleteGameRecordHandlerV1Default ¶
type DeleteGameRecordHandlerV1Default struct {
// contains filtered or unexported fields
}
DeleteGameRecordHandlerV1Default handles this case with default header values.
Record deleted
func NewDeleteGameRecordHandlerV1Default ¶
func NewDeleteGameRecordHandlerV1Default(code int) *DeleteGameRecordHandlerV1Default
NewDeleteGameRecordHandlerV1Default creates a DeleteGameRecordHandlerV1Default with default headers values
func (*DeleteGameRecordHandlerV1Default) Code ¶
func (o *DeleteGameRecordHandlerV1Default) Code() int
Code gets the status code for the delete game record handler v1 default response
func (*DeleteGameRecordHandlerV1Default) Error ¶
func (o *DeleteGameRecordHandlerV1Default) Error() string
type DeleteGameRecordHandlerV1InternalServerError ¶
type DeleteGameRecordHandlerV1InternalServerError struct {
Payload *cloudsaveclientmodels.ResponseError
}
DeleteGameRecordHandlerV1InternalServerError handles this case with default header values.
Internal Server Error
func NewDeleteGameRecordHandlerV1InternalServerError ¶
func NewDeleteGameRecordHandlerV1InternalServerError() *DeleteGameRecordHandlerV1InternalServerError
NewDeleteGameRecordHandlerV1InternalServerError creates a DeleteGameRecordHandlerV1InternalServerError with default headers values
func (*DeleteGameRecordHandlerV1InternalServerError) Error ¶
func (o *DeleteGameRecordHandlerV1InternalServerError) Error() string
func (*DeleteGameRecordHandlerV1InternalServerError) GetPayload ¶
func (o *DeleteGameRecordHandlerV1InternalServerError) GetPayload() *cloudsaveclientmodels.ResponseError
type DeleteGameRecordHandlerV1OK ¶
type DeleteGameRecordHandlerV1OK struct { }
DeleteGameRecordHandlerV1OK handles this case with default header values.
Record deleted
func NewDeleteGameRecordHandlerV1OK ¶
func NewDeleteGameRecordHandlerV1OK() *DeleteGameRecordHandlerV1OK
NewDeleteGameRecordHandlerV1OK creates a DeleteGameRecordHandlerV1OK with default headers values
func (*DeleteGameRecordHandlerV1OK) Error ¶
func (o *DeleteGameRecordHandlerV1OK) Error() string
type DeleteGameRecordHandlerV1Params ¶
type DeleteGameRecordHandlerV1Params struct { /*Key key of record */ Key string /*Namespace namespace of the game */ Namespace string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteGameRecordHandlerV1Params contains all the parameters to send to the API endpoint for the delete game record handler v1 operation typically these are written to a http.Request
func NewDeleteGameRecordHandlerV1Params ¶
func NewDeleteGameRecordHandlerV1Params() *DeleteGameRecordHandlerV1Params
NewDeleteGameRecordHandlerV1Params creates a new DeleteGameRecordHandlerV1Params object with the default values initialized.
func NewDeleteGameRecordHandlerV1ParamsWithContext ¶
func NewDeleteGameRecordHandlerV1ParamsWithContext(ctx context.Context) *DeleteGameRecordHandlerV1Params
NewDeleteGameRecordHandlerV1ParamsWithContext creates a new DeleteGameRecordHandlerV1Params object with the default values initialized, and the ability to set a context for a request
func NewDeleteGameRecordHandlerV1ParamsWithHTTPClient ¶
func NewDeleteGameRecordHandlerV1ParamsWithHTTPClient(client *http.Client) *DeleteGameRecordHandlerV1Params
NewDeleteGameRecordHandlerV1ParamsWithHTTPClient creates a new DeleteGameRecordHandlerV1Params object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteGameRecordHandlerV1ParamsWithTimeout ¶
func NewDeleteGameRecordHandlerV1ParamsWithTimeout(timeout time.Duration) *DeleteGameRecordHandlerV1Params
NewDeleteGameRecordHandlerV1ParamsWithTimeout creates a new DeleteGameRecordHandlerV1Params object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteGameRecordHandlerV1Params) SetContext ¶
func (o *DeleteGameRecordHandlerV1Params) SetContext(ctx context.Context)
SetContext adds the context to the delete game record handler v1 params
func (*DeleteGameRecordHandlerV1Params) SetHTTPClient ¶
func (o *DeleteGameRecordHandlerV1Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete game record handler v1 params
func (*DeleteGameRecordHandlerV1Params) SetKey ¶
func (o *DeleteGameRecordHandlerV1Params) SetKey(key string)
SetKey adds the key to the delete game record handler v1 params
func (*DeleteGameRecordHandlerV1Params) SetNamespace ¶
func (o *DeleteGameRecordHandlerV1Params) SetNamespace(namespace string)
SetNamespace adds the namespace to the delete game record handler v1 params
func (*DeleteGameRecordHandlerV1Params) SetTimeout ¶
func (o *DeleteGameRecordHandlerV1Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete game record handler v1 params
func (*DeleteGameRecordHandlerV1Params) WithContext ¶
func (o *DeleteGameRecordHandlerV1Params) WithContext(ctx context.Context) *DeleteGameRecordHandlerV1Params
WithContext adds the context to the delete game record handler v1 params
func (*DeleteGameRecordHandlerV1Params) WithHTTPClient ¶
func (o *DeleteGameRecordHandlerV1Params) WithHTTPClient(client *http.Client) *DeleteGameRecordHandlerV1Params
WithHTTPClient adds the HTTPClient to the delete game record handler v1 params
func (*DeleteGameRecordHandlerV1Params) WithKey ¶
func (o *DeleteGameRecordHandlerV1Params) WithKey(key string) *DeleteGameRecordHandlerV1Params
WithKey adds the key to the delete game record handler v1 params
func (*DeleteGameRecordHandlerV1Params) WithNamespace ¶
func (o *DeleteGameRecordHandlerV1Params) WithNamespace(namespace string) *DeleteGameRecordHandlerV1Params
WithNamespace adds the namespace to the delete game record handler v1 params
func (*DeleteGameRecordHandlerV1Params) WithTimeout ¶
func (o *DeleteGameRecordHandlerV1Params) WithTimeout(timeout time.Duration) *DeleteGameRecordHandlerV1Params
WithTimeout adds the timeout to the delete game record handler v1 params
func (*DeleteGameRecordHandlerV1Params) WriteToRequest ¶
func (o *DeleteGameRecordHandlerV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteGameRecordHandlerV1Reader ¶
type DeleteGameRecordHandlerV1Reader struct {
// contains filtered or unexported fields
}
DeleteGameRecordHandlerV1Reader is a Reader for the DeleteGameRecordHandlerV1 structure.
func (*DeleteGameRecordHandlerV1Reader) ReadResponse ¶
func (o *DeleteGameRecordHandlerV1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetGameRecordHandlerV1Default ¶
type GetGameRecordHandlerV1Default struct { Payload *cloudsaveclientmodels.ModelsGameRecord // contains filtered or unexported fields }
GetGameRecordHandlerV1Default handles this case with default header values.
Record retrieved
func NewGetGameRecordHandlerV1Default ¶
func NewGetGameRecordHandlerV1Default(code int) *GetGameRecordHandlerV1Default
NewGetGameRecordHandlerV1Default creates a GetGameRecordHandlerV1Default with default headers values
func (*GetGameRecordHandlerV1Default) Code ¶
func (o *GetGameRecordHandlerV1Default) Code() int
Code gets the status code for the get game record handler v1 default response
func (*GetGameRecordHandlerV1Default) Error ¶
func (o *GetGameRecordHandlerV1Default) Error() string
func (*GetGameRecordHandlerV1Default) GetPayload ¶
func (o *GetGameRecordHandlerV1Default) GetPayload() *cloudsaveclientmodels.ModelsGameRecord
type GetGameRecordHandlerV1InternalServerError ¶
type GetGameRecordHandlerV1InternalServerError struct {
Payload *cloudsaveclientmodels.ResponseError
}
GetGameRecordHandlerV1InternalServerError handles this case with default header values.
Internal Server Error
func NewGetGameRecordHandlerV1InternalServerError ¶
func NewGetGameRecordHandlerV1InternalServerError() *GetGameRecordHandlerV1InternalServerError
NewGetGameRecordHandlerV1InternalServerError creates a GetGameRecordHandlerV1InternalServerError with default headers values
func (*GetGameRecordHandlerV1InternalServerError) Error ¶
func (o *GetGameRecordHandlerV1InternalServerError) Error() string
func (*GetGameRecordHandlerV1InternalServerError) GetPayload ¶
func (o *GetGameRecordHandlerV1InternalServerError) GetPayload() *cloudsaveclientmodels.ResponseError
type GetGameRecordHandlerV1OK ¶
type GetGameRecordHandlerV1OK struct {
Payload *cloudsaveclientmodels.ModelsGameRecord
}
GetGameRecordHandlerV1OK handles this case with default header values.
Record retrieved
func NewGetGameRecordHandlerV1OK ¶
func NewGetGameRecordHandlerV1OK() *GetGameRecordHandlerV1OK
NewGetGameRecordHandlerV1OK creates a GetGameRecordHandlerV1OK with default headers values
func (*GetGameRecordHandlerV1OK) Error ¶
func (o *GetGameRecordHandlerV1OK) Error() string
func (*GetGameRecordHandlerV1OK) GetPayload ¶
func (o *GetGameRecordHandlerV1OK) GetPayload() *cloudsaveclientmodels.ModelsGameRecord
type GetGameRecordHandlerV1Params ¶
type GetGameRecordHandlerV1Params struct { /*Key key of record */ Key string /*Namespace namespace of the game */ Namespace string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetGameRecordHandlerV1Params contains all the parameters to send to the API endpoint for the get game record handler v1 operation typically these are written to a http.Request
func NewGetGameRecordHandlerV1Params ¶
func NewGetGameRecordHandlerV1Params() *GetGameRecordHandlerV1Params
NewGetGameRecordHandlerV1Params creates a new GetGameRecordHandlerV1Params object with the default values initialized.
func NewGetGameRecordHandlerV1ParamsWithContext ¶
func NewGetGameRecordHandlerV1ParamsWithContext(ctx context.Context) *GetGameRecordHandlerV1Params
NewGetGameRecordHandlerV1ParamsWithContext creates a new GetGameRecordHandlerV1Params object with the default values initialized, and the ability to set a context for a request
func NewGetGameRecordHandlerV1ParamsWithHTTPClient ¶
func NewGetGameRecordHandlerV1ParamsWithHTTPClient(client *http.Client) *GetGameRecordHandlerV1Params
NewGetGameRecordHandlerV1ParamsWithHTTPClient creates a new GetGameRecordHandlerV1Params object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetGameRecordHandlerV1ParamsWithTimeout ¶
func NewGetGameRecordHandlerV1ParamsWithTimeout(timeout time.Duration) *GetGameRecordHandlerV1Params
NewGetGameRecordHandlerV1ParamsWithTimeout creates a new GetGameRecordHandlerV1Params object with the default values initialized, and the ability to set a timeout on a request
func (*GetGameRecordHandlerV1Params) SetContext ¶
func (o *GetGameRecordHandlerV1Params) SetContext(ctx context.Context)
SetContext adds the context to the get game record handler v1 params
func (*GetGameRecordHandlerV1Params) SetHTTPClient ¶
func (o *GetGameRecordHandlerV1Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get game record handler v1 params
func (*GetGameRecordHandlerV1Params) SetKey ¶
func (o *GetGameRecordHandlerV1Params) SetKey(key string)
SetKey adds the key to the get game record handler v1 params
func (*GetGameRecordHandlerV1Params) SetNamespace ¶
func (o *GetGameRecordHandlerV1Params) SetNamespace(namespace string)
SetNamespace adds the namespace to the get game record handler v1 params
func (*GetGameRecordHandlerV1Params) SetTimeout ¶
func (o *GetGameRecordHandlerV1Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get game record handler v1 params
func (*GetGameRecordHandlerV1Params) WithContext ¶
func (o *GetGameRecordHandlerV1Params) WithContext(ctx context.Context) *GetGameRecordHandlerV1Params
WithContext adds the context to the get game record handler v1 params
func (*GetGameRecordHandlerV1Params) WithHTTPClient ¶
func (o *GetGameRecordHandlerV1Params) WithHTTPClient(client *http.Client) *GetGameRecordHandlerV1Params
WithHTTPClient adds the HTTPClient to the get game record handler v1 params
func (*GetGameRecordHandlerV1Params) WithKey ¶
func (o *GetGameRecordHandlerV1Params) WithKey(key string) *GetGameRecordHandlerV1Params
WithKey adds the key to the get game record handler v1 params
func (*GetGameRecordHandlerV1Params) WithNamespace ¶
func (o *GetGameRecordHandlerV1Params) WithNamespace(namespace string) *GetGameRecordHandlerV1Params
WithNamespace adds the namespace to the get game record handler v1 params
func (*GetGameRecordHandlerV1Params) WithTimeout ¶
func (o *GetGameRecordHandlerV1Params) WithTimeout(timeout time.Duration) *GetGameRecordHandlerV1Params
WithTimeout adds the timeout to the get game record handler v1 params
func (*GetGameRecordHandlerV1Params) WriteToRequest ¶
func (o *GetGameRecordHandlerV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetGameRecordHandlerV1Reader ¶
type GetGameRecordHandlerV1Reader struct {
// contains filtered or unexported fields
}
GetGameRecordHandlerV1Reader is a Reader for the GetGameRecordHandlerV1 structure.
func (*GetGameRecordHandlerV1Reader) ReadResponse ¶
func (o *GetGameRecordHandlerV1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostGameRecordHandlerV1Default ¶
type PostGameRecordHandlerV1Default struct {
// contains filtered or unexported fields
}
PostGameRecordHandlerV1Default handles this case with default header values.
Record saved
func NewPostGameRecordHandlerV1Default ¶
func NewPostGameRecordHandlerV1Default(code int) *PostGameRecordHandlerV1Default
NewPostGameRecordHandlerV1Default creates a PostGameRecordHandlerV1Default with default headers values
func (*PostGameRecordHandlerV1Default) Code ¶
func (o *PostGameRecordHandlerV1Default) Code() int
Code gets the status code for the post game record handler v1 default response
func (*PostGameRecordHandlerV1Default) Error ¶
func (o *PostGameRecordHandlerV1Default) Error() string
type PostGameRecordHandlerV1InternalServerError ¶
type PostGameRecordHandlerV1InternalServerError struct {
Payload *cloudsaveclientmodels.ResponseError
}
PostGameRecordHandlerV1InternalServerError handles this case with default header values.
Internal Server Error
func NewPostGameRecordHandlerV1InternalServerError ¶
func NewPostGameRecordHandlerV1InternalServerError() *PostGameRecordHandlerV1InternalServerError
NewPostGameRecordHandlerV1InternalServerError creates a PostGameRecordHandlerV1InternalServerError with default headers values
func (*PostGameRecordHandlerV1InternalServerError) Error ¶
func (o *PostGameRecordHandlerV1InternalServerError) Error() string
func (*PostGameRecordHandlerV1InternalServerError) GetPayload ¶
func (o *PostGameRecordHandlerV1InternalServerError) GetPayload() *cloudsaveclientmodels.ResponseError
type PostGameRecordHandlerV1OK ¶
type PostGameRecordHandlerV1OK struct { }
PostGameRecordHandlerV1OK handles this case with default header values.
Record saved
func NewPostGameRecordHandlerV1OK ¶
func NewPostGameRecordHandlerV1OK() *PostGameRecordHandlerV1OK
NewPostGameRecordHandlerV1OK creates a PostGameRecordHandlerV1OK with default headers values
func (*PostGameRecordHandlerV1OK) Error ¶
func (o *PostGameRecordHandlerV1OK) Error() string
type PostGameRecordHandlerV1Params ¶
type PostGameRecordHandlerV1Params struct { /*Body*/ Body cloudsaveclientmodels.ModelsGameRecordRequest /*Key key of record */ Key string /*Namespace namespace of the game */ Namespace string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostGameRecordHandlerV1Params contains all the parameters to send to the API endpoint for the post game record handler v1 operation typically these are written to a http.Request
func NewPostGameRecordHandlerV1Params ¶
func NewPostGameRecordHandlerV1Params() *PostGameRecordHandlerV1Params
NewPostGameRecordHandlerV1Params creates a new PostGameRecordHandlerV1Params object with the default values initialized.
func NewPostGameRecordHandlerV1ParamsWithContext ¶
func NewPostGameRecordHandlerV1ParamsWithContext(ctx context.Context) *PostGameRecordHandlerV1Params
NewPostGameRecordHandlerV1ParamsWithContext creates a new PostGameRecordHandlerV1Params object with the default values initialized, and the ability to set a context for a request
func NewPostGameRecordHandlerV1ParamsWithHTTPClient ¶
func NewPostGameRecordHandlerV1ParamsWithHTTPClient(client *http.Client) *PostGameRecordHandlerV1Params
NewPostGameRecordHandlerV1ParamsWithHTTPClient creates a new PostGameRecordHandlerV1Params object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPostGameRecordHandlerV1ParamsWithTimeout ¶
func NewPostGameRecordHandlerV1ParamsWithTimeout(timeout time.Duration) *PostGameRecordHandlerV1Params
NewPostGameRecordHandlerV1ParamsWithTimeout creates a new PostGameRecordHandlerV1Params object with the default values initialized, and the ability to set a timeout on a request
func (*PostGameRecordHandlerV1Params) SetBody ¶
func (o *PostGameRecordHandlerV1Params) SetBody(body cloudsaveclientmodels.ModelsGameRecordRequest)
SetBody adds the body to the post game record handler v1 params
func (*PostGameRecordHandlerV1Params) SetContext ¶
func (o *PostGameRecordHandlerV1Params) SetContext(ctx context.Context)
SetContext adds the context to the post game record handler v1 params
func (*PostGameRecordHandlerV1Params) SetHTTPClient ¶
func (o *PostGameRecordHandlerV1Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post game record handler v1 params
func (*PostGameRecordHandlerV1Params) SetKey ¶
func (o *PostGameRecordHandlerV1Params) SetKey(key string)
SetKey adds the key to the post game record handler v1 params
func (*PostGameRecordHandlerV1Params) SetNamespace ¶
func (o *PostGameRecordHandlerV1Params) SetNamespace(namespace string)
SetNamespace adds the namespace to the post game record handler v1 params
func (*PostGameRecordHandlerV1Params) SetTimeout ¶
func (o *PostGameRecordHandlerV1Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post game record handler v1 params
func (*PostGameRecordHandlerV1Params) WithBody ¶
func (o *PostGameRecordHandlerV1Params) WithBody(body cloudsaveclientmodels.ModelsGameRecordRequest) *PostGameRecordHandlerV1Params
WithBody adds the body to the post game record handler v1 params
func (*PostGameRecordHandlerV1Params) WithContext ¶
func (o *PostGameRecordHandlerV1Params) WithContext(ctx context.Context) *PostGameRecordHandlerV1Params
WithContext adds the context to the post game record handler v1 params
func (*PostGameRecordHandlerV1Params) WithHTTPClient ¶
func (o *PostGameRecordHandlerV1Params) WithHTTPClient(client *http.Client) *PostGameRecordHandlerV1Params
WithHTTPClient adds the HTTPClient to the post game record handler v1 params
func (*PostGameRecordHandlerV1Params) WithKey ¶
func (o *PostGameRecordHandlerV1Params) WithKey(key string) *PostGameRecordHandlerV1Params
WithKey adds the key to the post game record handler v1 params
func (*PostGameRecordHandlerV1Params) WithNamespace ¶
func (o *PostGameRecordHandlerV1Params) WithNamespace(namespace string) *PostGameRecordHandlerV1Params
WithNamespace adds the namespace to the post game record handler v1 params
func (*PostGameRecordHandlerV1Params) WithTimeout ¶
func (o *PostGameRecordHandlerV1Params) WithTimeout(timeout time.Duration) *PostGameRecordHandlerV1Params
WithTimeout adds the timeout to the post game record handler v1 params
func (*PostGameRecordHandlerV1Params) WriteToRequest ¶
func (o *PostGameRecordHandlerV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostGameRecordHandlerV1Reader ¶
type PostGameRecordHandlerV1Reader struct {
// contains filtered or unexported fields
}
PostGameRecordHandlerV1Reader is a Reader for the PostGameRecordHandlerV1 structure.
func (*PostGameRecordHandlerV1Reader) ReadResponse ¶
func (o *PostGameRecordHandlerV1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PutGameRecordHandlerV1Default ¶
type PutGameRecordHandlerV1Default struct {
// contains filtered or unexported fields
}
PutGameRecordHandlerV1Default handles this case with default header values.
Record saved
func NewPutGameRecordHandlerV1Default ¶
func NewPutGameRecordHandlerV1Default(code int) *PutGameRecordHandlerV1Default
NewPutGameRecordHandlerV1Default creates a PutGameRecordHandlerV1Default with default headers values
func (*PutGameRecordHandlerV1Default) Code ¶
func (o *PutGameRecordHandlerV1Default) Code() int
Code gets the status code for the put game record handler v1 default response
func (*PutGameRecordHandlerV1Default) Error ¶
func (o *PutGameRecordHandlerV1Default) Error() string
type PutGameRecordHandlerV1InternalServerError ¶
type PutGameRecordHandlerV1InternalServerError struct {
Payload *cloudsaveclientmodels.ResponseError
}
PutGameRecordHandlerV1InternalServerError handles this case with default header values.
Internal Server Error
func NewPutGameRecordHandlerV1InternalServerError ¶
func NewPutGameRecordHandlerV1InternalServerError() *PutGameRecordHandlerV1InternalServerError
NewPutGameRecordHandlerV1InternalServerError creates a PutGameRecordHandlerV1InternalServerError with default headers values
func (*PutGameRecordHandlerV1InternalServerError) Error ¶
func (o *PutGameRecordHandlerV1InternalServerError) Error() string
func (*PutGameRecordHandlerV1InternalServerError) GetPayload ¶
func (o *PutGameRecordHandlerV1InternalServerError) GetPayload() *cloudsaveclientmodels.ResponseError
type PutGameRecordHandlerV1OK ¶
type PutGameRecordHandlerV1OK struct { }
PutGameRecordHandlerV1OK handles this case with default header values.
Record saved
func NewPutGameRecordHandlerV1OK ¶
func NewPutGameRecordHandlerV1OK() *PutGameRecordHandlerV1OK
NewPutGameRecordHandlerV1OK creates a PutGameRecordHandlerV1OK with default headers values
func (*PutGameRecordHandlerV1OK) Error ¶
func (o *PutGameRecordHandlerV1OK) Error() string
type PutGameRecordHandlerV1Params ¶
type PutGameRecordHandlerV1Params struct { /*Body*/ Body cloudsaveclientmodels.ModelsGameRecordRequest /*Key key of record */ Key string /*Namespace namespace of the game */ Namespace string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PutGameRecordHandlerV1Params contains all the parameters to send to the API endpoint for the put game record handler v1 operation typically these are written to a http.Request
func NewPutGameRecordHandlerV1Params ¶
func NewPutGameRecordHandlerV1Params() *PutGameRecordHandlerV1Params
NewPutGameRecordHandlerV1Params creates a new PutGameRecordHandlerV1Params object with the default values initialized.
func NewPutGameRecordHandlerV1ParamsWithContext ¶
func NewPutGameRecordHandlerV1ParamsWithContext(ctx context.Context) *PutGameRecordHandlerV1Params
NewPutGameRecordHandlerV1ParamsWithContext creates a new PutGameRecordHandlerV1Params object with the default values initialized, and the ability to set a context for a request
func NewPutGameRecordHandlerV1ParamsWithHTTPClient ¶
func NewPutGameRecordHandlerV1ParamsWithHTTPClient(client *http.Client) *PutGameRecordHandlerV1Params
NewPutGameRecordHandlerV1ParamsWithHTTPClient creates a new PutGameRecordHandlerV1Params object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPutGameRecordHandlerV1ParamsWithTimeout ¶
func NewPutGameRecordHandlerV1ParamsWithTimeout(timeout time.Duration) *PutGameRecordHandlerV1Params
NewPutGameRecordHandlerV1ParamsWithTimeout creates a new PutGameRecordHandlerV1Params object with the default values initialized, and the ability to set a timeout on a request
func (*PutGameRecordHandlerV1Params) SetBody ¶
func (o *PutGameRecordHandlerV1Params) SetBody(body cloudsaveclientmodels.ModelsGameRecordRequest)
SetBody adds the body to the put game record handler v1 params
func (*PutGameRecordHandlerV1Params) SetContext ¶
func (o *PutGameRecordHandlerV1Params) SetContext(ctx context.Context)
SetContext adds the context to the put game record handler v1 params
func (*PutGameRecordHandlerV1Params) SetHTTPClient ¶
func (o *PutGameRecordHandlerV1Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the put game record handler v1 params
func (*PutGameRecordHandlerV1Params) SetKey ¶
func (o *PutGameRecordHandlerV1Params) SetKey(key string)
SetKey adds the key to the put game record handler v1 params
func (*PutGameRecordHandlerV1Params) SetNamespace ¶
func (o *PutGameRecordHandlerV1Params) SetNamespace(namespace string)
SetNamespace adds the namespace to the put game record handler v1 params
func (*PutGameRecordHandlerV1Params) SetTimeout ¶
func (o *PutGameRecordHandlerV1Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the put game record handler v1 params
func (*PutGameRecordHandlerV1Params) WithBody ¶
func (o *PutGameRecordHandlerV1Params) WithBody(body cloudsaveclientmodels.ModelsGameRecordRequest) *PutGameRecordHandlerV1Params
WithBody adds the body to the put game record handler v1 params
func (*PutGameRecordHandlerV1Params) WithContext ¶
func (o *PutGameRecordHandlerV1Params) WithContext(ctx context.Context) *PutGameRecordHandlerV1Params
WithContext adds the context to the put game record handler v1 params
func (*PutGameRecordHandlerV1Params) WithHTTPClient ¶
func (o *PutGameRecordHandlerV1Params) WithHTTPClient(client *http.Client) *PutGameRecordHandlerV1Params
WithHTTPClient adds the HTTPClient to the put game record handler v1 params
func (*PutGameRecordHandlerV1Params) WithKey ¶
func (o *PutGameRecordHandlerV1Params) WithKey(key string) *PutGameRecordHandlerV1Params
WithKey adds the key to the put game record handler v1 params
func (*PutGameRecordHandlerV1Params) WithNamespace ¶
func (o *PutGameRecordHandlerV1Params) WithNamespace(namespace string) *PutGameRecordHandlerV1Params
WithNamespace adds the namespace to the put game record handler v1 params
func (*PutGameRecordHandlerV1Params) WithTimeout ¶
func (o *PutGameRecordHandlerV1Params) WithTimeout(timeout time.Duration) *PutGameRecordHandlerV1Params
WithTimeout adds the timeout to the put game record handler v1 params
func (*PutGameRecordHandlerV1Params) WriteToRequest ¶
func (o *PutGameRecordHandlerV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PutGameRecordHandlerV1Reader ¶
type PutGameRecordHandlerV1Reader struct {
// contains filtered or unexported fields
}
PutGameRecordHandlerV1Reader is a Reader for the PutGameRecordHandlerV1 structure.
func (*PutGameRecordHandlerV1Reader) ReadResponse ¶
func (o *PutGameRecordHandlerV1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- delete_game_record_handler_v1_parameters.go
- delete_game_record_handler_v1_responses.go
- get_game_record_handler_v1_parameters.go
- get_game_record_handler_v1_responses.go
- post_game_record_handler_v1_parameters.go
- post_game_record_handler_v1_responses.go
- public_game_record_client.go
- put_game_record_handler_v1_parameters.go
- put_game_record_handler_v1_responses.go