social_matchmaking

package
v0.31.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 15 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 social matchmaking API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdatePlayTimeWeight deprecated

Deprecated: Use UpdatePlayTimeWeightShort instead.

UpdatePlayTimeWeight updates player playtime connection weight

Required Permission: NAMESPACE:{namespace}:MATCHMAKING:CHANNEL [UPDATE]

Required Scope: social

Update a connection weight between player and playtime.

This endpoint is intended to be called by admin for debugging purpose on social matchmaking rule.

func (*Client) UpdatePlayTimeWeightShort added in v0.8.0

func (a *Client) UpdatePlayTimeWeightShort(params *UpdatePlayTimeWeightParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePlayTimeWeightOK, error)
UpdatePlayTimeWeightShort updates player playtime connection weight

Required Permission: NAMESPACE:{namespace}:MATCHMAKING:CHANNEL [UPDATE]

Required Scope: social

Update a connection weight between player and playtime.

This endpoint is intended to be called by admin for debugging purpose on social matchmaking rule.

type ClientService

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new social matchmaking API client.

type UpdatePlayTimeWeightBadRequest

type UpdatePlayTimeWeightBadRequest struct {
	Payload *matchmakingclientmodels.ResponseErrorV1
}

UpdatePlayTimeWeightBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr><tr><td>20019</td><td>unable to parse request body</td></tr></table>

func NewUpdatePlayTimeWeightBadRequest

func NewUpdatePlayTimeWeightBadRequest() *UpdatePlayTimeWeightBadRequest

NewUpdatePlayTimeWeightBadRequest creates a UpdatePlayTimeWeightBadRequest with default headers values

func (*UpdatePlayTimeWeightBadRequest) Error

func (*UpdatePlayTimeWeightBadRequest) GetPayload

func (*UpdatePlayTimeWeightBadRequest) ToJSONString added in v0.25.0

func (o *UpdatePlayTimeWeightBadRequest) ToJSONString() string

type UpdatePlayTimeWeightForbidden

type UpdatePlayTimeWeightForbidden struct {
	Payload *matchmakingclientmodels.ResponseErrorV1
}

UpdatePlayTimeWeightForbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permissions</td></tr><tr><td>20014</td><td>invalid audience</td></tr><tr><td>20015</td><td>insufficient scope</td></tr></table>

func NewUpdatePlayTimeWeightForbidden

func NewUpdatePlayTimeWeightForbidden() *UpdatePlayTimeWeightForbidden

NewUpdatePlayTimeWeightForbidden creates a UpdatePlayTimeWeightForbidden with default headers values

func (*UpdatePlayTimeWeightForbidden) Error

func (*UpdatePlayTimeWeightForbidden) GetPayload

func (*UpdatePlayTimeWeightForbidden) ToJSONString added in v0.25.0

func (o *UpdatePlayTimeWeightForbidden) ToJSONString() string

type UpdatePlayTimeWeightInternalServerError

type UpdatePlayTimeWeightInternalServerError struct {
	Payload *matchmakingclientmodels.ResponseError
}

UpdatePlayTimeWeightInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error</td></tr></table>

func NewUpdatePlayTimeWeightInternalServerError

func NewUpdatePlayTimeWeightInternalServerError() *UpdatePlayTimeWeightInternalServerError

NewUpdatePlayTimeWeightInternalServerError creates a UpdatePlayTimeWeightInternalServerError with default headers values

func (*UpdatePlayTimeWeightInternalServerError) Error

func (*UpdatePlayTimeWeightInternalServerError) GetPayload

func (*UpdatePlayTimeWeightInternalServerError) ToJSONString added in v0.25.0

type UpdatePlayTimeWeightNotFound

type UpdatePlayTimeWeightNotFound struct {
	Payload *matchmakingclientmodels.ResponseErrorV1
}

UpdatePlayTimeWeightNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>510301</td><td>user playtime not found</td></tr></table>

func NewUpdatePlayTimeWeightNotFound

func NewUpdatePlayTimeWeightNotFound() *UpdatePlayTimeWeightNotFound

NewUpdatePlayTimeWeightNotFound creates a UpdatePlayTimeWeightNotFound with default headers values

func (*UpdatePlayTimeWeightNotFound) Error

func (*UpdatePlayTimeWeightNotFound) GetPayload

func (*UpdatePlayTimeWeightNotFound) ToJSONString added in v0.25.0

func (o *UpdatePlayTimeWeightNotFound) ToJSONString() string

type UpdatePlayTimeWeightOK

type UpdatePlayTimeWeightOK struct {
	Payload *matchmakingclientmodels.ModelsUpdatePlayerPlaytimeWeightResponse
}

UpdatePlayTimeWeightOK handles this case with default header values.

Operation succeeded

func NewUpdatePlayTimeWeightOK

func NewUpdatePlayTimeWeightOK() *UpdatePlayTimeWeightOK

