speed_test

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: Apache-2.0 Imports: 10 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 speed test API

func (*Client) DeleteSpeedtestsID

func (a *Client) DeleteSpeedtestsID(params *DeleteSpeedtestsIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSpeedtestsIDOK, error)

DeleteSpeedtestsID stops speed test between two devices

func (*Client) GetSpeedtests

func (a *Client) GetSpeedtests(params *GetSpeedtestsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSpeedtestsOK, error)

GetSpeedtests returns detail about running speedtests

func (*Client) PostSpeedtestsStart

func (a *Client) PostSpeedtestsStart(params *PostSpeedtestsStartParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostSpeedtestsStartOK, error)

PostSpeedtestsStart executes speed test between two devices

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeleteSpeedtestsID(params *DeleteSpeedtestsIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSpeedtestsIDOK, error)

	GetSpeedtests(params *GetSpeedtestsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSpeedtestsOK, error)

	PostSpeedtestsStart(params *PostSpeedtestsStartParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostSpeedtestsStartOK, 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 speed test API client.

type DeleteSpeedtestsIDBadRequest

type DeleteSpeedtestsIDBadRequest struct {
	Payload *models.Error
}
DeleteSpeedtestsIDBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewDeleteSpeedtestsIDBadRequest

func NewDeleteSpeedtestsIDBadRequest() *DeleteSpeedtestsIDBadRequest

NewDeleteSpeedtestsIDBadRequest creates a DeleteSpeedtestsIDBadRequest with default headers values

func (*DeleteSpeedtestsIDBadRequest) Error

func (*DeleteSpeedtestsIDBadRequest) GetPayload

func (o *DeleteSpeedtestsIDBadRequest) GetPayload() *models.Error

type DeleteSpeedtestsIDForbidden

type DeleteSpeedtestsIDForbidden struct {
	Payload *models.Error
}
DeleteSpeedtestsIDForbidden describes a response with status code 403, with default header values.

Forbidden

func NewDeleteSpeedtestsIDForbidden

func NewDeleteSpeedtestsIDForbidden() *DeleteSpeedtestsIDForbidden

NewDeleteSpeedtestsIDForbidden creates a DeleteSpeedtestsIDForbidden with default headers values

func (*DeleteSpeedtestsIDForbidden) Error

func (*DeleteSpeedtestsIDForbidden) GetPayload

func (o *DeleteSpeedtestsIDForbidden) GetPayload() *models.Error

type DeleteSpeedtestsIDInternalServerError

type DeleteSpeedtestsIDInternalServerError struct {
	Payload *models.Error
}
DeleteSpeedtestsIDInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewDeleteSpeedtestsIDInternalServerError

func NewDeleteSpeedtestsIDInternalServerError() *DeleteSpeedtestsIDInternalServerError

NewDeleteSpeedtestsIDInternalServerError creates a DeleteSpeedtestsIDInternalServerError with default headers values

func (*DeleteSpeedtestsIDInternalServerError) Error

func (*DeleteSpeedtestsIDInternalServerError) GetPayload

type DeleteSpeedtestsIDNotFound

type DeleteSpeedtestsIDNotFound struct {
	Payload *models.Error
}
DeleteSpeedtestsIDNotFound describes a response with status code 404, with default header values.

Not Found

func NewDeleteSpeedtestsIDNotFound

func NewDeleteSpeedtestsIDNotFound() *DeleteSpeedtestsIDNotFound

NewDeleteSpeedtestsIDNotFound creates a DeleteSpeedtestsIDNotFound with default headers values

func (*DeleteSpeedtestsIDNotFound) Error

func (*DeleteSpeedtestsIDNotFound) GetPayload

func (o *DeleteSpeedtestsIDNotFound) GetPayload() *models.Error

type DeleteSpeedtestsIDOK

type DeleteSpeedtestsIDOK struct {
	Payload *models.Status
}
DeleteSpeedtestsIDOK describes a response with status code 200, with default header values.

Successful

func NewDeleteSpeedtestsIDOK

func NewDeleteSpeedtestsIDOK() *DeleteSpeedtestsIDOK

NewDeleteSpeedtestsIDOK creates a DeleteSpeedtestsIDOK with default headers values

func (*DeleteSpeedtestsIDOK) Error

func (o *DeleteSpeedtestsIDOK) Error() string

func (*DeleteSpeedtestsIDOK) GetPayload

func (o *DeleteSpeedtestsIDOK) GetPayload() *models.Status

type DeleteSpeedtestsIDParams

type DeleteSpeedtestsIDParams struct {

	// ID.
	ID string

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

DeleteSpeedtestsIDParams contains all the parameters to send to the API endpoint

for the delete speedtests Id operation.

Typically these are written to a http.Request.

func NewDeleteSpeedtestsIDParams

func NewDeleteSpeedtestsIDParams() *DeleteSpeedtestsIDParams

NewDeleteSpeedtestsIDParams creates a new DeleteSpeedtestsIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteSpeedtestsIDParamsWithContext

func NewDeleteSpeedtestsIDParamsWithContext(ctx context.Context) *DeleteSpeedtestsIDParams

NewDeleteSpeedtestsIDParamsWithContext creates a new DeleteSpeedtestsIDParams object with the ability to set a context for a request.

func NewDeleteSpeedtestsIDParamsWithHTTPClient

func NewDeleteSpeedtestsIDParamsWithHTTPClient(client *http.Client) *DeleteSpeedtestsIDParams

NewDeleteSpeedtestsIDParamsWithHTTPClient creates a new DeleteSpeedtestsIDParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteSpeedtestsIDParamsWithTimeout

func NewDeleteSpeedtestsIDParamsWithTimeout(timeout time.Duration) *DeleteSpeedtestsIDParams

NewDeleteSpeedtestsIDParamsWithTimeout creates a new DeleteSpeedtestsIDParams object with the ability to set a timeout on a request.

func (*DeleteSpeedtestsIDParams) SetContext

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

SetContext adds the context to the delete speedtests Id params

func (*DeleteSpeedtestsIDParams) SetDefaults

func (o *DeleteSpeedtestsIDParams) SetDefaults()

SetDefaults hydrates default values in the delete speedtests Id params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteSpeedtestsIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete speedtests Id params

func (*DeleteSpeedtestsIDParams) SetID

func (o *DeleteSpeedtestsIDParams) SetID(id string)

SetID adds the id to the delete speedtests Id params

func (*DeleteSpeedtestsIDParams) SetTimeout

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

SetTimeout adds the timeout to the delete speedtests Id params

func (*DeleteSpeedtestsIDParams) WithContext

WithContext adds the context to the delete speedtests Id params

func (*DeleteSpeedtestsIDParams) WithDefaults

WithDefaults hydrates default values in the delete speedtests Id params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteSpeedtestsIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete speedtests Id params

func (*DeleteSpeedtestsIDParams) WithID

WithID adds the id to the delete speedtests Id params

func (*DeleteSpeedtestsIDParams) WithTimeout

WithTimeout adds the timeout to the delete speedtests Id params

func (*DeleteSpeedtestsIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteSpeedtestsIDReader

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

DeleteSpeedtestsIDReader is a Reader for the DeleteSpeedtestsID structure.

func (*DeleteSpeedtestsIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteSpeedtestsIDUnauthorized

type DeleteSpeedtestsIDUnauthorized struct {
	Payload *models.Error
}
DeleteSpeedtestsIDUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewDeleteSpeedtestsIDUnauthorized

func NewDeleteSpeedtestsIDUnauthorized() *DeleteSpeedtestsIDUnauthorized

NewDeleteSpeedtestsIDUnauthorized creates a DeleteSpeedtestsIDUnauthorized with default headers values

func (*DeleteSpeedtestsIDUnauthorized) Error

func (*DeleteSpeedtestsIDUnauthorized) GetPayload

func (o *DeleteSpeedtestsIDUnauthorized) GetPayload() *models.Error

type GetSpeedtestsForbidden

type GetSpeedtestsForbidden struct {
	Payload *models.Error
}
GetSpeedtestsForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetSpeedtestsForbidden

func NewGetSpeedtestsForbidden() *GetSpeedtestsForbidden

NewGetSpeedtestsForbidden creates a GetSpeedtestsForbidden with default headers values

func (*GetSpeedtestsForbidden) Error

func (o *GetSpeedtestsForbidden) Error() string

func (*GetSpeedtestsForbidden) GetPayload

func (o *GetSpeedtestsForbidden) GetPayload() *models.Error

type GetSpeedtestsInternalServerError

type GetSpeedtestsInternalServerError struct {
	Payload *models.Error
}
GetSpeedtestsInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetSpeedtestsInternalServerError

func NewGetSpeedtestsInternalServerError() *GetSpeedtestsInternalServerError

NewGetSpeedtestsInternalServerError creates a GetSpeedtestsInternalServerError with default headers values

func (*GetSpeedtestsInternalServerError) Error

func (*GetSpeedtestsInternalServerError) GetPayload

type GetSpeedtestsOK

type GetSpeedtestsOK struct {
	Payload models.ListOfSpeedTests
}
GetSpeedtestsOK describes a response with status code 200, with default header values.

Successful

func NewGetSpeedtestsOK

func NewGetSpeedtestsOK() *GetSpeedtestsOK

NewGetSpeedtestsOK creates a GetSpeedtestsOK with default headers values

func (*GetSpeedtestsOK) Error

func (o *GetSpeedtestsOK) Error() string

func (*GetSpeedtestsOK) GetPayload

func (o *GetSpeedtestsOK) GetPayload() models.ListOfSpeedTests

type GetSpeedtestsParams

type GetSpeedtestsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetSpeedtestsParams contains all the parameters to send to the API endpoint

for the get speedtests operation.

Typically these are written to a http.Request.

func NewGetSpeedtestsParams

func NewGetSpeedtestsParams() *GetSpeedtestsParams

NewGetSpeedtestsParams creates a new GetSpeedtestsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetSpeedtestsParamsWithContext

func NewGetSpeedtestsParamsWithContext(ctx context.Context) *GetSpeedtestsParams

NewGetSpeedtestsParamsWithContext creates a new GetSpeedtestsParams object with the ability to set a context for a request.

func NewGetSpeedtestsParamsWithHTTPClient

func NewGetSpeedtestsParamsWithHTTPClient(client *http.Client) *GetSpeedtestsParams

NewGetSpeedtestsParamsWithHTTPClient creates a new GetSpeedtestsParams object with the ability to set a custom HTTPClient for a request.

func NewGetSpeedtestsParamsWithTimeout

func NewGetSpeedtestsParamsWithTimeout(timeout time.Duration) *GetSpeedtestsParams

NewGetSpeedtestsParamsWithTimeout creates a new GetSpeedtestsParams object with the ability to set a timeout on a request.

func (*GetSpeedtestsParams) SetContext

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

SetContext adds the context to the get speedtests params

func (*GetSpeedtestsParams) SetDefaults

func (o *GetSpeedtestsParams) SetDefaults()

SetDefaults hydrates default values in the get speedtests params (not the query body).

All values with no default are reset to their zero value.

func (*GetSpeedtestsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get speedtests params

func (*GetSpeedtestsParams) SetTimeout

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

SetTimeout adds the timeout to the get speedtests params

func (*GetSpeedtestsParams) WithContext

WithContext adds the context to the get speedtests params

func (*GetSpeedtestsParams) WithDefaults

func (o *GetSpeedtestsParams) WithDefaults() *GetSpeedtestsParams

WithDefaults hydrates default values in the get speedtests params (not the query body).

All values with no default are reset to their zero value.

func (*GetSpeedtestsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get speedtests params

func (*GetSpeedtestsParams) WithTimeout

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

WithTimeout adds the timeout to the get speedtests params

func (*GetSpeedtestsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetSpeedtestsReader

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

GetSpeedtestsReader is a Reader for the GetSpeedtests structure.

func (*GetSpeedtestsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSpeedtestsUnauthorized

type GetSpeedtestsUnauthorized struct {
	Payload *models.Error
}
GetSpeedtestsUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetSpeedtestsUnauthorized

func NewGetSpeedtestsUnauthorized() *GetSpeedtestsUnauthorized

NewGetSpeedtestsUnauthorized creates a GetSpeedtestsUnauthorized with default headers values

func (*GetSpeedtestsUnauthorized) Error

func (o *GetSpeedtestsUnauthorized) Error() string

func (*GetSpeedtestsUnauthorized) GetPayload

func (o *GetSpeedtestsUnauthorized) GetPayload() *models.Error

type PostSpeedtestsStartBadRequest

type PostSpeedtestsStartBadRequest struct {
	Payload *models.Error
}
PostSpeedtestsStartBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewPostSpeedtestsStartBadRequest

func NewPostSpeedtestsStartBadRequest() *PostSpeedtestsStartBadRequest

NewPostSpeedtestsStartBadRequest creates a PostSpeedtestsStartBadRequest with default headers values

func (*PostSpeedtestsStartBadRequest) Error

func (*PostSpeedtestsStartBadRequest) GetPayload

func (o *PostSpeedtestsStartBadRequest) GetPayload() *models.Error

type PostSpeedtestsStartForbidden

type PostSpeedtestsStartForbidden struct {
	Payload *models.Error
}
PostSpeedtestsStartForbidden describes a response with status code 403, with default header values.

Forbidden

func NewPostSpeedtestsStartForbidden

func NewPostSpeedtestsStartForbidden() *PostSpeedtestsStartForbidden

NewPostSpeedtestsStartForbidden creates a PostSpeedtestsStartForbidden with default headers values

func (*PostSpeedtestsStartForbidden) Error

func (*PostSpeedtestsStartForbidden) GetPayload

func (o *PostSpeedtestsStartForbidden) GetPayload() *models.Error

type PostSpeedtestsStartInternalServerError

type PostSpeedtestsStartInternalServerError struct {
	Payload *models.Error
}
PostSpeedtestsStartInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPostSpeedtestsStartInternalServerError

func NewPostSpeedtestsStartInternalServerError() *PostSpeedtestsStartInternalServerError

NewPostSpeedtestsStartInternalServerError creates a PostSpeedtestsStartInternalServerError with default headers values

func (*PostSpeedtestsStartInternalServerError) Error

func (*PostSpeedtestsStartInternalServerError) GetPayload

type PostSpeedtestsStartOK

type PostSpeedtestsStartOK struct {
	Payload *models.SpeedTestStart
}
PostSpeedtestsStartOK describes a response with status code 200, with default header values.

Successful

func NewPostSpeedtestsStartOK

func NewPostSpeedtestsStartOK() *PostSpeedtestsStartOK

NewPostSpeedtestsStartOK creates a PostSpeedtestsStartOK with default headers values

func (*PostSpeedtestsStartOK) Error

func (o *PostSpeedtestsStartOK) Error() string

func (*PostSpeedtestsStartOK) GetPayload

func (o *PostSpeedtestsStartOK) GetPayload() *models.SpeedTestStart

type PostSpeedtestsStartParams

type PostSpeedtestsStartParams struct {

	// Body.
	Body *models.PayloadSpeedTest

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

PostSpeedtestsStartParams contains all the parameters to send to the API endpoint

for the post speedtests start operation.

Typically these are written to a http.Request.

func NewPostSpeedtestsStartParams

func NewPostSpeedtestsStartParams() *PostSpeedtestsStartParams

NewPostSpeedtestsStartParams creates a new PostSpeedtestsStartParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPostSpeedtestsStartParamsWithContext

func NewPostSpeedtestsStartParamsWithContext(ctx context.Context) *PostSpeedtestsStartParams

NewPostSpeedtestsStartParamsWithContext creates a new PostSpeedtestsStartParams object with the ability to set a context for a request.

func NewPostSpeedtestsStartParamsWithHTTPClient

func NewPostSpeedtestsStartParamsWithHTTPClient(client *http.Client) *PostSpeedtestsStartParams

NewPostSpeedtestsStartParamsWithHTTPClient creates a new PostSpeedtestsStartParams object with the ability to set a custom HTTPClient for a request.

func NewPostSpeedtestsStartParamsWithTimeout

func NewPostSpeedtestsStartParamsWithTimeout(timeout time.Duration) *PostSpeedtestsStartParams

NewPostSpeedtestsStartParamsWithTimeout creates a new PostSpeedtestsStartParams object with the ability to set a timeout on a request.

func (*PostSpeedtestsStartParams) SetBody

SetBody adds the body to the post speedtests start params

func (*PostSpeedtestsStartParams) SetContext

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

SetContext adds the context to the post speedtests start params

func (*PostSpeedtestsStartParams) SetDefaults

func (o *PostSpeedtestsStartParams) SetDefaults()

SetDefaults hydrates default values in the post speedtests start params (not the query body).

All values with no default are reset to their zero value.

func (*PostSpeedtestsStartParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post speedtests start params

func (*PostSpeedtestsStartParams) SetTimeout

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

SetTimeout adds the timeout to the post speedtests start params

func (*PostSpeedtestsStartParams) WithBody

WithBody adds the body to the post speedtests start params

func (*PostSpeedtestsStartParams) WithContext

WithContext adds the context to the post speedtests start params

func (*PostSpeedtestsStartParams) WithDefaults

WithDefaults hydrates default values in the post speedtests start params (not the query body).

All values with no default are reset to their zero value.

func (*PostSpeedtestsStartParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post speedtests start params

func (*PostSpeedtestsStartParams) WithTimeout

WithTimeout adds the timeout to the post speedtests start params

func (*PostSpeedtestsStartParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostSpeedtestsStartReader

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

PostSpeedtestsStartReader is a Reader for the PostSpeedtestsStart structure.

func (*PostSpeedtestsStartReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostSpeedtestsStartUnauthorized

type PostSpeedtestsStartUnauthorized struct {
	Payload *models.Error
}
PostSpeedtestsStartUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPostSpeedtestsStartUnauthorized

func NewPostSpeedtestsStartUnauthorized() *PostSpeedtestsStartUnauthorized

NewPostSpeedtestsStartUnauthorized creates a PostSpeedtestsStartUnauthorized with default headers values

func (*PostSpeedtestsStartUnauthorized) Error

func (*PostSpeedtestsStartUnauthorized) GetPayload

func (o *PostSpeedtestsStartUnauthorized) GetPayload() *models.Error

Jump to

Keyboard shortcuts

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