users

package
v0.0.0-...-40ccd96 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: BSD-2-Clause Imports: 11 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 (*Client) GetUsersID

func (a *Client) GetUsersID(params *GetUsersIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersIDOK, error)

GetUsersID get users ID API

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 {
	GetUsersID(params *GetUsersIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersIDOK, 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 users API client.

type GetUsersIDDefault

type GetUsersIDDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetUsersIDDefault describes a response with status code -1, with default header values.

error

func NewGetUsersIDDefault

func NewGetUsersIDDefault(code int) *GetUsersIDDefault

NewGetUsersIDDefault creates a GetUsersIDDefault with default headers values

func (*GetUsersIDDefault) Code

func (o *GetUsersIDDefault) Code() int

Code gets the status code for the get users ID default response

func (*GetUsersIDDefault) Error

func (o *GetUsersIDDefault) Error() string

func (*GetUsersIDDefault) GetPayload

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

func (*GetUsersIDDefault) IsClientError

func (o *GetUsersIDDefault) IsClientError() bool

IsClientError returns true when this get users ID default response has a 4xx status code

func (*GetUsersIDDefault) IsCode

func (o *GetUsersIDDefault) IsCode(code int) bool

IsCode returns true when this get users ID default response a status code equal to that given

func (*GetUsersIDDefault) IsRedirect

func (o *GetUsersIDDefault) IsRedirect() bool

IsRedirect returns true when this get users ID default response has a 3xx status code

func (*GetUsersIDDefault) IsServerError

func (o *GetUsersIDDefault) IsServerError() bool

IsServerError returns true when this get users ID default response has a 5xx status code

func (*GetUsersIDDefault) IsSuccess

func (o *GetUsersIDDefault) IsSuccess() bool

IsSuccess returns true when this get users ID default response has a 2xx status code

func (*GetUsersIDDefault) String

func (o *GetUsersIDDefault) String() string

type GetUsersIDOK

type GetUsersIDOK struct {
	Payload *models.User
}

GetUsersIDOK describes a response with status code 200, with default header values.

Get user by ID

func NewGetUsersIDOK

func NewGetUsersIDOK() *GetUsersIDOK

NewGetUsersIDOK creates a GetUsersIDOK with default headers values

func (*GetUsersIDOK) Code

func (o *GetUsersIDOK) Code() int

Code gets the status code for the get users Id o k response

func (*GetUsersIDOK) Error

func (o *GetUsersIDOK) Error() string

func (*GetUsersIDOK) GetPayload

func (o *GetUsersIDOK) GetPayload() *models.User

func (*GetUsersIDOK) IsClientError

func (o *GetUsersIDOK) IsClientError() bool

IsClientError returns true when this get users Id o k response has a 4xx status code

func (*GetUsersIDOK) IsCode

func (o *GetUsersIDOK) IsCode(code int) bool

IsCode returns true when this get users Id o k response a status code equal to that given

func (*GetUsersIDOK) IsRedirect

func (o *GetUsersIDOK) IsRedirect() bool

IsRedirect returns true when this get users Id o k response has a 3xx status code

func (*GetUsersIDOK) IsServerError

func (o *GetUsersIDOK) IsServerError() bool

IsServerError returns true when this get users Id o k response has a 5xx status code

func (*GetUsersIDOK) IsSuccess

func (o *GetUsersIDOK) IsSuccess() bool

IsSuccess returns true when this get users Id o k response has a 2xx status code

func (*GetUsersIDOK) String

func (o *GetUsersIDOK) String() string

type GetUsersIDParams

type GetUsersIDParams struct {

	// ID.
	ID int64

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

GetUsersIDParams contains all the parameters to send to the API endpoint

for the get users ID operation.

Typically these are written to a http.Request.

func NewGetUsersIDParams

func NewGetUsersIDParams() *GetUsersIDParams

NewGetUsersIDParams creates a new GetUsersIDParams 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 NewGetUsersIDParamsWithContext

func NewGetUsersIDParamsWithContext(ctx context.Context) *GetUsersIDParams

NewGetUsersIDParamsWithContext creates a new GetUsersIDParams object with the ability to set a context for a request.

func NewGetUsersIDParamsWithHTTPClient

func NewGetUsersIDParamsWithHTTPClient(client *http.Client) *GetUsersIDParams

NewGetUsersIDParamsWithHTTPClient creates a new GetUsersIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetUsersIDParamsWithTimeout

func NewGetUsersIDParamsWithTimeout(timeout time.Duration) *GetUsersIDParams

NewGetUsersIDParamsWithTimeout creates a new GetUsersIDParams object with the ability to set a timeout on a request.

func (*GetUsersIDParams) SetContext

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

SetContext adds the context to the get users ID params

func (*GetUsersIDParams) SetDefaults

func (o *GetUsersIDParams) SetDefaults()

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

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

func (*GetUsersIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get users ID params

func (*GetUsersIDParams) SetID

func (o *GetUsersIDParams) SetID(id int64)

SetID adds the id to the get users ID params

func (*GetUsersIDParams) SetTimeout

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

SetTimeout adds the timeout to the get users ID params

func (*GetUsersIDParams) WithContext

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

WithContext adds the context to the get users ID params

func (*GetUsersIDParams) WithDefaults

func (o *GetUsersIDParams) WithDefaults() *GetUsersIDParams

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

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

func (*GetUsersIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get users ID params

func (*GetUsersIDParams) WithID

func (o *GetUsersIDParams) WithID(id int64) *GetUsersIDParams

WithID adds the id to the get users ID params

func (*GetUsersIDParams) WithTimeout

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

WithTimeout adds the timeout to the get users ID params

func (*GetUsersIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUsersIDReader

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

GetUsersIDReader is a Reader for the GetUsersID structure.

func (*GetUsersIDReader) ReadResponse

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