your_service

package
v0.0.0-...-4a656d5 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: CC0-1.0 Imports: 10 Imported by: 1

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 your service API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new your service API client.

func (*Client) Echo

func (a *Client) Echo(params *EchoParams) (*EchoOK, error)

Echo echo API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type EchoOK

type EchoOK struct {
	Payload *models.ExampleStringMessage
}

EchoOK handles this case with default header values.

EchoOK echo o k

func NewEchoOK

func NewEchoOK() *EchoOK

NewEchoOK creates a EchoOK with default headers values

func (*EchoOK) Error

func (o *EchoOK) Error() string

type EchoParams

type EchoParams struct {

	/*Body*/
	Body *models.ExampleStringMessage

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

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

func NewEchoParams

func NewEchoParams() *EchoParams

NewEchoParams creates a new EchoParams object with the default values initialized.

func NewEchoParamsWithContext

func NewEchoParamsWithContext(ctx context.Context) *EchoParams

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

func NewEchoParamsWithHTTPClient

func NewEchoParamsWithHTTPClient(client *http.Client) *EchoParams

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

func NewEchoParamsWithTimeout

func NewEchoParamsWithTimeout(timeout time.Duration) *EchoParams

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

func (*EchoParams) SetBody

func (o *EchoParams) SetBody(body *models.ExampleStringMessage)

SetBody adds the body to the echo params

func (*EchoParams) SetContext

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

SetContext adds the context to the echo params

func (*EchoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the echo params

func (*EchoParams) SetTimeout

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

SetTimeout adds the timeout to the echo params

func (*EchoParams) WithBody

func (o *EchoParams) WithBody(body *models.ExampleStringMessage) *EchoParams

WithBody adds the body to the echo params

func (*EchoParams) WithContext

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

WithContext adds the context to the echo params

func (*EchoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the echo params

func (*EchoParams) WithTimeout

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

WithTimeout adds the timeout to the echo params

func (*EchoParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EchoReader

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

EchoReader is a Reader for the Echo structure.

func (*EchoReader) ReadResponse

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