Documentation ¶
Index ¶
- type ClaimServerConflict
- type ClaimServerInternalServerError
- type ClaimServerNoContent
- type ClaimServerNotFound
- type ClaimServerParams
- func (o *ClaimServerParams) SetBody(body *dsmcclientmodels.ModelsClaimSessionRequest)
- func (o *ClaimServerParams) SetContext(ctx context.Context)
- func (o *ClaimServerParams) SetHTTPClient(client *http.Client)
- func (o *ClaimServerParams) SetNamespace(namespace string)
- func (o *ClaimServerParams) SetTimeout(timeout time.Duration)
- func (o *ClaimServerParams) WithBody(body *dsmcclientmodels.ModelsClaimSessionRequest) *ClaimServerParams
- func (o *ClaimServerParams) WithContext(ctx context.Context) *ClaimServerParams
- func (o *ClaimServerParams) WithHTTPClient(client *http.Client) *ClaimServerParams
- func (o *ClaimServerParams) WithNamespace(namespace string) *ClaimServerParams
- func (o *ClaimServerParams) WithTimeout(timeout time.Duration) *ClaimServerParams
- func (o *ClaimServerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ClaimServerReader
- type ClaimServerServiceUnavailable
- type ClaimServerStatus425
- type ClaimServerUnauthorized
- type Client
- func (a *Client) ClaimServer(params *ClaimServerParams, authInfo runtime.ClientAuthInfoWriter) (*ClaimServerNoContent, *ClaimServerUnauthorized, *ClaimServerNotFound, ...)
- func (a *Client) CreateSession(params *CreateSessionParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSessionOK, *CreateSessionBadRequest, *CreateSessionUnauthorized, ...)
- func (a *Client) GetSession(params *GetSessionParams, authInfo runtime.ClientAuthInfoWriter) (*GetSessionOK, *GetSessionUnauthorized, *GetSessionNotFound, ...)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type CreateSessionBadRequest
- type CreateSessionConflict
- type CreateSessionInternalServerError
- type CreateSessionNotFound
- type CreateSessionOK
- type CreateSessionParams
- func (o *CreateSessionParams) SetBody(body *dsmcclientmodels.ModelsCreateSessionRequest)
- func (o *CreateSessionParams) SetContext(ctx context.Context)
- func (o *CreateSessionParams) SetHTTPClient(client *http.Client)
- func (o *CreateSessionParams) SetNamespace(namespace string)
- func (o *CreateSessionParams) SetTimeout(timeout time.Duration)
- func (o *CreateSessionParams) WithBody(body *dsmcclientmodels.ModelsCreateSessionRequest) *CreateSessionParams
- func (o *CreateSessionParams) WithContext(ctx context.Context) *CreateSessionParams
- func (o *CreateSessionParams) WithHTTPClient(client *http.Client) *CreateSessionParams
- func (o *CreateSessionParams) WithNamespace(namespace string) *CreateSessionParams
- func (o *CreateSessionParams) WithTimeout(timeout time.Duration) *CreateSessionParams
- func (o *CreateSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateSessionReader
- type CreateSessionServiceUnavailable
- type CreateSessionUnauthorized
- type GetSessionInternalServerError
- type GetSessionNotFound
- type GetSessionOK
- type GetSessionParams
- func (o *GetSessionParams) SetContext(ctx context.Context)
- func (o *GetSessionParams) SetHTTPClient(client *http.Client)
- func (o *GetSessionParams) SetNamespace(namespace string)
- func (o *GetSessionParams) SetSessionID(sessionID string)
- func (o *GetSessionParams) SetTimeout(timeout time.Duration)
- func (o *GetSessionParams) WithContext(ctx context.Context) *GetSessionParams
- func (o *GetSessionParams) WithHTTPClient(client *http.Client) *GetSessionParams
- func (o *GetSessionParams) WithNamespace(namespace string) *GetSessionParams
- func (o *GetSessionParams) WithSessionID(sessionID string) *GetSessionParams
- func (o *GetSessionParams) WithTimeout(timeout time.Duration) *GetSessionParams
- func (o *GetSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSessionReader
- type GetSessionUnauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClaimServerConflict ¶
type ClaimServerConflict struct {
Payload *dsmcclientmodels.ResponseError
}
ClaimServerConflict handles this case with default header values.
DS is already claimed
func NewClaimServerConflict ¶
func NewClaimServerConflict() *ClaimServerConflict
NewClaimServerConflict creates a ClaimServerConflict with default headers values
func (*ClaimServerConflict) Error ¶
func (o *ClaimServerConflict) Error() string
func (*ClaimServerConflict) GetPayload ¶
func (o *ClaimServerConflict) GetPayload() *dsmcclientmodels.ResponseError
type ClaimServerInternalServerError ¶
type ClaimServerInternalServerError struct {
Payload *dsmcclientmodels.ResponseError
}
ClaimServerInternalServerError handles this case with default header values.
Internal Server Error
func NewClaimServerInternalServerError ¶
func NewClaimServerInternalServerError() *ClaimServerInternalServerError
NewClaimServerInternalServerError creates a ClaimServerInternalServerError with default headers values
func (*ClaimServerInternalServerError) Error ¶
func (o *ClaimServerInternalServerError) Error() string
func (*ClaimServerInternalServerError) GetPayload ¶
func (o *ClaimServerInternalServerError) GetPayload() *dsmcclientmodels.ResponseError
type ClaimServerNoContent ¶
type ClaimServerNoContent struct { }
ClaimServerNoContent handles this case with default header values.
DS claimed for session
func NewClaimServerNoContent ¶
func NewClaimServerNoContent() *ClaimServerNoContent
NewClaimServerNoContent creates a ClaimServerNoContent with default headers values
func (*ClaimServerNoContent) Error ¶
func (o *ClaimServerNoContent) Error() string
type ClaimServerNotFound ¶
type ClaimServerNotFound struct {
Payload *dsmcclientmodels.ResponseError
}
ClaimServerNotFound handles this case with default header values.
session not found
func NewClaimServerNotFound ¶
func NewClaimServerNotFound() *ClaimServerNotFound
NewClaimServerNotFound creates a ClaimServerNotFound with default headers values
func (*ClaimServerNotFound) Error ¶
func (o *ClaimServerNotFound) Error() string
func (*ClaimServerNotFound) GetPayload ¶
func (o *ClaimServerNotFound) GetPayload() *dsmcclientmodels.ResponseError
type ClaimServerParams ¶
type ClaimServerParams struct { /*Body*/ Body *dsmcclientmodels.ModelsClaimSessionRequest /*Namespace namespace of the game */ Namespace string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ClaimServerParams contains all the parameters to send to the API endpoint for the claim server operation typically these are written to a http.Request
func NewClaimServerParams ¶
func NewClaimServerParams() *ClaimServerParams
NewClaimServerParams creates a new ClaimServerParams object with the default values initialized.
func NewClaimServerParamsWithContext ¶
func NewClaimServerParamsWithContext(ctx context.Context) *ClaimServerParams
NewClaimServerParamsWithContext creates a new ClaimServerParams object with the default values initialized, and the ability to set a context for a request
func NewClaimServerParamsWithHTTPClient ¶
func NewClaimServerParamsWithHTTPClient(client *http.Client) *ClaimServerParams
NewClaimServerParamsWithHTTPClient creates a new ClaimServerParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewClaimServerParamsWithTimeout ¶
func NewClaimServerParamsWithTimeout(timeout time.Duration) *ClaimServerParams
NewClaimServerParamsWithTimeout creates a new ClaimServerParams object with the default values initialized, and the ability to set a timeout on a request
func (*ClaimServerParams) SetBody ¶
func (o *ClaimServerParams) SetBody(body *dsmcclientmodels.ModelsClaimSessionRequest)
SetBody adds the body to the claim server params
func (*ClaimServerParams) SetContext ¶
func (o *ClaimServerParams) SetContext(ctx context.Context)
SetContext adds the context to the claim server params
func (*ClaimServerParams) SetHTTPClient ¶
func (o *ClaimServerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the claim server params
func (*ClaimServerParams) SetNamespace ¶
func (o *ClaimServerParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the claim server params
func (*ClaimServerParams) SetTimeout ¶
func (o *ClaimServerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the claim server params
func (*ClaimServerParams) WithBody ¶
func (o *ClaimServerParams) WithBody(body *dsmcclientmodels.ModelsClaimSessionRequest) *ClaimServerParams
WithBody adds the body to the claim server params
func (*ClaimServerParams) WithContext ¶
func (o *ClaimServerParams) WithContext(ctx context.Context) *ClaimServerParams
WithContext adds the context to the claim server params
func (*ClaimServerParams) WithHTTPClient ¶
func (o *ClaimServerParams) WithHTTPClient(client *http.Client) *ClaimServerParams
WithHTTPClient adds the HTTPClient to the claim server params
func (*ClaimServerParams) WithNamespace ¶
func (o *ClaimServerParams) WithNamespace(namespace string) *ClaimServerParams
WithNamespace adds the namespace to the claim server params
func (*ClaimServerParams) WithTimeout ¶
func (o *ClaimServerParams) WithTimeout(timeout time.Duration) *ClaimServerParams
WithTimeout adds the timeout to the claim server params
func (*ClaimServerParams) WriteToRequest ¶
func (o *ClaimServerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ClaimServerReader ¶
type ClaimServerReader struct {
// contains filtered or unexported fields
}
ClaimServerReader is a Reader for the ClaimServer structure.
func (*ClaimServerReader) ReadResponse ¶
func (o *ClaimServerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ClaimServerServiceUnavailable ¶
type ClaimServerServiceUnavailable struct {
}ClaimServerServiceUnavailable handles this case with default header values.
DS is unreachable
func NewClaimServerServiceUnavailable ¶
func NewClaimServerServiceUnavailable() *ClaimServerServiceUnavailable
NewClaimServerServiceUnavailable creates a ClaimServerServiceUnavailable with default headers values
func (*ClaimServerServiceUnavailable) Error ¶
func (o *ClaimServerServiceUnavailable) Error() string
func (*ClaimServerServiceUnavailable) GetPayload ¶
func (o *ClaimServerServiceUnavailable) GetPayload() *dsmcclientmodels.ResponseError
type ClaimServerStatus425 ¶
type ClaimServerStatus425 struct {
Payload *dsmcclientmodels.ResponseError
}
ClaimServerStatus425 handles this case with default header values.
DS is not ready to be claimed
func NewClaimServerStatus425 ¶
func NewClaimServerStatus425() *ClaimServerStatus425
NewClaimServerStatus425 creates a ClaimServerStatus425 with default headers values
func (*ClaimServerStatus425) Error ¶
func (o *ClaimServerStatus425) Error() string
func (*ClaimServerStatus425) GetPayload ¶
func (o *ClaimServerStatus425) GetPayload() *dsmcclientmodels.ResponseError
type ClaimServerUnauthorized ¶
type ClaimServerUnauthorized struct {
}ClaimServerUnauthorized handles this case with default header values.
Unauthorized
func NewClaimServerUnauthorized ¶
func NewClaimServerUnauthorized() *ClaimServerUnauthorized
NewClaimServerUnauthorized creates a ClaimServerUnauthorized with default headers values
func (*ClaimServerUnauthorized) Error ¶
func (o *ClaimServerUnauthorized) Error() string
func (*ClaimServerUnauthorized) GetPayload ¶
func (o *ClaimServerUnauthorized) GetPayload() *dsmcclientmodels.ResponseError
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for session API
func (*Client) ClaimServer ¶
func (a *Client) ClaimServer(params *ClaimServerParams, authInfo runtime.ClientAuthInfoWriter) (*ClaimServerNoContent, *ClaimServerUnauthorized, *ClaimServerNotFound, *ClaimServerConflict, *ClaimServerStatus425, *ClaimServerInternalServerError, *ClaimServerServiceUnavailable, error)
ClaimServer claims a d s for a game session Required permission: NAMESPACE:{namespace}:DSM:SESSION [UPDATE]
Required scope: social
This endpoint is intended to be called by game session manager (matchmaker, lobby, etc.) to claim a dedicated server. The dedicated server cannot be claimed unless the status is READY
func (*Client) CreateSession ¶
func (a *Client) CreateSession(params *CreateSessionParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSessionOK, *CreateSessionBadRequest, *CreateSessionUnauthorized, *CreateSessionNotFound, *CreateSessionConflict, *CreateSessionInternalServerError, *CreateSessionServiceUnavailable, error)
CreateSession registers a new game session Required permission: NAMESPACE:{namespace}:DSM:SESSION [CREATE]
Required scope: social
This endpoint is intended to be called by game session manager (matchmaker, lobby, etc.) to get a dedicated server for a game session.
If a dedicated server is available, it will respond with a dedicated server details ready to be used.
Otherwise it will trigger new dedicated server creation and respond with a server status CREATING. The game session manager then expected to wait and query the server readiness with GET /namespaces/{namespace}/sessions/{sessionID} endpoint until the serverstatus is READY
Specify pod_name with name of local DS in the request to create a session using the registered local DS
func (*Client) GetSession ¶
func (a *Client) GetSession(params *GetSessionParams, authInfo runtime.ClientAuthInfoWriter) (*GetSessionOK, *GetSessionUnauthorized, *GetSessionNotFound, *GetSessionInternalServerError, error)
GetSession queries specified session Required permission: NAMESPACE:{namespace}:DSM:SESSION [READ]
Required scope: social
This endpoint is intended to be called by game session manager (matchmaker, lobby, etc.) to query the status of dedicated server that is created for the session.
The server is ready to use when the status is READY. At which point, the game session manager can claim the server using the GET /namespaces/{namespace}/sessions/{sessionID}/claim endpoint
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { ClaimServer(params *ClaimServerParams, authInfo runtime.ClientAuthInfoWriter) (*ClaimServerNoContent, *ClaimServerUnauthorized, *ClaimServerNotFound, *ClaimServerConflict, *ClaimServerStatus425, *ClaimServerInternalServerError, *ClaimServerServiceUnavailable, error) CreateSession(params *CreateSessionParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSessionOK, *CreateSessionBadRequest, *CreateSessionUnauthorized, *CreateSessionNotFound, *CreateSessionConflict, *CreateSessionInternalServerError, *CreateSessionServiceUnavailable, error) GetSession(params *GetSessionParams, authInfo runtime.ClientAuthInfoWriter) (*GetSessionOK, *GetSessionUnauthorized, *GetSessionNotFound, *GetSessionInternalServerError, 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 session API client.
type CreateSessionBadRequest ¶
type CreateSessionBadRequest struct {
Payload *dsmcclientmodels.ResponseError
}
CreateSessionBadRequest handles this case with default header values.
malformed request
func NewCreateSessionBadRequest ¶
func NewCreateSessionBadRequest() *CreateSessionBadRequest
NewCreateSessionBadRequest creates a CreateSessionBadRequest with default headers values
func (*CreateSessionBadRequest) Error ¶
func (o *CreateSessionBadRequest) Error() string
func (*CreateSessionBadRequest) GetPayload ¶
func (o *CreateSessionBadRequest) GetPayload() *dsmcclientmodels.ResponseError
type CreateSessionConflict ¶
type CreateSessionConflict struct {
Payload *dsmcclientmodels.ResponseError
}
CreateSessionConflict handles this case with default header values.
session already exists
func NewCreateSessionConflict ¶
func NewCreateSessionConflict() *CreateSessionConflict
NewCreateSessionConflict creates a CreateSessionConflict with default headers values
func (*CreateSessionConflict) Error ¶
func (o *CreateSessionConflict) Error() string
func (*CreateSessionConflict) GetPayload ¶
func (o *CreateSessionConflict) GetPayload() *dsmcclientmodels.ResponseError
type CreateSessionInternalServerError ¶
type CreateSessionInternalServerError struct {
Payload *dsmcclientmodels.ResponseError
}
CreateSessionInternalServerError handles this case with default header values.
Internal Server Error
func NewCreateSessionInternalServerError ¶
func NewCreateSessionInternalServerError() *CreateSessionInternalServerError
NewCreateSessionInternalServerError creates a CreateSessionInternalServerError with default headers values
func (*CreateSessionInternalServerError) Error ¶
func (o *CreateSessionInternalServerError) Error() string
func (*CreateSessionInternalServerError) GetPayload ¶
func (o *CreateSessionInternalServerError) GetPayload() *dsmcclientmodels.ResponseError
type CreateSessionNotFound ¶
type CreateSessionNotFound struct {
Payload *dsmcclientmodels.ResponseError
}
CreateSessionNotFound handles this case with default header values.
local server not found
func NewCreateSessionNotFound ¶
func NewCreateSessionNotFound() *CreateSessionNotFound
NewCreateSessionNotFound creates a CreateSessionNotFound with default headers values
func (*CreateSessionNotFound) Error ¶
func (o *CreateSessionNotFound) Error() string
func (*CreateSessionNotFound) GetPayload ¶
func (o *CreateSessionNotFound) GetPayload() *dsmcclientmodels.ResponseError
type CreateSessionOK ¶
type CreateSessionOK struct {
Payload *dsmcclientmodels.ModelsSessionResponse
}
CreateSessionOK handles this case with default header values.
session created
func NewCreateSessionOK ¶
func NewCreateSessionOK() *CreateSessionOK
NewCreateSessionOK creates a CreateSessionOK with default headers values
func (*CreateSessionOK) Error ¶
func (o *CreateSessionOK) Error() string
func (*CreateSessionOK) GetPayload ¶
func (o *CreateSessionOK) GetPayload() *dsmcclientmodels.ModelsSessionResponse
type CreateSessionParams ¶
type CreateSessionParams struct { /*Body*/ Body *dsmcclientmodels.ModelsCreateSessionRequest /*Namespace namespace of the game */ Namespace string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateSessionParams contains all the parameters to send to the API endpoint for the create session operation typically these are written to a http.Request
func NewCreateSessionParams ¶
func NewCreateSessionParams() *CreateSessionParams
NewCreateSessionParams creates a new CreateSessionParams object with the default values initialized.
func NewCreateSessionParamsWithContext ¶
func NewCreateSessionParamsWithContext(ctx context.Context) *CreateSessionParams
NewCreateSessionParamsWithContext creates a new CreateSessionParams object with the default values initialized, and the ability to set a context for a request
func NewCreateSessionParamsWithHTTPClient ¶
func NewCreateSessionParamsWithHTTPClient(client *http.Client) *CreateSessionParams
NewCreateSessionParamsWithHTTPClient creates a new CreateSessionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateSessionParamsWithTimeout ¶
func NewCreateSessionParamsWithTimeout(timeout time.Duration) *CreateSessionParams
NewCreateSessionParamsWithTimeout creates a new CreateSessionParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateSessionParams) SetBody ¶
func (o *CreateSessionParams) SetBody(body *dsmcclientmodels.ModelsCreateSessionRequest)
SetBody adds the body to the create session params
func (*CreateSessionParams) SetContext ¶
func (o *CreateSessionParams) SetContext(ctx context.Context)
SetContext adds the context to the create session params
func (*CreateSessionParams) SetHTTPClient ¶
func (o *CreateSessionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create session params
func (*CreateSessionParams) SetNamespace ¶
func (o *CreateSessionParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the create session params
func (*CreateSessionParams) SetTimeout ¶
func (o *CreateSessionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create session params
func (*CreateSessionParams) WithBody ¶
func (o *CreateSessionParams) WithBody(body *dsmcclientmodels.ModelsCreateSessionRequest) *CreateSessionParams
WithBody adds the body to the create session params
func (*CreateSessionParams) WithContext ¶
func (o *CreateSessionParams) WithContext(ctx context.Context) *CreateSessionParams
WithContext adds the context to the create session params
func (*CreateSessionParams) WithHTTPClient ¶
func (o *CreateSessionParams) WithHTTPClient(client *http.Client) *CreateSessionParams
WithHTTPClient adds the HTTPClient to the create session params
func (*CreateSessionParams) WithNamespace ¶
func (o *CreateSessionParams) WithNamespace(namespace string) *CreateSessionParams
WithNamespace adds the namespace to the create session params
func (*CreateSessionParams) WithTimeout ¶
func (o *CreateSessionParams) WithTimeout(timeout time.Duration) *CreateSessionParams
WithTimeout adds the timeout to the create session params
func (*CreateSessionParams) WriteToRequest ¶
func (o *CreateSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateSessionReader ¶
type CreateSessionReader struct {
// contains filtered or unexported fields
}
CreateSessionReader is a Reader for the CreateSession structure.
func (*CreateSessionReader) ReadResponse ¶
func (o *CreateSessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateSessionServiceUnavailable ¶
type CreateSessionServiceUnavailable struct {
}CreateSessionServiceUnavailable handles this case with default header values.
server count is at max
func NewCreateSessionServiceUnavailable ¶
func NewCreateSessionServiceUnavailable() *CreateSessionServiceUnavailable
NewCreateSessionServiceUnavailable creates a CreateSessionServiceUnavailable with default headers values
func (*CreateSessionServiceUnavailable) Error ¶
func (o *CreateSessionServiceUnavailable) Error() string
func (*CreateSessionServiceUnavailable) GetPayload ¶
func (o *CreateSessionServiceUnavailable) GetPayload() *dsmcclientmodels.ResponseError
type CreateSessionUnauthorized ¶
type CreateSessionUnauthorized struct {
}CreateSessionUnauthorized handles this case with default header values.
Unauthorized
func NewCreateSessionUnauthorized ¶
func NewCreateSessionUnauthorized() *CreateSessionUnauthorized
NewCreateSessionUnauthorized creates a CreateSessionUnauthorized with default headers values
func (*CreateSessionUnauthorized) Error ¶
func (o *CreateSessionUnauthorized) Error() string
func (*CreateSessionUnauthorized) GetPayload ¶
func (o *CreateSessionUnauthorized) GetPayload() *dsmcclientmodels.ResponseError
type GetSessionInternalServerError ¶
type GetSessionInternalServerError struct {
Payload *dsmcclientmodels.ResponseError
}
GetSessionInternalServerError handles this case with default header values.
Internal Server Error
func NewGetSessionInternalServerError ¶
func NewGetSessionInternalServerError() *GetSessionInternalServerError
NewGetSessionInternalServerError creates a GetSessionInternalServerError with default headers values
func (*GetSessionInternalServerError) Error ¶
func (o *GetSessionInternalServerError) Error() string
func (*GetSessionInternalServerError) GetPayload ¶
func (o *GetSessionInternalServerError) GetPayload() *dsmcclientmodels.ResponseError
type GetSessionNotFound ¶
type GetSessionNotFound struct {
Payload *dsmcclientmodels.ResponseError
}
GetSessionNotFound handles this case with default header values.
session not found
func NewGetSessionNotFound ¶
func NewGetSessionNotFound() *GetSessionNotFound
NewGetSessionNotFound creates a GetSessionNotFound with default headers values
func (*GetSessionNotFound) Error ¶
func (o *GetSessionNotFound) Error() string
func (*GetSessionNotFound) GetPayload ¶
func (o *GetSessionNotFound) GetPayload() *dsmcclientmodels.ResponseError
type GetSessionOK ¶
type GetSessionOK struct {
Payload *dsmcclientmodels.ModelsSessionResponse
}
GetSessionOK handles this case with default header values.
session queried
func NewGetSessionOK ¶
func NewGetSessionOK() *GetSessionOK
NewGetSessionOK creates a GetSessionOK with default headers values
func (*GetSessionOK) Error ¶
func (o *GetSessionOK) Error() string
func (*GetSessionOK) GetPayload ¶
func (o *GetSessionOK) GetPayload() *dsmcclientmodels.ModelsSessionResponse
type GetSessionParams ¶
type GetSessionParams struct { /*Namespace namespace of the game */ Namespace string /*SessionID session ID */ SessionID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSessionParams contains all the parameters to send to the API endpoint for the get session operation typically these are written to a http.Request
func NewGetSessionParams ¶
func NewGetSessionParams() *GetSessionParams
NewGetSessionParams creates a new GetSessionParams object with the default values initialized.
func NewGetSessionParamsWithContext ¶
func NewGetSessionParamsWithContext(ctx context.Context) *GetSessionParams
NewGetSessionParamsWithContext creates a new GetSessionParams object with the default values initialized, and the ability to set a context for a request
func NewGetSessionParamsWithHTTPClient ¶
func NewGetSessionParamsWithHTTPClient(client *http.Client) *GetSessionParams
NewGetSessionParamsWithHTTPClient creates a new GetSessionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetSessionParamsWithTimeout ¶
func NewGetSessionParamsWithTimeout(timeout time.Duration) *GetSessionParams
NewGetSessionParamsWithTimeout creates a new GetSessionParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetSessionParams) SetContext ¶
func (o *GetSessionParams) SetContext(ctx context.Context)
SetContext adds the context to the get session params
func (*GetSessionParams) SetHTTPClient ¶
func (o *GetSessionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get session params
func (*GetSessionParams) SetNamespace ¶
func (o *GetSessionParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the get session params
func (*GetSessionParams) SetSessionID ¶
func (o *GetSessionParams) SetSessionID(sessionID string)
SetSessionID adds the sessionId to the get session params
func (*GetSessionParams) SetTimeout ¶
func (o *GetSessionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get session params
func (*GetSessionParams) WithContext ¶
func (o *GetSessionParams) WithContext(ctx context.Context) *GetSessionParams
WithContext adds the context to the get session params
func (*GetSessionParams) WithHTTPClient ¶
func (o *GetSessionParams) WithHTTPClient(client *http.Client) *GetSessionParams
WithHTTPClient adds the HTTPClient to the get session params
func (*GetSessionParams) WithNamespace ¶
func (o *GetSessionParams) WithNamespace(namespace string) *GetSessionParams
WithNamespace adds the namespace to the get session params
func (*GetSessionParams) WithSessionID ¶
func (o *GetSessionParams) WithSessionID(sessionID string) *GetSessionParams
WithSessionID adds the sessionID to the get session params
func (*GetSessionParams) WithTimeout ¶
func (o *GetSessionParams) WithTimeout(timeout time.Duration) *GetSessionParams
WithTimeout adds the timeout to the get session params
func (*GetSessionParams) WriteToRequest ¶
func (o *GetSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSessionReader ¶
type GetSessionReader struct {
// contains filtered or unexported fields
}
GetSessionReader is a Reader for the GetSession structure.
func (*GetSessionReader) ReadResponse ¶
func (o *GetSessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSessionUnauthorized ¶
type GetSessionUnauthorized struct {
}GetSessionUnauthorized handles this case with default header values.
Unauthorized
func NewGetSessionUnauthorized ¶
func NewGetSessionUnauthorized() *GetSessionUnauthorized
NewGetSessionUnauthorized creates a GetSessionUnauthorized with default headers values
func (*GetSessionUnauthorized) Error ¶
func (o *GetSessionUnauthorized) Error() string
func (*GetSessionUnauthorized) GetPayload ¶
func (o *GetSessionUnauthorized) GetPayload() *dsmcclientmodels.ResponseError