users

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: BSD-3-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 users API

func New

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

New creates a new users API client.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) Total

func (a *Client) Total(params *TotalParams, authInfo runtime.ClientAuthInfoWriter) (*TotalOK, error)

Total currents throughput of this node in messages per second

type TotalOK

type TotalOK struct {
	Payload *models.Throughput
}

TotalOK handles this case with default header values.

No response was specified

func NewTotalOK

func NewTotalOK() *TotalOK

NewTotalOK creates a TotalOK with default headers values

func (*TotalOK) Error

func (o *TotalOK) Error() string

type TotalParams

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

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

func NewTotalParams

func NewTotalParams() *TotalParams

NewTotalParams creates a new TotalParams object with the default values initialized.

func NewTotalParamsWithContext

func NewTotalParamsWithContext(ctx context.Context) *TotalParams

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

func NewTotalParamsWithHTTPClient

func NewTotalParamsWithHTTPClient(client *http.Client) *TotalParams

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

func NewTotalParamsWithTimeout

func NewTotalParamsWithTimeout(timeout time.Duration) *TotalParams

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

func (*TotalParams) SetContext

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

SetContext adds the context to the total params

func (*TotalParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the total params

func (*TotalParams) SetTimeout

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

SetTimeout adds the timeout to the total params

func (*TotalParams) WithContext

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

WithContext adds the context to the total params

func (*TotalParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the total params

func (*TotalParams) WithTimeout

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

WithTimeout adds the timeout to the total params

func (*TotalParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type TotalReader

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

TotalReader is a Reader for the Total structure.

func (*TotalReader) ReadResponse

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