Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateSession(params *CreateSessionParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSessionOK, *CreateSessionBadRequest, *CreateSessionConflict, ...)
- func (a *Client) DeleteSession(params *DeleteSessionParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSessionOK, *DeleteSessionBadRequest, *DeleteSessionNotFound, ...)
- func (a *Client) GetSession(params *GetSessionParams, authInfo runtime.ClientAuthInfoWriter) (*GetSessionOK, *GetSessionNotFound, *GetSessionInternalServerError, error)
- func (a *Client) GetSessionByUserIDs(params *GetSessionByUserIDsParams, authInfo runtime.ClientAuthInfoWriter) (*GetSessionByUserIDsOK, *GetSessionByUserIDsBadRequest, ...)
- func (a *Client) QuerySession(params *QuerySessionParams, authInfo runtime.ClientAuthInfoWriter) (*QuerySessionOK, *QuerySessionBadRequest, *QuerySessionInternalServerError, ...)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateSession(params *UpdateSessionParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateSessionOK, *UpdateSessionBadRequest, *UpdateSessionNotFound, ...)
- type ClientService
- type CreateSessionBadRequest
- type CreateSessionConflict
- type CreateSessionInternalServerError
- type CreateSessionOK
- type CreateSessionParams
- func (o *CreateSessionParams) SetBody(body *sessionbrowserclientmodels.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 *sessionbrowserclientmodels.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 DeleteSessionBadRequest
- type DeleteSessionInternalServerError
- type DeleteSessionNotFound
- type DeleteSessionOK
- type DeleteSessionParams
- func (o *DeleteSessionParams) SetContext(ctx context.Context)
- func (o *DeleteSessionParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSessionParams) SetNamespace(namespace string)
- func (o *DeleteSessionParams) SetSessionID(sessionID string)
- func (o *DeleteSessionParams) SetTimeout(timeout time.Duration)
- func (o *DeleteSessionParams) WithContext(ctx context.Context) *DeleteSessionParams
- func (o *DeleteSessionParams) WithHTTPClient(client *http.Client) *DeleteSessionParams
- func (o *DeleteSessionParams) WithNamespace(namespace string) *DeleteSessionParams
- func (o *DeleteSessionParams) WithSessionID(sessionID string) *DeleteSessionParams
- func (o *DeleteSessionParams) WithTimeout(timeout time.Duration) *DeleteSessionParams
- func (o *DeleteSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSessionReader
- type GetSessionByUserIDsBadRequest
- type GetSessionByUserIDsInternalServerError
- type GetSessionByUserIDsOK
- type GetSessionByUserIDsParams
- func NewGetSessionByUserIDsParams() *GetSessionByUserIDsParams
- func NewGetSessionByUserIDsParamsWithContext(ctx context.Context) *GetSessionByUserIDsParams
- func NewGetSessionByUserIDsParamsWithHTTPClient(client *http.Client) *GetSessionByUserIDsParams
- func NewGetSessionByUserIDsParamsWithTimeout(timeout time.Duration) *GetSessionByUserIDsParams
- func (o *GetSessionByUserIDsParams) SetContext(ctx context.Context)
- func (o *GetSessionByUserIDsParams) SetHTTPClient(client *http.Client)
- func (o *GetSessionByUserIDsParams) SetNamespace(namespace string)
- func (o *GetSessionByUserIDsParams) SetTimeout(timeout time.Duration)
- func (o *GetSessionByUserIDsParams) SetUserIds(userIds string)
- func (o *GetSessionByUserIDsParams) WithContext(ctx context.Context) *GetSessionByUserIDsParams
- func (o *GetSessionByUserIDsParams) WithHTTPClient(client *http.Client) *GetSessionByUserIDsParams
- func (o *GetSessionByUserIDsParams) WithNamespace(namespace string) *GetSessionByUserIDsParams
- func (o *GetSessionByUserIDsParams) WithTimeout(timeout time.Duration) *GetSessionByUserIDsParams
- func (o *GetSessionByUserIDsParams) WithUserIds(userIds string) *GetSessionByUserIDsParams
- func (o *GetSessionByUserIDsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSessionByUserIDsReader
- 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 QuerySessionBadRequest
- type QuerySessionInternalServerError
- type QuerySessionOK
- type QuerySessionParams
- func (o *QuerySessionParams) SetContext(ctx context.Context)
- func (o *QuerySessionParams) SetGameMode(gameMode *string)
- func (o *QuerySessionParams) SetGameVersion(gameVersion *string)
- func (o *QuerySessionParams) SetHTTPClient(client *http.Client)
- func (o *QuerySessionParams) SetJoinable(joinable *string)
- func (o *QuerySessionParams) SetLimit(limit *string)
- func (o *QuerySessionParams) SetMatchID(matchID *string)
- func (o *QuerySessionParams) SetNamespace(namespace string)
- func (o *QuerySessionParams) SetOffset(offset *string)
- func (o *QuerySessionParams) SetServerStatus(serverStatus *string)
- func (o *QuerySessionParams) SetSessionType(sessionType string)
- func (o *QuerySessionParams) SetTimeout(timeout time.Duration)
- func (o *QuerySessionParams) SetUserID(userID *string)
- func (o *QuerySessionParams) WithContext(ctx context.Context) *QuerySessionParams
- func (o *QuerySessionParams) WithGameMode(gameMode *string) *QuerySessionParams
- func (o *QuerySessionParams) WithGameVersion(gameVersion *string) *QuerySessionParams
- func (o *QuerySessionParams) WithHTTPClient(client *http.Client) *QuerySessionParams
- func (o *QuerySessionParams) WithJoinable(joinable *string) *QuerySessionParams
- func (o *QuerySessionParams) WithLimit(limit *string) *QuerySessionParams
- func (o *QuerySessionParams) WithMatchID(matchID *string) *QuerySessionParams
- func (o *QuerySessionParams) WithNamespace(namespace string) *QuerySessionParams
- func (o *QuerySessionParams) WithOffset(offset *string) *QuerySessionParams
- func (o *QuerySessionParams) WithServerStatus(serverStatus *string) *QuerySessionParams
- func (o *QuerySessionParams) WithSessionType(sessionType string) *QuerySessionParams
- func (o *QuerySessionParams) WithTimeout(timeout time.Duration) *QuerySessionParams
- func (o *QuerySessionParams) WithUserID(userID *string) *QuerySessionParams
- func (o *QuerySessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type QuerySessionReader
- type UpdateSessionBadRequest
- type UpdateSessionInternalServerError
- type UpdateSessionNotFound
- type UpdateSessionOK
- type UpdateSessionParams
- func (o *UpdateSessionParams) SetBody(body *sessionbrowserclientmodels.ModelsUpdateSessionRequest)
- func (o *UpdateSessionParams) SetContext(ctx context.Context)
- func (o *UpdateSessionParams) SetHTTPClient(client *http.Client)
- func (o *UpdateSessionParams) SetNamespace(namespace string)
- func (o *UpdateSessionParams) SetSessionID(sessionID string)
- func (o *UpdateSessionParams) SetTimeout(timeout time.Duration)
- func (o *UpdateSessionParams) WithBody(body *sessionbrowserclientmodels.ModelsUpdateSessionRequest) *UpdateSessionParams
- func (o *UpdateSessionParams) WithContext(ctx context.Context) *UpdateSessionParams
- func (o *UpdateSessionParams) WithHTTPClient(client *http.Client) *UpdateSessionParams
- func (o *UpdateSessionParams) WithNamespace(namespace string) *UpdateSessionParams
- func (o *UpdateSessionParams) WithSessionID(sessionID string) *UpdateSessionParams
- func (o *UpdateSessionParams) WithTimeout(timeout time.Duration) *UpdateSessionParams
- func (o *UpdateSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateSessionReader
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 session API
func (*Client) CreateSession ¶
func (a *Client) CreateSession(params *CreateSessionParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSessionOK, *CreateSessionBadRequest, *CreateSessionConflict, *CreateSessionInternalServerError, error)
CreateSession registers a new game session Required permission: NAMESPACE:{namespace}:SESSIONBROWSER:SESSION [CREATE]
Required scope: social
This end point intended to be called directly by P2P game client host or by DSMC
func (*Client) DeleteSession ¶
func (a *Client) DeleteSession(params *DeleteSessionParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSessionOK, *DeleteSessionBadRequest, *DeleteSessionNotFound, *DeleteSessionInternalServerError, error)
DeleteSession deletes specified session by session ID Required permission: NAMESPACE:{namespace}:SESSIONBROWSER:SESSION [DELETE]
Required scope: social
Delete the session by session ID
func (*Client) GetSession ¶
func (a *Client) GetSession(params *GetSessionParams, authInfo runtime.ClientAuthInfoWriter) (*GetSessionOK, *GetSessionNotFound, *GetSessionInternalServerError, error)
GetSession gets specified session by session ID Required permission: NAMESPACE:{namespace}:SESSIONBROWSER:SESSION [READ]
Required scope: social
Get the session by session ID
func (*Client) GetSessionByUserIDs ¶
func (a *Client) GetSessionByUserIDs(params *GetSessionByUserIDsParams, authInfo runtime.ClientAuthInfoWriter) (*GetSessionByUserIDsOK, *GetSessionByUserIDsBadRequest, *GetSessionByUserIDsInternalServerError, error)
GetSessionByUserIDs queries game sessions by comma separated user ids Required permission: NAMESPACE:{namespace}:SESSIONBROWSER:SESSION [READ]
Required scope: social
Query game sessions by comma separated user ids
func (*Client) QuerySession ¶
func (a *Client) QuerySession(params *QuerySessionParams, authInfo runtime.ClientAuthInfoWriter) (*QuerySessionOK, *QuerySessionBadRequest, *QuerySessionInternalServerError, error)
QuerySession queries to available game session Required permission: NAMESPACE:{namespace}:SESSIONBROWSER:SESSION [READ]
Required scope: social
Query available game session
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateSession ¶
func (a *Client) UpdateSession(params *UpdateSessionParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateSessionOK, *UpdateSessionBadRequest, *UpdateSessionNotFound, *UpdateSessionInternalServerError, error)
UpdateSession updates session Required permission: NAMESPACE:{namespace}:SESSIONBROWSER:SESSION [UPDATE]
Required scope: social
Update game session, used to update the current player
type ClientService ¶
type ClientService interface { CreateSession(params *CreateSessionParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSessionOK, *CreateSessionBadRequest, *CreateSessionConflict, *CreateSessionInternalServerError, error) DeleteSession(params *DeleteSessionParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSessionOK, *DeleteSessionBadRequest, *DeleteSessionNotFound, *DeleteSessionInternalServerError, error) GetSession(params *GetSessionParams, authInfo runtime.ClientAuthInfoWriter) (*GetSessionOK, *GetSessionNotFound, *GetSessionInternalServerError, error) GetSessionByUserIDs(params *GetSessionByUserIDsParams, authInfo runtime.ClientAuthInfoWriter) (*GetSessionByUserIDsOK, *GetSessionByUserIDsBadRequest, *GetSessionByUserIDsInternalServerError, error) QuerySession(params *QuerySessionParams, authInfo runtime.ClientAuthInfoWriter) (*QuerySessionOK, *QuerySessionBadRequest, *QuerySessionInternalServerError, error) UpdateSession(params *UpdateSessionParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateSessionOK, *UpdateSessionBadRequest, *UpdateSessionNotFound, *UpdateSessionInternalServerError, 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 *sessionbrowserclientmodels.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() *sessionbrowserclientmodels.ResponseError
type CreateSessionConflict ¶
type CreateSessionConflict struct {
Payload *sessionbrowserclientmodels.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() *sessionbrowserclientmodels.ResponseError
type CreateSessionInternalServerError ¶
type CreateSessionInternalServerError struct {
Payload *sessionbrowserclientmodels.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() *sessionbrowserclientmodels.ResponseError
type CreateSessionOK ¶
type CreateSessionOK struct {
Payload *sessionbrowserclientmodels.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() *sessionbrowserclientmodels.ModelsSessionResponse
type CreateSessionParams ¶
type CreateSessionParams struct { /*Body*/ Body *sessionbrowserclientmodels.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 *sessionbrowserclientmodels.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 *sessionbrowserclientmodels.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 DeleteSessionBadRequest ¶
type DeleteSessionBadRequest struct {
Payload *sessionbrowserclientmodels.ResponseError
}
DeleteSessionBadRequest handles this case with default header values.
malformed request
func NewDeleteSessionBadRequest ¶
func NewDeleteSessionBadRequest() *DeleteSessionBadRequest
NewDeleteSessionBadRequest creates a DeleteSessionBadRequest with default headers values
func (*DeleteSessionBadRequest) Error ¶
func (o *DeleteSessionBadRequest) Error() string
func (*DeleteSessionBadRequest) GetPayload ¶
func (o *DeleteSessionBadRequest) GetPayload() *sessionbrowserclientmodels.ResponseError
type DeleteSessionInternalServerError ¶
type DeleteSessionInternalServerError struct {
Payload *sessionbrowserclientmodels.ResponseError
}
DeleteSessionInternalServerError handles this case with default header values.
Internal Server Error
func NewDeleteSessionInternalServerError ¶
func NewDeleteSessionInternalServerError() *DeleteSessionInternalServerError
NewDeleteSessionInternalServerError creates a DeleteSessionInternalServerError with default headers values
func (*DeleteSessionInternalServerError) Error ¶
func (o *DeleteSessionInternalServerError) Error() string
func (*DeleteSessionInternalServerError) GetPayload ¶
func (o *DeleteSessionInternalServerError) GetPayload() *sessionbrowserclientmodels.ResponseError
type DeleteSessionNotFound ¶
type DeleteSessionNotFound struct {
Payload *sessionbrowserclientmodels.ResponseError
}
DeleteSessionNotFound handles this case with default header values.
session not found
func NewDeleteSessionNotFound ¶
func NewDeleteSessionNotFound() *DeleteSessionNotFound
NewDeleteSessionNotFound creates a DeleteSessionNotFound with default headers values
func (*DeleteSessionNotFound) Error ¶
func (o *DeleteSessionNotFound) Error() string
func (*DeleteSessionNotFound) GetPayload ¶
func (o *DeleteSessionNotFound) GetPayload() *sessionbrowserclientmodels.ResponseError
type DeleteSessionOK ¶
type DeleteSessionOK struct {
Payload *sessionbrowserclientmodels.ModelsSessionResponse
}
DeleteSessionOK handles this case with default header values.
session get
func NewDeleteSessionOK ¶
func NewDeleteSessionOK() *DeleteSessionOK
NewDeleteSessionOK creates a DeleteSessionOK with default headers values
func (*DeleteSessionOK) Error ¶
func (o *DeleteSessionOK) Error() string
func (*DeleteSessionOK) GetPayload ¶
func (o *DeleteSessionOK) GetPayload() *sessionbrowserclientmodels.ModelsSessionResponse
type DeleteSessionParams ¶
type DeleteSessionParams struct { /*Namespace namespace of the game */ Namespace string /*SessionID session ID */ SessionID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteSessionParams contains all the parameters to send to the API endpoint for the delete session operation typically these are written to a http.Request
func NewDeleteSessionParams ¶
func NewDeleteSessionParams() *DeleteSessionParams
NewDeleteSessionParams creates a new DeleteSessionParams object with the default values initialized.
func NewDeleteSessionParamsWithContext ¶
func NewDeleteSessionParamsWithContext(ctx context.Context) *DeleteSessionParams
NewDeleteSessionParamsWithContext creates a new DeleteSessionParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteSessionParamsWithHTTPClient ¶
func NewDeleteSessionParamsWithHTTPClient(client *http.Client) *DeleteSessionParams
NewDeleteSessionParamsWithHTTPClient creates a new DeleteSessionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteSessionParamsWithTimeout ¶
func NewDeleteSessionParamsWithTimeout(timeout time.Duration) *DeleteSessionParams
NewDeleteSessionParamsWithTimeout creates a new DeleteSessionParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteSessionParams) SetContext ¶
func (o *DeleteSessionParams) SetContext(ctx context.Context)
SetContext adds the context to the delete session params
func (*DeleteSessionParams) SetHTTPClient ¶
func (o *DeleteSessionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete session params
func (*DeleteSessionParams) SetNamespace ¶
func (o *DeleteSessionParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the delete session params
func (*DeleteSessionParams) SetSessionID ¶
func (o *DeleteSessionParams) SetSessionID(sessionID string)
SetSessionID adds the sessionId to the delete session params
func (*DeleteSessionParams) SetTimeout ¶
func (o *DeleteSessionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete session params
func (*DeleteSessionParams) WithContext ¶
func (o *DeleteSessionParams) WithContext(ctx context.Context) *DeleteSessionParams
WithContext adds the context to the delete session params
func (*DeleteSessionParams) WithHTTPClient ¶
func (o *DeleteSessionParams) WithHTTPClient(client *http.Client) *DeleteSessionParams
WithHTTPClient adds the HTTPClient to the delete session params
func (*DeleteSessionParams) WithNamespace ¶
func (o *DeleteSessionParams) WithNamespace(namespace string) *DeleteSessionParams
WithNamespace adds the namespace to the delete session params
func (*DeleteSessionParams) WithSessionID ¶
func (o *DeleteSessionParams) WithSessionID(sessionID string) *DeleteSessionParams
WithSessionID adds the sessionID to the delete session params
func (*DeleteSessionParams) WithTimeout ¶
func (o *DeleteSessionParams) WithTimeout(timeout time.Duration) *DeleteSessionParams
WithTimeout adds the timeout to the delete session params
func (*DeleteSessionParams) WriteToRequest ¶
func (o *DeleteSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteSessionReader ¶
type DeleteSessionReader struct {
// contains filtered or unexported fields
}
DeleteSessionReader is a Reader for the DeleteSession structure.
func (*DeleteSessionReader) ReadResponse ¶
func (o *DeleteSessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSessionByUserIDsBadRequest ¶
type GetSessionByUserIDsBadRequest struct {
Payload *sessionbrowserclientmodels.ResponseError
}
GetSessionByUserIDsBadRequest handles this case with default header values.
malformed request
func NewGetSessionByUserIDsBadRequest ¶
func NewGetSessionByUserIDsBadRequest() *GetSessionByUserIDsBadRequest
NewGetSessionByUserIDsBadRequest creates a GetSessionByUserIDsBadRequest with default headers values
func (*GetSessionByUserIDsBadRequest) Error ¶
func (o *GetSessionByUserIDsBadRequest) Error() string
func (*GetSessionByUserIDsBadRequest) GetPayload ¶
func (o *GetSessionByUserIDsBadRequest) GetPayload() *sessionbrowserclientmodels.ResponseError
type GetSessionByUserIDsInternalServerError ¶
type GetSessionByUserIDsInternalServerError struct {
Payload *sessionbrowserclientmodels.ResponseError
}
GetSessionByUserIDsInternalServerError handles this case with default header values.
Internal Server Error
func NewGetSessionByUserIDsInternalServerError ¶
func NewGetSessionByUserIDsInternalServerError() *GetSessionByUserIDsInternalServerError
NewGetSessionByUserIDsInternalServerError creates a GetSessionByUserIDsInternalServerError with default headers values
func (*GetSessionByUserIDsInternalServerError) Error ¶
func (o *GetSessionByUserIDsInternalServerError) Error() string
func (*GetSessionByUserIDsInternalServerError) GetPayload ¶
func (o *GetSessionByUserIDsInternalServerError) GetPayload() *sessionbrowserclientmodels.ResponseError
type GetSessionByUserIDsOK ¶
type GetSessionByUserIDsOK struct {
Payload *sessionbrowserclientmodels.ModelsSessionByUserIDsResponse
}
GetSessionByUserIDsOK handles this case with default header values.
session get
func NewGetSessionByUserIDsOK ¶
func NewGetSessionByUserIDsOK() *GetSessionByUserIDsOK
NewGetSessionByUserIDsOK creates a GetSessionByUserIDsOK with default headers values
func (*GetSessionByUserIDsOK) Error ¶
func (o *GetSessionByUserIDsOK) Error() string
func (*GetSessionByUserIDsOK) GetPayload ¶
func (o *GetSessionByUserIDsOK) GetPayload() *sessionbrowserclientmodels.ModelsSessionByUserIDsResponse
type GetSessionByUserIDsParams ¶
type GetSessionByUserIDsParams struct { /*Namespace namespace of the game */ Namespace string /*UserIds comma separated user ids */ UserIds string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSessionByUserIDsParams contains all the parameters to send to the API endpoint for the get session by user i ds operation typically these are written to a http.Request
func NewGetSessionByUserIDsParams ¶
func NewGetSessionByUserIDsParams() *GetSessionByUserIDsParams
NewGetSessionByUserIDsParams creates a new GetSessionByUserIDsParams object with the default values initialized.
func NewGetSessionByUserIDsParamsWithContext ¶
func NewGetSessionByUserIDsParamsWithContext(ctx context.Context) *GetSessionByUserIDsParams
NewGetSessionByUserIDsParamsWithContext creates a new GetSessionByUserIDsParams object with the default values initialized, and the ability to set a context for a request
func NewGetSessionByUserIDsParamsWithHTTPClient ¶
func NewGetSessionByUserIDsParamsWithHTTPClient(client *http.Client) *GetSessionByUserIDsParams
NewGetSessionByUserIDsParamsWithHTTPClient creates a new GetSessionByUserIDsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetSessionByUserIDsParamsWithTimeout ¶
func NewGetSessionByUserIDsParamsWithTimeout(timeout time.Duration) *GetSessionByUserIDsParams
NewGetSessionByUserIDsParamsWithTimeout creates a new GetSessionByUserIDsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetSessionByUserIDsParams) SetContext ¶
func (o *GetSessionByUserIDsParams) SetContext(ctx context.Context)
SetContext adds the context to the get session by user i ds params
func (*GetSessionByUserIDsParams) SetHTTPClient ¶
func (o *GetSessionByUserIDsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get session by user i ds params
func (*GetSessionByUserIDsParams) SetNamespace ¶
func (o *GetSessionByUserIDsParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the get session by user i ds params
func (*GetSessionByUserIDsParams) SetTimeout ¶
func (o *GetSessionByUserIDsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get session by user i ds params
func (*GetSessionByUserIDsParams) SetUserIds ¶
func (o *GetSessionByUserIDsParams) SetUserIds(userIds string)
SetUserIds adds the userIds to the get session by user i ds params
func (*GetSessionByUserIDsParams) WithContext ¶
func (o *GetSessionByUserIDsParams) WithContext(ctx context.Context) *GetSessionByUserIDsParams
WithContext adds the context to the get session by user i ds params
func (*GetSessionByUserIDsParams) WithHTTPClient ¶
func (o *GetSessionByUserIDsParams) WithHTTPClient(client *http.Client) *GetSessionByUserIDsParams
WithHTTPClient adds the HTTPClient to the get session by user i ds params
func (*GetSessionByUserIDsParams) WithNamespace ¶
func (o *GetSessionByUserIDsParams) WithNamespace(namespace string) *GetSessionByUserIDsParams
WithNamespace adds the namespace to the get session by user i ds params
func (*GetSessionByUserIDsParams) WithTimeout ¶
func (o *GetSessionByUserIDsParams) WithTimeout(timeout time.Duration) *GetSessionByUserIDsParams
WithTimeout adds the timeout to the get session by user i ds params
func (*GetSessionByUserIDsParams) WithUserIds ¶
func (o *GetSessionByUserIDsParams) WithUserIds(userIds string) *GetSessionByUserIDsParams
WithUserIds adds the userIds to the get session by user i ds params
func (*GetSessionByUserIDsParams) WriteToRequest ¶
func (o *GetSessionByUserIDsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSessionByUserIDsReader ¶
type GetSessionByUserIDsReader struct {
// contains filtered or unexported fields
}
GetSessionByUserIDsReader is a Reader for the GetSessionByUserIDs structure.
func (*GetSessionByUserIDsReader) ReadResponse ¶
func (o *GetSessionByUserIDsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSessionInternalServerError ¶
type GetSessionInternalServerError struct {
Payload *sessionbrowserclientmodels.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() *sessionbrowserclientmodels.ResponseError
type GetSessionNotFound ¶
type GetSessionNotFound struct {
Payload *sessionbrowserclientmodels.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() *sessionbrowserclientmodels.ResponseError
type GetSessionOK ¶
type GetSessionOK struct {
Payload *sessionbrowserclientmodels.ModelsSessionResponse
}
GetSessionOK handles this case with default header values.
session get
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() *sessionbrowserclientmodels.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 QuerySessionBadRequest ¶
type QuerySessionBadRequest struct {
Payload *sessionbrowserclientmodels.ResponseError
}
QuerySessionBadRequest handles this case with default header values.
malformed request
func NewQuerySessionBadRequest ¶
func NewQuerySessionBadRequest() *QuerySessionBadRequest
NewQuerySessionBadRequest creates a QuerySessionBadRequest with default headers values
func (*QuerySessionBadRequest) Error ¶
func (o *QuerySessionBadRequest) Error() string
func (*QuerySessionBadRequest) GetPayload ¶
func (o *QuerySessionBadRequest) GetPayload() *sessionbrowserclientmodels.ResponseError
type QuerySessionInternalServerError ¶
type QuerySessionInternalServerError struct {
Payload *sessionbrowserclientmodels.ResponseError
}
QuerySessionInternalServerError handles this case with default header values.
Internal Server Error
func NewQuerySessionInternalServerError ¶
func NewQuerySessionInternalServerError() *QuerySessionInternalServerError
NewQuerySessionInternalServerError creates a QuerySessionInternalServerError with default headers values
func (*QuerySessionInternalServerError) Error ¶
func (o *QuerySessionInternalServerError) Error() string
func (*QuerySessionInternalServerError) GetPayload ¶
func (o *QuerySessionInternalServerError) GetPayload() *sessionbrowserclientmodels.ResponseError
type QuerySessionOK ¶
type QuerySessionOK struct {
Payload *sessionbrowserclientmodels.ModelsSessionQueryResponse
}
QuerySessionOK handles this case with default header values.
session get
func NewQuerySessionOK ¶
func NewQuerySessionOK() *QuerySessionOK
NewQuerySessionOK creates a QuerySessionOK with default headers values
func (*QuerySessionOK) Error ¶
func (o *QuerySessionOK) Error() string
func (*QuerySessionOK) GetPayload ¶
func (o *QuerySessionOK) GetPayload() *sessionbrowserclientmodels.ModelsSessionQueryResponse
type QuerySessionParams ¶
type QuerySessionParams struct { /*GameMode Game mode of the session to query */ GameMode *string /*GameVersion Game version of the session to query */ GameVersion *string /*Joinable filter session if joinable or not, accept 'true' or 'false' */ Joinable *string /*Limit max item to be returned */ Limit *string /*MatchID filter session by matchmaking ID */ MatchID *string /*Namespace namespace of the game */ Namespace string /*Offset skip some item(s), offset=3, will skip 3 first items */ Offset *string /*ServerStatus filter session by server status, accept CREATING,READY,BUSY,REMOVING,UNREACHABLE */ ServerStatus *string /*SessionType Session type to query, value is 'p2p' or 'dedicated' */ SessionType string /*UserID Owner of the P2P session. Dedicated server does not have user_id */ UserID *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
QuerySessionParams contains all the parameters to send to the API endpoint for the query session operation typically these are written to a http.Request
func NewQuerySessionParams ¶
func NewQuerySessionParams() *QuerySessionParams
NewQuerySessionParams creates a new QuerySessionParams object with the default values initialized.
func NewQuerySessionParamsWithContext ¶
func NewQuerySessionParamsWithContext(ctx context.Context) *QuerySessionParams
NewQuerySessionParamsWithContext creates a new QuerySessionParams object with the default values initialized, and the ability to set a context for a request
func NewQuerySessionParamsWithHTTPClient ¶
func NewQuerySessionParamsWithHTTPClient(client *http.Client) *QuerySessionParams
NewQuerySessionParamsWithHTTPClient creates a new QuerySessionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewQuerySessionParamsWithTimeout ¶
func NewQuerySessionParamsWithTimeout(timeout time.Duration) *QuerySessionParams
NewQuerySessionParamsWithTimeout creates a new QuerySessionParams object with the default values initialized, and the ability to set a timeout on a request
func (*QuerySessionParams) SetContext ¶
func (o *QuerySessionParams) SetContext(ctx context.Context)
SetContext adds the context to the query session params
func (*QuerySessionParams) SetGameMode ¶
func (o *QuerySessionParams) SetGameMode(gameMode *string)
SetGameMode adds the gameMode to the query session params
func (*QuerySessionParams) SetGameVersion ¶
func (o *QuerySessionParams) SetGameVersion(gameVersion *string)
SetGameVersion adds the gameVersion to the query session params
func (*QuerySessionParams) SetHTTPClient ¶
func (o *QuerySessionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the query session params
func (*QuerySessionParams) SetJoinable ¶
func (o *QuerySessionParams) SetJoinable(joinable *string)
SetJoinable adds the joinable to the query session params
func (*QuerySessionParams) SetLimit ¶
func (o *QuerySessionParams) SetLimit(limit *string)
SetLimit adds the limit to the query session params
func (*QuerySessionParams) SetMatchID ¶
func (o *QuerySessionParams) SetMatchID(matchID *string)
SetMatchID adds the matchId to the query session params
func (*QuerySessionParams) SetNamespace ¶
func (o *QuerySessionParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the query session params
func (*QuerySessionParams) SetOffset ¶
func (o *QuerySessionParams) SetOffset(offset *string)
SetOffset adds the offset to the query session params
func (*QuerySessionParams) SetServerStatus ¶
func (o *QuerySessionParams) SetServerStatus(serverStatus *string)
SetServerStatus adds the serverStatus to the query session params
func (*QuerySessionParams) SetSessionType ¶
func (o *QuerySessionParams) SetSessionType(sessionType string)
SetSessionType adds the sessionType to the query session params
func (*QuerySessionParams) SetTimeout ¶
func (o *QuerySessionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the query session params
func (*QuerySessionParams) SetUserID ¶
func (o *QuerySessionParams) SetUserID(userID *string)
SetUserID adds the userId to the query session params
func (*QuerySessionParams) WithContext ¶
func (o *QuerySessionParams) WithContext(ctx context.Context) *QuerySessionParams
WithContext adds the context to the query session params
func (*QuerySessionParams) WithGameMode ¶
func (o *QuerySessionParams) WithGameMode(gameMode *string) *QuerySessionParams
WithGameMode adds the gameMode to the query session params
func (*QuerySessionParams) WithGameVersion ¶
func (o *QuerySessionParams) WithGameVersion(gameVersion *string) *QuerySessionParams
WithGameVersion adds the gameVersion to the query session params
func (*QuerySessionParams) WithHTTPClient ¶
func (o *QuerySessionParams) WithHTTPClient(client *http.Client) *QuerySessionParams
WithHTTPClient adds the HTTPClient to the query session params
func (*QuerySessionParams) WithJoinable ¶
func (o *QuerySessionParams) WithJoinable(joinable *string) *QuerySessionParams
WithJoinable adds the joinable to the query session params
func (*QuerySessionParams) WithLimit ¶
func (o *QuerySessionParams) WithLimit(limit *string) *QuerySessionParams
WithLimit adds the limit to the query session params
func (*QuerySessionParams) WithMatchID ¶
func (o *QuerySessionParams) WithMatchID(matchID *string) *QuerySessionParams
WithMatchID adds the matchID to the query session params
func (*QuerySessionParams) WithNamespace ¶
func (o *QuerySessionParams) WithNamespace(namespace string) *QuerySessionParams
WithNamespace adds the namespace to the query session params
func (*QuerySessionParams) WithOffset ¶
func (o *QuerySessionParams) WithOffset(offset *string) *QuerySessionParams
WithOffset adds the offset to the query session params
func (*QuerySessionParams) WithServerStatus ¶
func (o *QuerySessionParams) WithServerStatus(serverStatus *string) *QuerySessionParams
WithServerStatus adds the serverStatus to the query session params
func (*QuerySessionParams) WithSessionType ¶
func (o *QuerySessionParams) WithSessionType(sessionType string) *QuerySessionParams
WithSessionType adds the sessionType to the query session params
func (*QuerySessionParams) WithTimeout ¶
func (o *QuerySessionParams) WithTimeout(timeout time.Duration) *QuerySessionParams
WithTimeout adds the timeout to the query session params
func (*QuerySessionParams) WithUserID ¶
func (o *QuerySessionParams) WithUserID(userID *string) *QuerySessionParams
WithUserID adds the userID to the query session params
func (*QuerySessionParams) WriteToRequest ¶
func (o *QuerySessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type QuerySessionReader ¶
type QuerySessionReader struct {
// contains filtered or unexported fields
}
QuerySessionReader is a Reader for the QuerySession structure.
func (*QuerySessionReader) ReadResponse ¶
func (o *QuerySessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateSessionBadRequest ¶
type UpdateSessionBadRequest struct {
Payload *sessionbrowserclientmodels.ResponseError
}
UpdateSessionBadRequest handles this case with default header values.
malformed request
func NewUpdateSessionBadRequest ¶
func NewUpdateSessionBadRequest() *UpdateSessionBadRequest
NewUpdateSessionBadRequest creates a UpdateSessionBadRequest with default headers values
func (*UpdateSessionBadRequest) Error ¶
func (o *UpdateSessionBadRequest) Error() string
func (*UpdateSessionBadRequest) GetPayload ¶
func (o *UpdateSessionBadRequest) GetPayload() *sessionbrowserclientmodels.ResponseError
type UpdateSessionInternalServerError ¶
type UpdateSessionInternalServerError struct {
Payload *sessionbrowserclientmodels.ResponseError
}
UpdateSessionInternalServerError handles this case with default header values.
Internal Server Error
func NewUpdateSessionInternalServerError ¶
func NewUpdateSessionInternalServerError() *UpdateSessionInternalServerError
NewUpdateSessionInternalServerError creates a UpdateSessionInternalServerError with default headers values
func (*UpdateSessionInternalServerError) Error ¶
func (o *UpdateSessionInternalServerError) Error() string
func (*UpdateSessionInternalServerError) GetPayload ¶
func (o *UpdateSessionInternalServerError) GetPayload() *sessionbrowserclientmodels.ResponseError
type UpdateSessionNotFound ¶
type UpdateSessionNotFound struct {
Payload *sessionbrowserclientmodels.ResponseError
}
UpdateSessionNotFound handles this case with default header values.
session not found
func NewUpdateSessionNotFound ¶
func NewUpdateSessionNotFound() *UpdateSessionNotFound
NewUpdateSessionNotFound creates a UpdateSessionNotFound with default headers values
func (*UpdateSessionNotFound) Error ¶
func (o *UpdateSessionNotFound) Error() string
func (*UpdateSessionNotFound) GetPayload ¶
func (o *UpdateSessionNotFound) GetPayload() *sessionbrowserclientmodels.ResponseError
type UpdateSessionOK ¶
type UpdateSessionOK struct {
Payload *sessionbrowserclientmodels.ModelsSessionResponse
}
UpdateSessionOK handles this case with default header values.
session updated
func NewUpdateSessionOK ¶
func NewUpdateSessionOK() *UpdateSessionOK
NewUpdateSessionOK creates a UpdateSessionOK with default headers values
func (*UpdateSessionOK) Error ¶
func (o *UpdateSessionOK) Error() string
func (*UpdateSessionOK) GetPayload ¶
func (o *UpdateSessionOK) GetPayload() *sessionbrowserclientmodels.ModelsSessionResponse
type UpdateSessionParams ¶
type UpdateSessionParams struct { /*Body*/ Body *sessionbrowserclientmodels.ModelsUpdateSessionRequest /*Namespace namespace of the game */ Namespace string /*SessionID session ID */ SessionID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateSessionParams contains all the parameters to send to the API endpoint for the update session operation typically these are written to a http.Request
func NewUpdateSessionParams ¶
func NewUpdateSessionParams() *UpdateSessionParams
NewUpdateSessionParams creates a new UpdateSessionParams object with the default values initialized.
func NewUpdateSessionParamsWithContext ¶
func NewUpdateSessionParamsWithContext(ctx context.Context) *UpdateSessionParams
NewUpdateSessionParamsWithContext creates a new UpdateSessionParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateSessionParamsWithHTTPClient ¶
func NewUpdateSessionParamsWithHTTPClient(client *http.Client) *UpdateSessionParams
NewUpdateSessionParamsWithHTTPClient creates a new UpdateSessionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateSessionParamsWithTimeout ¶
func NewUpdateSessionParamsWithTimeout(timeout time.Duration) *UpdateSessionParams
NewUpdateSessionParamsWithTimeout creates a new UpdateSessionParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateSessionParams) SetBody ¶
func (o *UpdateSessionParams) SetBody(body *sessionbrowserclientmodels.ModelsUpdateSessionRequest)
SetBody adds the body to the update session params
func (*UpdateSessionParams) SetContext ¶
func (o *UpdateSessionParams) SetContext(ctx context.Context)
SetContext adds the context to the update session params
func (*UpdateSessionParams) SetHTTPClient ¶
func (o *UpdateSessionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update session params
func (*UpdateSessionParams) SetNamespace ¶
func (o *UpdateSessionParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the update session params
func (*UpdateSessionParams) SetSessionID ¶
func (o *UpdateSessionParams) SetSessionID(sessionID string)
SetSessionID adds the sessionId to the update session params
func (*UpdateSessionParams) SetTimeout ¶
func (o *UpdateSessionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update session params
func (*UpdateSessionParams) WithBody ¶
func (o *UpdateSessionParams) WithBody(body *sessionbrowserclientmodels.ModelsUpdateSessionRequest) *UpdateSessionParams
WithBody adds the body to the update session params
func (*UpdateSessionParams) WithContext ¶
func (o *UpdateSessionParams) WithContext(ctx context.Context) *UpdateSessionParams
WithContext adds the context to the update session params
func (*UpdateSessionParams) WithHTTPClient ¶
func (o *UpdateSessionParams) WithHTTPClient(client *http.Client) *UpdateSessionParams
WithHTTPClient adds the HTTPClient to the update session params
func (*UpdateSessionParams) WithNamespace ¶
func (o *UpdateSessionParams) WithNamespace(namespace string) *UpdateSessionParams
WithNamespace adds the namespace to the update session params
func (*UpdateSessionParams) WithSessionID ¶
func (o *UpdateSessionParams) WithSessionID(sessionID string) *UpdateSessionParams
WithSessionID adds the sessionID to the update session params
func (*UpdateSessionParams) WithTimeout ¶
func (o *UpdateSessionParams) WithTimeout(timeout time.Duration) *UpdateSessionParams
WithTimeout adds the timeout to the update session params
func (*UpdateSessionParams) WriteToRequest ¶
func (o *UpdateSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateSessionReader ¶
type UpdateSessionReader struct {
// contains filtered or unexported fields
}
UpdateSessionReader is a Reader for the UpdateSession structure.
func (*UpdateSessionReader) ReadResponse ¶
func (o *UpdateSessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- create_session_parameters.go
- create_session_responses.go
- delete_session_parameters.go
- delete_session_responses.go
- get_session_by_user_i_ds_parameters.go
- get_session_by_user_i_ds_responses.go
- get_session_parameters.go
- get_session_responses.go
- query_session_parameters.go
- query_session_responses.go
- session_client.go
- update_session_parameters.go
- update_session_responses.go