session

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 session API

func (*Client) CreateSession

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

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

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

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

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

UpdateSession updates session

Required permission: NAMESPACE:{namespace}:SESSIONBROWSER:SESSION [UPDATE]

Required scope: social

Update game session, used to update the current player

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

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

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 (*CreateSessionInternalServerError) GetPayload

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

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

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

WithBody adds the body to the create session params

func (*CreateSessionParams) WithContext

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

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 (*DeleteSessionInternalServerError) GetPayload

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

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

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

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 (*GetSessionByUserIDsBadRequest) GetPayload

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 (*GetSessionByUserIDsInternalServerError) GetPayload

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

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

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

WithTimeout adds the timeout to the get session by user i ds params

func (*GetSessionByUserIDsParams) WithUserIds

WithUserIds adds the userIds to the get session by user i ds params

func (*GetSessionByUserIDsParams) WriteToRequest

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 (*GetSessionInternalServerError) GetPayload

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

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

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

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 (*QuerySessionInternalServerError) GetPayload

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

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

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

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 (*UpdateSessionInternalServerError) GetPayload

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

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

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

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

WithBody adds the body to the update session params

func (*UpdateSessionParams) WithContext

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.

Jump to

Keyboard shortcuts

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