NewUpdatePlayTimeWeightOK creates a UpdatePlayTimeWeightOK with default headers values

func (*UpdatePlayTimeWeightOK) Error

func (o *UpdatePlayTimeWeightOK) Error() string

func (*UpdatePlayTimeWeightOK) ToJSONString added in v0.25.0

func (o *UpdatePlayTimeWeightOK) ToJSONString() string

type UpdatePlayTimeWeightParams

type UpdatePlayTimeWeightParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *matchmakingclientmodels.ModelsUpdatePlayTimeWeightRequest
	/*Namespace
	  namespace of the game

	*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// contains filtered or unexported fields
}

UpdatePlayTimeWeightParams contains all the parameters to send to the API endpoint for the update play time weight operation typically these are written to a http.Request

func NewUpdatePlayTimeWeightParams

func NewUpdatePlayTimeWeightParams() *UpdatePlayTimeWeightParams

NewUpdatePlayTimeWeightParams creates a new UpdatePlayTimeWeightParams object with the default values initialized.

func NewUpdatePlayTimeWeightParamsWithContext

func NewUpdatePlayTimeWeightParamsWithContext(ctx context.Context) *UpdatePlayTimeWeightParams

NewUpdatePlayTimeWeightParamsWithContext creates a new UpdatePlayTimeWeightParams object with the default values initialized, and the ability to set a context for a request

func NewUpdatePlayTimeWeightParamsWithHTTPClient

func NewUpdatePlayTimeWeightParamsWithHTTPClient(client *http.Client) *UpdatePlayTimeWeightParams

NewUpdatePlayTimeWeightParamsWithHTTPClient creates a new UpdatePlayTimeWeightParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdatePlayTimeWeightParamsWithTimeout

func NewUpdatePlayTimeWeightParamsWithTimeout(timeout time.Duration) *UpdatePlayTimeWeightParams

NewUpdatePlayTimeWeightParamsWithTimeout creates a new UpdatePlayTimeWeightParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdatePlayTimeWeightParams) SetAuthInfoWriter added in v0.17.0

func (o *UpdatePlayTimeWeightParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the update play time weight params

func (*UpdatePlayTimeWeightParams) SetBody

SetBody adds the body to the update play time weight params

func (*UpdatePlayTimeWeightParams) SetContext

func (o *UpdatePlayTimeWeightParams) SetContext(ctx context.Context)

SetContext adds the context to the update play time weight params

func (*UpdatePlayTimeWeightParams) SetHTTPClient

func (o *UpdatePlayTimeWeightParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update play time weight params

func (*UpdatePlayTimeWeightParams) SetHTTPClientTransport added in v0.19.0

func (o *UpdatePlayTimeWeightParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the update play time weight params

func (*UpdatePlayTimeWeightParams) SetNamespace

func (o *UpdatePlayTimeWeightParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update play time weight params

func (*UpdatePlayTimeWeightParams) SetTimeout

func (o *UpdatePlayTimeWeightParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update play time weight params

func (*UpdatePlayTimeWeightParams) WithBody

WithBody adds the body to the update play time weight params

func (*UpdatePlayTimeWeightParams) WithContext

WithContext adds the context to the update play time weight params

func (*UpdatePlayTimeWeightParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update play time weight params

func (*UpdatePlayTimeWeightParams) WithNamespace

func (o *UpdatePlayTimeWeightParams) WithNamespace(namespace string) *UpdatePlayTimeWeightParams

WithNamespace adds the namespace to the update play time weight params

func (*UpdatePlayTimeWeightParams) WithTimeout

WithTimeout adds the timeout to the update play time weight params

func (*UpdatePlayTimeWeightParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdatePlayTimeWeightReader

type UpdatePlayTimeWeightReader struct {
	// contains filtered or unexported fields
}

UpdatePlayTimeWeightReader is a Reader for the UpdatePlayTimeWeight structure.

func (*UpdatePlayTimeWeightReader) ReadResponse

func (o *UpdatePlayTimeWeightReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdatePlayTimeWeightUnauthorized

type UpdatePlayTimeWeightUnauthorized struct {
	Payload *matchmakingclientmodels.ResponseErrorV1
}

UpdatePlayTimeWeightUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized access</td></tr></table>

func NewUpdatePlayTimeWeightUnauthorized

func NewUpdatePlayTimeWeightUnauthorized() *UpdatePlayTimeWeightUnauthorized

NewUpdatePlayTimeWeightUnauthorized creates a UpdatePlayTimeWeightUnauthorized with default headers values

func (*UpdatePlayTimeWeightUnauthorized) Error

func (*UpdatePlayTimeWeightUnauthorized) GetPayload

func (*UpdatePlayTimeWeightUnauthorized) ToJSONString added in v0.25.0

func (o *UpdatePlayTimeWeightUnauthorized) ToJSONString() string

Jump to

Keyboard shortcuts

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