server

package
v0.68.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for server API

func (*Client) Heartbeat deprecated

Deprecated: 2022-08-10 - Use HeartbeatShort instead.

Heartbeat send heartbeat ``` Required permission: QOS:SERVER [CREATE][UPDATE] Required scope: social

This endpoint is intended to be called by QoS service to register and periodically let QoS Manager know that it is still alive. ```

func (*Client) HeartbeatShort added in v0.8.0

func (a *Client) HeartbeatShort(params *HeartbeatParams, authInfo runtime.ClientAuthInfoWriter) (*HeartbeatNoContent, error)

HeartbeatShort send heartbeat ``` Required permission: QOS:SERVER [CREATE][UPDATE] Required scope: social

This endpoint is intended to be called by QoS service to register and periodically let QoS Manager know that it is still alive. ```

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	Heartbeat(params *HeartbeatParams, authInfo runtime.ClientAuthInfoWriter) (*HeartbeatNoContent, *HeartbeatBadRequest, *HeartbeatInternalServerError, error)
	HeartbeatShort(params *HeartbeatParams, authInfo runtime.ClientAuthInfoWriter) (*HeartbeatNoContent, 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 HeartbeatBadRequest

type HeartbeatBadRequest struct {
	Payload *qosmclientmodels.ResponseError
}

HeartbeatBadRequest handles this case with default header values.

malformed request

func NewHeartbeatBadRequest

func NewHeartbeatBadRequest() *HeartbeatBadRequest

NewHeartbeatBadRequest creates a HeartbeatBadRequest with default headers values

func (*HeartbeatBadRequest) Error

func (o *HeartbeatBadRequest) Error() string

func (*HeartbeatBadRequest) GetPayload

func (*HeartbeatBadRequest) ToJSONString added in v0.25.0

func (o *HeartbeatBadRequest) ToJSONString() string

type HeartbeatInternalServerError

type HeartbeatInternalServerError struct {
	Payload *qosmclientmodels.ResponseError
}

HeartbeatInternalServerError handles this case with default header values.

Internal Server Error

func NewHeartbeatInternalServerError

func NewHeartbeatInternalServerError() *HeartbeatInternalServerError

NewHeartbeatInternalServerError creates a HeartbeatInternalServerError with default headers values

func (*HeartbeatInternalServerError) Error

func (*HeartbeatInternalServerError) GetPayload

func (*HeartbeatInternalServerError) ToJSONString added in v0.25.0

func (o *HeartbeatInternalServerError) ToJSONString() string

type HeartbeatNoContent

type HeartbeatNoContent struct {
}

HeartbeatNoContent handles this case with default header values.

heartbeat received

func NewHeartbeatNoContent

func NewHeartbeatNoContent() *HeartbeatNoContent

NewHeartbeatNoContent creates a HeartbeatNoContent with default headers values

func (*HeartbeatNoContent) Error

func (o *HeartbeatNoContent) Error() string

type HeartbeatParams

type HeartbeatParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *qosmclientmodels.ModelsHeartbeatRequest

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

HeartbeatParams contains all the parameters to send to the API endpoint for the heartbeat operation typically these are written to a http.Request

func NewHeartbeatParams

func NewHeartbeatParams() *HeartbeatParams

NewHeartbeatParams creates a new HeartbeatParams object with the default values initialized.

func NewHeartbeatParamsWithContext

func NewHeartbeatParamsWithContext(ctx context.Context) *HeartbeatParams

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

func NewHeartbeatParamsWithHTTPClient

func NewHeartbeatParamsWithHTTPClient(client *http.Client) *HeartbeatParams

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

func NewHeartbeatParamsWithTimeout

func NewHeartbeatParamsWithTimeout(timeout time.Duration) *HeartbeatParams

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

func (*HeartbeatParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the heartbeat params

func (*HeartbeatParams) SetBody

SetBody adds the body to the heartbeat params

func (*HeartbeatParams) SetContext

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

SetContext adds the context to the heartbeat params

func (*HeartbeatParams) SetFlightId added in v0.63.0

func (o *HeartbeatParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*HeartbeatParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the heartbeat params

func (*HeartbeatParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the heartbeat params

func (*HeartbeatParams) SetTimeout

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

SetTimeout adds the timeout to the heartbeat params

func (*HeartbeatParams) WithBody

WithBody adds the body to the heartbeat params

func (*HeartbeatParams) WithContext

func (o *HeartbeatParams) WithContext(ctx context.Context) *HeartbeatParams

WithContext adds the context to the heartbeat params

func (*HeartbeatParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the heartbeat params

func (*HeartbeatParams) WithTimeout

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

WithTimeout adds the timeout to the heartbeat params

func (*HeartbeatParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type HeartbeatReader

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

HeartbeatReader is a Reader for the Heartbeat structure.

func (*HeartbeatReader) ReadResponse

func (o *HeartbeatReader) 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