consumer_service

package
v0.0.0-...-783eb67 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: BSD-2-Clause 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 consumer service API

func New

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

New creates a new consumer service API client.

func (*Client) Healtz

func (a *Client) Healtz(params *HealtzParams) (*HealtzOK, error)

Healtz healtz API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type HealtzOK

type HealtzOK struct {
	Payload *models.ConsumerstoreHealthResponse
}

HealtzOK handles this case with default header values.

A successful response.

func NewHealtzOK

func NewHealtzOK() *HealtzOK

NewHealtzOK creates a HealtzOK with default headers values

func (*HealtzOK) Error

func (o *HealtzOK) Error() string

type HealtzParams

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

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

func NewHealtzParams

func NewHealtzParams() *HealtzParams

NewHealtzParams creates a new HealtzParams object with the default values initialized.

func NewHealtzParamsWithContext

func NewHealtzParamsWithContext(ctx context.Context) *HealtzParams

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

func NewHealtzParamsWithHTTPClient

func NewHealtzParamsWithHTTPClient(client *http.Client) *HealtzParams

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

func NewHealtzParamsWithTimeout

func NewHealtzParamsWithTimeout(timeout time.Duration) *HealtzParams

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

func (*HealtzParams) SetContext

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

SetContext adds the context to the healtz params

func (*HealtzParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the healtz params

func (*HealtzParams) SetTimeout

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

SetTimeout adds the timeout to the healtz params

func (*HealtzParams) WithContext

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

WithContext adds the context to the healtz params

func (*HealtzParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the healtz params

func (*HealtzParams) WithTimeout

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

WithTimeout adds the timeout to the healtz params

func (*HealtzParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type HealtzReader

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

HealtzReader is a Reader for the Healtz structure.

func (*HealtzReader) ReadResponse

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