server

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for server API

func (*Client) DeregisterLocalServer

DeregisterLocalServer deregisters local d s

```

Required permission: NAMESPACE:{namespace}:DSM:SERVER [UPDATE] Required scope: social

This endpoint is intended to be called by local dedicated server to let DSM know that it is shutting down.

Calling this will remove the server records from DB.```

func (*Client) DeregisterLocalServerShort added in v0.8.0

func (a *Client) DeregisterLocalServerShort(params *DeregisterLocalServerParams, authInfo runtime.ClientAuthInfoWriter) (*DeregisterLocalServerNoContent, error)

func (*Client) GetServerSession

GetServerSession gets session ID

```

Required permission: NAMESPACE:{namespace}:DSM:SERVER [UPDATE] Required scope: social

This endpoint is intended to be called by dedicated server to query its session ID. DS should call this when it first receive player connection, to see if it is actually claimed```

func (*Client) GetServerSessionShort added in v0.8.0

func (a *Client) GetServerSessionShort(params *GetServerSessionParams, authInfo runtime.ClientAuthInfoWriter) (*GetServerSessionOK, error)

func (*Client) RegisterLocalServer

RegisterLocalServer registers a local d s

```

Required permission: NAMESPACE:{namespace}:DSM:SERVER [UPDATE] Required scope: social

Use the alternative GET of the same endpoint to upgrade DS connection to DSM via websocket.

This endpoint is intended to be called by local dedicated server to let DSM know that it is ready for use. Use local DS only for development purposes since DSM wouldn't be able to properly manage local DS in production. This MUST be called by DS after it is ready to accept match data and incoming client connections.

Upon successfully calling this endpoint, the dedicated server is listed under READY local servers.```

func (*Client) RegisterLocalServerShort added in v0.8.0

func (a *Client) RegisterLocalServerShort(params *RegisterLocalServerParams, authInfo runtime.ClientAuthInfoWriter) (*RegisterLocalServerOK, error)

func (*Client) RegisterServer

RegisterServer registers a d s

```

Required permission: NAMESPACE:{namespace}:DSM:SERVER [UPDATE] Required scope: social

This endpoint is intended to be called by dedicated server to let DSM know that it is ready for use. This MUST be called by DS after it is ready to accept match data and incoming client connections.

Upon successfully calling this endpoint, the dedicated server is listed under READY servers.```

func (*Client) RegisterServerShort added in v0.8.0

func (a *Client) RegisterServerShort(params *RegisterServerParams, authInfo runtime.ClientAuthInfoWriter) (*RegisterServerOK, error)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) ShutdownServer

ShutdownServer marks a d s is shutting down

Required permission: NAMESPACE:{namespace}:DSM:SERVER [UPDATE]

Required scope: social

This endpoint is intended to be called by dedicated server to let DSM know that it is shutting down. Calling this will remove the server and session records from DB.Set 'kill_me' in request to 'true' if the DS cannot shut itself down.

func (*Client) ShutdownServerShort added in v0.8.0

func (a *Client) ShutdownServerShort(params *ShutdownServerParams, authInfo runtime.ClientAuthInfoWriter) (*ShutdownServerNoContent, error)

type ClientService

type ClientService interface {
	DeregisterLocalServer(params *DeregisterLocalServerParams, authInfo runtime.ClientAuthInfoWriter) (*DeregisterLocalServerNoContent, *DeregisterLocalServerBadRequest, *DeregisterLocalServerUnauthorized, *DeregisterLocalServerInternalServerError, error)
	DeregisterLocalServerShort(params *DeregisterLocalServerParams, authInfo runtime.ClientAuthInfoWriter) (*DeregisterLocalServerNoContent, error)
	GetServerSession(params *GetServerSessionParams, authInfo runtime.ClientAuthInfoWriter) (*GetServerSessionOK, *GetServerSessionBadRequest, *GetServerSessionUnauthorized, *GetServerSessionNotFound, *GetServerSessionInternalServerError, error)
	GetServerSessionShort(params *GetServerSessionParams, authInfo runtime.ClientAuthInfoWriter) (*GetServerSessionOK, error)
	RegisterLocalServer(params *RegisterLocalServerParams, authInfo runtime.ClientAuthInfoWriter) (*RegisterLocalServerOK, *RegisterLocalServerBadRequest, *RegisterLocalServerUnauthorized, *RegisterLocalServerConflict, *RegisterLocalServerInternalServerError, error)
	RegisterLocalServerShort(params *RegisterLocalServerParams, authInfo runtime.ClientAuthInfoWriter) (*RegisterLocalServerOK, error)
	RegisterServer(params *RegisterServerParams, authInfo runtime.ClientAuthInfoWriter) (*RegisterServerOK, *RegisterServerBadRequest, *RegisterServerUnauthorized, *RegisterServerConflict, *RegisterServerInternalServerError, error)
	RegisterServerShort(params *RegisterServerParams, authInfo runtime.ClientAuthInfoWriter) (*RegisterServerOK, error)
	ShutdownServer(params *ShutdownServerParams, authInfo runtime.ClientAuthInfoWriter) (*ShutdownServerNoContent, *ShutdownServerBadRequest, *ShutdownServerUnauthorized, *ShutdownServerNotFound, *ShutdownServerInternalServerError, error)
	ShutdownServerShort(params *ShutdownServerParams, authInfo runtime.ClientAuthInfoWriter) (*ShutdownServerNoContent, 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 server API client.

type DeregisterLocalServerBadRequest

type DeregisterLocalServerBadRequest struct {
	Payload *dsmcclientmodels.ResponseError
}

DeregisterLocalServerBadRequest handles this case with default header values.

malformed request

func NewDeregisterLocalServerBadRequest

func NewDeregisterLocalServerBadRequest() *DeregisterLocalServerBadRequest

NewDeregisterLocalServerBadRequest creates a DeregisterLocalServerBadRequest with default headers values

func (*DeregisterLocalServerBadRequest) Error

func (*DeregisterLocalServerBadRequest) GetPayload

type DeregisterLocalServerInternalServerError

type DeregisterLocalServerInternalServerError struct {
	Payload *dsmcclientmodels.ResponseError
}

DeregisterLocalServerInternalServerError handles this case with default header values.

Internal Server Error

func NewDeregisterLocalServerInternalServerError

func NewDeregisterLocalServerInternalServerError() *DeregisterLocalServerInternalServerError

NewDeregisterLocalServerInternalServerError creates a DeregisterLocalServerInternalServerError with default headers values

func (*DeregisterLocalServerInternalServerError) Error

func (*DeregisterLocalServerInternalServerError) GetPayload

type DeregisterLocalServerNoContent

type DeregisterLocalServerNoContent struct {
}

DeregisterLocalServerNoContent handles this case with default header values.

server removed

func NewDeregisterLocalServerNoContent

func NewDeregisterLocalServerNoContent() *DeregisterLocalServerNoContent

NewDeregisterLocalServerNoContent creates a DeregisterLocalServerNoContent with default headers values

func (*DeregisterLocalServerNoContent) Error

type DeregisterLocalServerParams

type DeregisterLocalServerParams struct {

	/*Body*/
	Body *dsmcclientmodels.ModelsDeregisterLocalServerRequest
	/*Namespace
	  namespace of the game

	*/
	Namespace string

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

DeregisterLocalServerParams contains all the parameters to send to the API endpoint for the deregister local server operation typically these are written to a http.Request

func NewDeregisterLocalServerParams

func NewDeregisterLocalServerParams() *DeregisterLocalServerParams

NewDeregisterLocalServerParams creates a new DeregisterLocalServerParams object with the default values initialized.

func NewDeregisterLocalServerParamsWithContext

func NewDeregisterLocalServerParamsWithContext(ctx context.Context) *DeregisterLocalServerParams

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

func NewDeregisterLocalServerParamsWithHTTPClient

func NewDeregisterLocalServerParamsWithHTTPClient(client *http.Client) *DeregisterLocalServerParams

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

func NewDeregisterLocalServerParamsWithTimeout

func NewDeregisterLocalServerParamsWithTimeout(timeout time.Duration) *DeregisterLocalServerParams

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

func (*DeregisterLocalServerParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the deregister local server params

func (*DeregisterLocalServerParams) SetBody

SetBody adds the body to the deregister local server params

func (*DeregisterLocalServerParams) SetContext

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

SetContext adds the context to the deregister local server params

func (*DeregisterLocalServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the deregister local server params

func (*DeregisterLocalServerParams) SetNamespace

func (o *DeregisterLocalServerParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the deregister local server params

func (*DeregisterLocalServerParams) SetTimeout

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

SetTimeout adds the timeout to the deregister local server params

func (*DeregisterLocalServerParams) WithBody

WithBody adds the body to the deregister local server params

func (*DeregisterLocalServerParams) WithContext

WithContext adds the context to the deregister local server params

func (*DeregisterLocalServerParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the deregister local server params

func (*DeregisterLocalServerParams) WithNamespace

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

WithNamespace adds the namespace to the deregister local server params

func (*DeregisterLocalServerParams) WithTimeout

WithTimeout adds the timeout to the deregister local server params

func (*DeregisterLocalServerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeregisterLocalServerReader

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

DeregisterLocalServerReader is a Reader for the DeregisterLocalServer structure.

func (*DeregisterLocalServerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeregisterLocalServerUnauthorized

type DeregisterLocalServerUnauthorized struct {
	Payload *dsmcclientmodels.ResponseError
}

DeregisterLocalServerUnauthorized handles this case with default header values.

Unauthorized

func NewDeregisterLocalServerUnauthorized

func NewDeregisterLocalServerUnauthorized() *DeregisterLocalServerUnauthorized

NewDeregisterLocalServerUnauthorized creates a DeregisterLocalServerUnauthorized with default headers values

func (*DeregisterLocalServerUnauthorized) Error

func (*DeregisterLocalServerUnauthorized) GetPayload

type GetServerSessionBadRequest

type GetServerSessionBadRequest struct {
	Payload *dsmcclientmodels.ResponseError
}

GetServerSessionBadRequest handles this case with default header values.

malformed request

func NewGetServerSessionBadRequest

func NewGetServerSessionBadRequest() *GetServerSessionBadRequest

NewGetServerSessionBadRequest creates a GetServerSessionBadRequest with default headers values

func (*GetServerSessionBadRequest) Error

func (*GetServerSessionBadRequest) GetPayload

type GetServerSessionInternalServerError

type GetServerSessionInternalServerError struct {
	Payload *dsmcclientmodels.ResponseError
}

GetServerSessionInternalServerError handles this case with default header values.

Internal Server Error

func NewGetServerSessionInternalServerError

func NewGetServerSessionInternalServerError() *GetServerSessionInternalServerError

NewGetServerSessionInternalServerError creates a GetServerSessionInternalServerError with default headers values

func (*GetServerSessionInternalServerError) Error

func (*GetServerSessionInternalServerError) GetPayload

type GetServerSessionNotFound

type GetServerSessionNotFound struct {
	Payload *dsmcclientmodels.ResponseError
}

GetServerSessionNotFound handles this case with default header values.

server not found

func NewGetServerSessionNotFound

func NewGetServerSessionNotFound() *GetServerSessionNotFound

NewGetServerSessionNotFound creates a GetServerSessionNotFound with default headers values

func (*GetServerSessionNotFound) Error

func (o *GetServerSessionNotFound) Error() string

func (*GetServerSessionNotFound) GetPayload

type GetServerSessionOK

type GetServerSessionOK struct {
	Payload *dsmcclientmodels.ModelsServerSessionResponse
}

GetServerSessionOK handles this case with default header values.

session found

func NewGetServerSessionOK

func NewGetServerSessionOK() *GetServerSessionOK

NewGetServerSessionOK creates a GetServerSessionOK with default headers values

func (*GetServerSessionOK) Error

func (o *GetServerSessionOK) Error() string

func (*GetServerSessionOK) GetPayload

type GetServerSessionParams

type GetServerSessionParams struct {

	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*PodName
	  DS name

	*/
	PodName string

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

GetServerSessionParams contains all the parameters to send to the API endpoint for the get server session operation typically these are written to a http.Request

func NewGetServerSessionParams

func NewGetServerSessionParams() *GetServerSessionParams

NewGetServerSessionParams creates a new GetServerSessionParams object with the default values initialized.

func NewGetServerSessionParamsWithContext

func NewGetServerSessionParamsWithContext(ctx context.Context) *GetServerSessionParams

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

func NewGetServerSessionParamsWithHTTPClient

func NewGetServerSessionParamsWithHTTPClient(client *http.Client) *GetServerSessionParams

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

func NewGetServerSessionParamsWithTimeout

func NewGetServerSessionParamsWithTimeout(timeout time.Duration) *GetServerSessionParams

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

func (*GetServerSessionParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the get server session params

func (*GetServerSessionParams) SetContext

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

SetContext adds the context to the get server session params

func (*GetServerSessionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get server session params

func (*GetServerSessionParams) SetNamespace

func (o *GetServerSessionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get server session params

func (*GetServerSessionParams) SetPodName

func (o *GetServerSessionParams) SetPodName(podName string)

SetPodName adds the podName to the get server session params

func (*GetServerSessionParams) SetTimeout

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

SetTimeout adds the timeout to the get server session params

func (*GetServerSessionParams) WithContext

WithContext adds the context to the get server session params

func (*GetServerSessionParams) WithHTTPClient

func (o *GetServerSessionParams) WithHTTPClient(client *http.Client) *GetServerSessionParams

WithHTTPClient adds the HTTPClient to the get server session params

func (*GetServerSessionParams) WithNamespace

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

WithNamespace adds the namespace to the get server session params

func (*GetServerSessionParams) WithPodName

func (o *GetServerSessionParams) WithPodName(podName string) *GetServerSessionParams

WithPodName adds the podName to the get server session params

func (*GetServerSessionParams) WithTimeout

WithTimeout adds the timeout to the get server session params

func (*GetServerSessionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetServerSessionReader

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

GetServerSessionReader is a Reader for the GetServerSession structure.

func (*GetServerSessionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetServerSessionUnauthorized

type GetServerSessionUnauthorized struct {
	Payload *dsmcclientmodels.ResponseError
}

GetServerSessionUnauthorized handles this case with default header values.

Unauthorized

func NewGetServerSessionUnauthorized

func NewGetServerSessionUnauthorized() *GetServerSessionUnauthorized

NewGetServerSessionUnauthorized creates a GetServerSessionUnauthorized with default headers values

func (*GetServerSessionUnauthorized) Error

func (*GetServerSessionUnauthorized) GetPayload

type RegisterLocalServerBadRequest

type RegisterLocalServerBadRequest struct {
	Payload *dsmcclientmodels.ResponseError
}

RegisterLocalServerBadRequest handles this case with default header values.

malformed request

func NewRegisterLocalServerBadRequest

func NewRegisterLocalServerBadRequest() *RegisterLocalServerBadRequest

NewRegisterLocalServerBadRequest creates a RegisterLocalServerBadRequest with default headers values

func (*RegisterLocalServerBadRequest) Error

func (*RegisterLocalServerBadRequest) GetPayload

type RegisterLocalServerConflict

type RegisterLocalServerConflict struct {
	Payload *dsmcclientmodels.ResponseError
}

RegisterLocalServerConflict handles this case with default header values.

server with same name already registered

func NewRegisterLocalServerConflict

func NewRegisterLocalServerConflict() *RegisterLocalServerConflict

NewRegisterLocalServerConflict creates a RegisterLocalServerConflict with default headers values

func (*RegisterLocalServerConflict) Error

func (*RegisterLocalServerConflict) GetPayload

type RegisterLocalServerInternalServerError

type RegisterLocalServerInternalServerError struct {
	Payload *dsmcclientmodels.ResponseError
}

RegisterLocalServerInternalServerError handles this case with default header values.

Internal Server Error

func NewRegisterLocalServerInternalServerError

func NewRegisterLocalServerInternalServerError() *RegisterLocalServerInternalServerError

NewRegisterLocalServerInternalServerError creates a RegisterLocalServerInternalServerError with default headers values

func (*RegisterLocalServerInternalServerError) Error

func (*RegisterLocalServerInternalServerError) GetPayload

type RegisterLocalServerOK

type RegisterLocalServerOK struct {
	Payload *dsmcclientmodels.ModelsServer
}

RegisterLocalServerOK handles this case with default header values.

server registered

func NewRegisterLocalServerOK

func NewRegisterLocalServerOK() *RegisterLocalServerOK

NewRegisterLocalServerOK creates a RegisterLocalServerOK with default headers values

func (*RegisterLocalServerOK) Error

func (o *RegisterLocalServerOK) Error() string

func (*RegisterLocalServerOK) GetPayload

type RegisterLocalServerParams

type RegisterLocalServerParams struct {

	/*Body*/
	Body *dsmcclientmodels.ModelsRegisterLocalServerRequest
	/*Namespace
	  namespace of the game

	*/
	Namespace string

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

RegisterLocalServerParams contains all the parameters to send to the API endpoint for the register local server operation typically these are written to a http.Request

func NewRegisterLocalServerParams

func NewRegisterLocalServerParams() *RegisterLocalServerParams

NewRegisterLocalServerParams creates a new RegisterLocalServerParams object with the default values initialized.

func NewRegisterLocalServerParamsWithContext

func NewRegisterLocalServerParamsWithContext(ctx context.Context) *RegisterLocalServerParams

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

func NewRegisterLocalServerParamsWithHTTPClient

func NewRegisterLocalServerParamsWithHTTPClient(client *http.Client) *RegisterLocalServerParams

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

func NewRegisterLocalServerParamsWithTimeout

func NewRegisterLocalServerParamsWithTimeout(timeout time.Duration) *RegisterLocalServerParams

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

func (*RegisterLocalServerParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the register local server params

func (*RegisterLocalServerParams) SetBody

SetBody adds the body to the register local server params

func (*RegisterLocalServerParams) SetContext

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

SetContext adds the context to the register local server params

func (*RegisterLocalServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the register local server params

func (*RegisterLocalServerParams) SetNamespace

func (o *RegisterLocalServerParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the register local server params

func (*RegisterLocalServerParams) SetTimeout

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

SetTimeout adds the timeout to the register local server params

func (*RegisterLocalServerParams) WithBody

WithBody adds the body to the register local server params

func (*RegisterLocalServerParams) WithContext

WithContext adds the context to the register local server params

func (*RegisterLocalServerParams) WithHTTPClient

func (o *RegisterLocalServerParams) WithHTTPClient(client *http.Client) *RegisterLocalServerParams

WithHTTPClient adds the HTTPClient to the register local server params

func (*RegisterLocalServerParams) WithNamespace

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

WithNamespace adds the namespace to the register local server params

func (*RegisterLocalServerParams) WithTimeout

WithTimeout adds the timeout to the register local server params

func (*RegisterLocalServerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RegisterLocalServerReader

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

RegisterLocalServerReader is a Reader for the RegisterLocalServer structure.

func (*RegisterLocalServerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RegisterLocalServerUnauthorized

type RegisterLocalServerUnauthorized struct {
	Payload *dsmcclientmodels.ResponseError
}

RegisterLocalServerUnauthorized handles this case with default header values.

Unauthorized

func NewRegisterLocalServerUnauthorized

func NewRegisterLocalServerUnauthorized() *RegisterLocalServerUnauthorized

NewRegisterLocalServerUnauthorized creates a RegisterLocalServerUnauthorized with default headers values

func (*RegisterLocalServerUnauthorized) Error

func (*RegisterLocalServerUnauthorized) GetPayload

type RegisterServerBadRequest

type RegisterServerBadRequest struct {
	Payload *dsmcclientmodels.ResponseError
}

RegisterServerBadRequest handles this case with default header values.

malformed request

func NewRegisterServerBadRequest

func NewRegisterServerBadRequest() *RegisterServerBadRequest

NewRegisterServerBadRequest creates a RegisterServerBadRequest with default headers values

func (*RegisterServerBadRequest) Error

func (o *RegisterServerBadRequest) Error() string

func (*RegisterServerBadRequest) GetPayload

type RegisterServerConflict

type RegisterServerConflict struct {
	Payload *dsmcclientmodels.ResponseError
}

RegisterServerConflict handles this case with default header values.

server with same name already registered

func NewRegisterServerConflict

func NewRegisterServerConflict() *RegisterServerConflict

NewRegisterServerConflict creates a RegisterServerConflict with default headers values

func (*RegisterServerConflict) Error

func (o *RegisterServerConflict) Error() string

func (*RegisterServerConflict) GetPayload

type RegisterServerInternalServerError

type RegisterServerInternalServerError struct {
	Payload *dsmcclientmodels.ResponseError
}

RegisterServerInternalServerError handles this case with default header values.

Internal Server Error

func NewRegisterServerInternalServerError

func NewRegisterServerInternalServerError() *RegisterServerInternalServerError

NewRegisterServerInternalServerError creates a RegisterServerInternalServerError with default headers values

func (*RegisterServerInternalServerError) Error

func (*RegisterServerInternalServerError) GetPayload

type RegisterServerOK

type RegisterServerOK struct {
	Payload *dsmcclientmodels.ModelsServer
}

RegisterServerOK handles this case with default header values.

server registered

func NewRegisterServerOK

func NewRegisterServerOK() *RegisterServerOK

NewRegisterServerOK creates a RegisterServerOK with default headers values

func (*RegisterServerOK) Error

func (o *RegisterServerOK) Error() string

func (*RegisterServerOK) GetPayload

type RegisterServerParams

type RegisterServerParams struct {

	/*Body*/
	Body *dsmcclientmodels.ModelsRegisterServerRequest
	/*Namespace
	  namespace of the game

	*/
	Namespace string

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

RegisterServerParams contains all the parameters to send to the API endpoint for the register server operation typically these are written to a http.Request

func NewRegisterServerParams

func NewRegisterServerParams() *RegisterServerParams

NewRegisterServerParams creates a new RegisterServerParams object with the default values initialized.

func NewRegisterServerParamsWithContext

func NewRegisterServerParamsWithContext(ctx context.Context) *RegisterServerParams

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

func NewRegisterServerParamsWithHTTPClient

func NewRegisterServerParamsWithHTTPClient(client *http.Client) *RegisterServerParams

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

func NewRegisterServerParamsWithTimeout

func NewRegisterServerParamsWithTimeout(timeout time.Duration) *RegisterServerParams

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

func (*RegisterServerParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the register server params

func (*RegisterServerParams) SetBody

SetBody adds the body to the register server params

func (*RegisterServerParams) SetContext

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

SetContext adds the context to the register server params

func (*RegisterServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the register server params

func (*RegisterServerParams) SetNamespace

func (o *RegisterServerParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the register server params

func (*RegisterServerParams) SetTimeout

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

SetTimeout adds the timeout to the register server params

func (*RegisterServerParams) WithBody

WithBody adds the body to the register server params

func (*RegisterServerParams) WithContext

WithContext adds the context to the register server params

func (*RegisterServerParams) WithHTTPClient

func (o *RegisterServerParams) WithHTTPClient(client *http.Client) *RegisterServerParams

WithHTTPClient adds the HTTPClient to the register server params

func (*RegisterServerParams) WithNamespace

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

WithNamespace adds the namespace to the register server params

func (*RegisterServerParams) WithTimeout

func (o *RegisterServerParams) WithTimeout(timeout time.Duration) *RegisterServerParams

WithTimeout adds the timeout to the register server params

func (*RegisterServerParams) WriteToRequest

func (o *RegisterServerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type RegisterServerReader

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

RegisterServerReader is a Reader for the RegisterServer structure.

func (*RegisterServerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RegisterServerUnauthorized

type RegisterServerUnauthorized struct {
	Payload *dsmcclientmodels.ResponseError
}

RegisterServerUnauthorized handles this case with default header values.

Unauthorized

func NewRegisterServerUnauthorized

func NewRegisterServerUnauthorized() *RegisterServerUnauthorized

NewRegisterServerUnauthorized creates a RegisterServerUnauthorized with default headers values

func (*RegisterServerUnauthorized) Error

func (*RegisterServerUnauthorized) GetPayload

type ShutdownServerBadRequest

type ShutdownServerBadRequest struct {
	Payload *dsmcclientmodels.ResponseError
}

ShutdownServerBadRequest handles this case with default header values.

malformed request

func NewShutdownServerBadRequest

func NewShutdownServerBadRequest() *ShutdownServerBadRequest

NewShutdownServerBadRequest creates a ShutdownServerBadRequest with default headers values

func (*ShutdownServerBadRequest) Error

func (o *ShutdownServerBadRequest) Error() string

func (*ShutdownServerBadRequest) GetPayload

type ShutdownServerInternalServerError

type ShutdownServerInternalServerError struct {
	Payload *dsmcclientmodels.ResponseError
}

ShutdownServerInternalServerError handles this case with default header values.

Internal Server Error

func NewShutdownServerInternalServerError

func NewShutdownServerInternalServerError() *ShutdownServerInternalServerError

NewShutdownServerInternalServerError creates a ShutdownServerInternalServerError with default headers values

func (*ShutdownServerInternalServerError) Error

func (*ShutdownServerInternalServerError) GetPayload

type ShutdownServerNoContent

type ShutdownServerNoContent struct {
}

ShutdownServerNoContent handles this case with default header values.

server removed

func NewShutdownServerNoContent

func NewShutdownServerNoContent() *ShutdownServerNoContent

NewShutdownServerNoContent creates a ShutdownServerNoContent with default headers values

func (*ShutdownServerNoContent) Error

func (o *ShutdownServerNoContent) Error() string

type ShutdownServerNotFound

type ShutdownServerNotFound struct {
	Payload *dsmcclientmodels.ResponseError
}

ShutdownServerNotFound handles this case with default header values.

server not found

func NewShutdownServerNotFound

func NewShutdownServerNotFound() *ShutdownServerNotFound

NewShutdownServerNotFound creates a ShutdownServerNotFound with default headers values

func (*ShutdownServerNotFound) Error

func (o *ShutdownServerNotFound) Error() string

func (*ShutdownServerNotFound) GetPayload

type ShutdownServerParams

type ShutdownServerParams struct {

	/*Body*/
	Body *dsmcclientmodels.ModelsShutdownServerRequest
	/*Namespace
	  namespace of the game

	*/
	Namespace string

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

ShutdownServerParams contains all the parameters to send to the API endpoint for the shutdown server operation typically these are written to a http.Request

func NewShutdownServerParams

func NewShutdownServerParams() *ShutdownServerParams

NewShutdownServerParams creates a new ShutdownServerParams object with the default values initialized.

func NewShutdownServerParamsWithContext

func NewShutdownServerParamsWithContext(ctx context.Context) *ShutdownServerParams

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

func NewShutdownServerParamsWithHTTPClient

func NewShutdownServerParamsWithHTTPClient(client *http.Client) *ShutdownServerParams

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

func NewShutdownServerParamsWithTimeout

func NewShutdownServerParamsWithTimeout(timeout time.Duration) *ShutdownServerParams

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

func (*ShutdownServerParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the shutdown server params

func (*ShutdownServerParams) SetBody

SetBody adds the body to the shutdown server params

func (*ShutdownServerParams) SetContext

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

SetContext adds the context to the shutdown server params

func (*ShutdownServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the shutdown server params

func (*ShutdownServerParams) SetNamespace

func (o *ShutdownServerParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the shutdown server params

func (*ShutdownServerParams) SetTimeout

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

SetTimeout adds the timeout to the shutdown server params

func (*ShutdownServerParams) WithBody

WithBody adds the body to the shutdown server params

func (*ShutdownServerParams) WithContext

WithContext adds the context to the shutdown server params

func (*ShutdownServerParams) WithHTTPClient

func (o *ShutdownServerParams) WithHTTPClient(client *http.Client) *ShutdownServerParams

WithHTTPClient adds the HTTPClient to the shutdown server params

func (*ShutdownServerParams) WithNamespace

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

WithNamespace adds the namespace to the shutdown server params

func (*ShutdownServerParams) WithTimeout

func (o *ShutdownServerParams) WithTimeout(timeout time.Duration) *ShutdownServerParams

WithTimeout adds the timeout to the shutdown server params

func (*ShutdownServerParams) WriteToRequest

func (o *ShutdownServerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ShutdownServerReader

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

ShutdownServerReader is a Reader for the ShutdownServer structure.

func (*ShutdownServerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ShutdownServerUnauthorized

type ShutdownServerUnauthorized struct {
	Payload *dsmcclientmodels.ResponseError
}

ShutdownServerUnauthorized handles this case with default header values.

Unauthorized

func NewShutdownServerUnauthorized

func NewShutdownServerUnauthorized() *ShutdownServerUnauthorized

NewShutdownServerUnauthorized creates a ShutdownServerUnauthorized with default headers values

func (*ShutdownServerUnauthorized) Error

func (*ShutdownServerUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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