Documentation
¶
Index ¶
- type Client
- func (a *Client) GetUser(params *GetUserParams, opts ...ClientOption) (*GetUserOK, error)
- func (a *Client) Login(params *LoginParams, opts ...ClientOption) (*LoginOK, error)
- func (a *Client) RegisterUser(params *RegisterUserParams, opts ...ClientOption) (*RegisterUserOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetUserDefault
- func (o *GetUserDefault) Code() int
- func (o *GetUserDefault) Error() string
- func (o *GetUserDefault) GetPayload() *models.RPCStatus
- func (o *GetUserDefault) IsClientError() bool
- func (o *GetUserDefault) IsCode(code int) bool
- func (o *GetUserDefault) IsRedirect() bool
- func (o *GetUserDefault) IsServerError() bool
- func (o *GetUserDefault) IsSuccess() bool
- func (o *GetUserDefault) String() string
- type GetUserOK
- func (o *GetUserOK) Code() int
- func (o *GetUserOK) Error() string
- func (o *GetUserOK) GetPayload() *models.UserspbGetUserResponse
- func (o *GetUserOK) IsClientError() bool
- func (o *GetUserOK) IsCode(code int) bool
- func (o *GetUserOK) IsRedirect() bool
- func (o *GetUserOK) IsServerError() bool
- func (o *GetUserOK) IsSuccess() bool
- func (o *GetUserOK) String() string
- type GetUserParams
- func (o *GetUserParams) SetContext(ctx context.Context)
- func (o *GetUserParams) SetDefaults()
- func (o *GetUserParams) SetHTTPClient(client *http.Client)
- func (o *GetUserParams) SetID(id string)
- func (o *GetUserParams) SetTimeout(timeout time.Duration)
- func (o *GetUserParams) WithContext(ctx context.Context) *GetUserParams
- func (o *GetUserParams) WithDefaults() *GetUserParams
- func (o *GetUserParams) WithHTTPClient(client *http.Client) *GetUserParams
- func (o *GetUserParams) WithID(id string) *GetUserParams
- func (o *GetUserParams) WithTimeout(timeout time.Duration) *GetUserParams
- func (o *GetUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUserReader
- type LoginDefault
- func (o *LoginDefault) Code() int
- func (o *LoginDefault) Error() string
- func (o *LoginDefault) GetPayload() *models.RPCStatus
- func (o *LoginDefault) IsClientError() bool
- func (o *LoginDefault) IsCode(code int) bool
- func (o *LoginDefault) IsRedirect() bool
- func (o *LoginDefault) IsServerError() bool
- func (o *LoginDefault) IsSuccess() bool
- func (o *LoginDefault) String() string
- type LoginOK
- func (o *LoginOK) Code() int
- func (o *LoginOK) Error() string
- func (o *LoginOK) GetPayload() *models.UserspbLoginResponse
- func (o *LoginOK) IsClientError() bool
- func (o *LoginOK) IsCode(code int) bool
- func (o *LoginOK) IsRedirect() bool
- func (o *LoginOK) IsServerError() bool
- func (o *LoginOK) IsSuccess() bool
- func (o *LoginOK) String() string
- type LoginParams
- func (o *LoginParams) SetBody(body *models.UserspbLoginRequest)
- func (o *LoginParams) SetContext(ctx context.Context)
- func (o *LoginParams) SetDefaults()
- func (o *LoginParams) SetHTTPClient(client *http.Client)
- func (o *LoginParams) SetTimeout(timeout time.Duration)
- func (o *LoginParams) WithBody(body *models.UserspbLoginRequest) *LoginParams
- func (o *LoginParams) WithContext(ctx context.Context) *LoginParams
- func (o *LoginParams) WithDefaults() *LoginParams
- func (o *LoginParams) WithHTTPClient(client *http.Client) *LoginParams
- func (o *LoginParams) WithTimeout(timeout time.Duration) *LoginParams
- func (o *LoginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LoginReader
- type RegisterUserDefault
- func (o *RegisterUserDefault) Code() int
- func (o *RegisterUserDefault) Error() string
- func (o *RegisterUserDefault) GetPayload() *models.RPCStatus
- func (o *RegisterUserDefault) IsClientError() bool
- func (o *RegisterUserDefault) IsCode(code int) bool
- func (o *RegisterUserDefault) IsRedirect() bool
- func (o *RegisterUserDefault) IsServerError() bool
- func (o *RegisterUserDefault) IsSuccess() bool
- func (o *RegisterUserDefault) String() string
- type RegisterUserOK
- func (o *RegisterUserOK) Code() int
- func (o *RegisterUserOK) Error() string
- func (o *RegisterUserOK) GetPayload() *models.UserspbRegisterUserResponse
- func (o *RegisterUserOK) IsClientError() bool
- func (o *RegisterUserOK) IsCode(code int) bool
- func (o *RegisterUserOK) IsRedirect() bool
- func (o *RegisterUserOK) IsServerError() bool
- func (o *RegisterUserOK) IsSuccess() bool
- func (o *RegisterUserOK) String() string
- type RegisterUserParams
- func (o *RegisterUserParams) SetBody(body *models.UserspbRegisterUserRequest)
- func (o *RegisterUserParams) SetContext(ctx context.Context)
- func (o *RegisterUserParams) SetDefaults()
- func (o *RegisterUserParams) SetHTTPClient(client *http.Client)
- func (o *RegisterUserParams) SetTimeout(timeout time.Duration)
- func (o *RegisterUserParams) WithBody(body *models.UserspbRegisterUserRequest) *RegisterUserParams
- func (o *RegisterUserParams) WithContext(ctx context.Context) *RegisterUserParams
- func (o *RegisterUserParams) WithDefaults() *RegisterUserParams
- func (o *RegisterUserParams) WithHTTPClient(client *http.Client) *RegisterUserParams
- func (o *RegisterUserParams) WithTimeout(timeout time.Duration) *RegisterUserParams
- func (o *RegisterUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RegisterUserReader
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 user API
func (*Client) GetUser ¶
func (a *Client) GetUser(params *GetUserParams, opts ...ClientOption) (*GetUserOK, error)
GetUser gets a user
func (*Client) Login ¶
func (a *Client) Login(params *LoginParams, opts ...ClientOption) (*LoginOK, error)
Login gets user s token
func (*Client) RegisterUser ¶
func (a *Client) RegisterUser(params *RegisterUserParams, opts ...ClientOption) (*RegisterUserOK, error)
RegisterUser registers a new user
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 {
Login(params *LoginParams, opts ...ClientOption) (*LoginOK, error)
GetUser(params *GetUserParams, opts ...ClientOption) (*GetUserOK, error)
RegisterUser(params *RegisterUserParams, opts ...ClientOption) (*RegisterUserOK, 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 user API client.
type GetUserDefault ¶
GetUserDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewGetUserDefault ¶
func NewGetUserDefault(code int) *GetUserDefault
NewGetUserDefault creates a GetUserDefault with default headers values
func (*GetUserDefault) Code ¶
func (o *GetUserDefault) Code() int
Code gets the status code for the get user default response
func (*GetUserDefault) Error ¶
func (o *GetUserDefault) Error() string
func (*GetUserDefault) GetPayload ¶
func (o *GetUserDefault) GetPayload() *models.RPCStatus
func (*GetUserDefault) IsClientError ¶
func (o *GetUserDefault) IsClientError() bool
IsClientError returns true when this get user default response has a 4xx status code
func (*GetUserDefault) IsCode ¶
func (o *GetUserDefault) IsCode(code int) bool
IsCode returns true when this get user default response a status code equal to that given
func (*GetUserDefault) IsRedirect ¶
func (o *GetUserDefault) IsRedirect() bool
IsRedirect returns true when this get user default response has a 3xx status code
func (*GetUserDefault) IsServerError ¶
func (o *GetUserDefault) IsServerError() bool
IsServerError returns true when this get user default response has a 5xx status code
func (*GetUserDefault) IsSuccess ¶
func (o *GetUserDefault) IsSuccess() bool
IsSuccess returns true when this get user default response has a 2xx status code
func (*GetUserDefault) String ¶
func (o *GetUserDefault) String() string
type GetUserOK ¶
type GetUserOK struct {
Payload *models.UserspbGetUserResponse
}
GetUserOK describes a response with status code 200, with default header values.
A successful response.
func NewGetUserOK ¶
func NewGetUserOK() *GetUserOK
NewGetUserOK creates a GetUserOK with default headers values
func (*GetUserOK) GetPayload ¶
func (o *GetUserOK) GetPayload() *models.UserspbGetUserResponse
func (*GetUserOK) IsClientError ¶
IsClientError returns true when this get user o k response has a 4xx status code
func (*GetUserOK) IsCode ¶
IsCode returns true when this get user o k response a status code equal to that given
func (*GetUserOK) IsRedirect ¶
IsRedirect returns true when this get user o k response has a 3xx status code
func (*GetUserOK) IsServerError ¶
IsServerError returns true when this get user o k response has a 5xx status code
type GetUserParams ¶
type GetUserParams struct {
// ID.
ID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetUserParams contains all the parameters to send to the API endpoint
for the get user operation. Typically these are written to a http.Request.
func NewGetUserParams ¶
func NewGetUserParams() *GetUserParams
NewGetUserParams creates a new GetUserParams 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 NewGetUserParamsWithContext ¶
func NewGetUserParamsWithContext(ctx context.Context) *GetUserParams
NewGetUserParamsWithContext creates a new GetUserParams object with the ability to set a context for a request.
func NewGetUserParamsWithHTTPClient ¶
func NewGetUserParamsWithHTTPClient(client *http.Client) *GetUserParams
NewGetUserParamsWithHTTPClient creates a new GetUserParams object with the ability to set a custom HTTPClient for a request.
func NewGetUserParamsWithTimeout ¶
func NewGetUserParamsWithTimeout(timeout time.Duration) *GetUserParams
NewGetUserParamsWithTimeout creates a new GetUserParams object with the ability to set a timeout on a request.
func (*GetUserParams) SetContext ¶
func (o *GetUserParams) SetContext(ctx context.Context)
SetContext adds the context to the get user params
func (*GetUserParams) SetDefaults ¶
func (o *GetUserParams) SetDefaults()
SetDefaults hydrates default values in the get user params (not the query body).
All values with no default are reset to their zero value.
func (*GetUserParams) SetHTTPClient ¶
func (o *GetUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get user params
func (*GetUserParams) SetID ¶
func (o *GetUserParams) SetID(id string)
SetID adds the id to the get user params
func (*GetUserParams) SetTimeout ¶
func (o *GetUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get user params
func (*GetUserParams) WithContext ¶
func (o *GetUserParams) WithContext(ctx context.Context) *GetUserParams
WithContext adds the context to the get user params
func (*GetUserParams) WithDefaults ¶
func (o *GetUserParams) WithDefaults() *GetUserParams
WithDefaults hydrates default values in the get user params (not the query body).
All values with no default are reset to their zero value.
func (*GetUserParams) WithHTTPClient ¶
func (o *GetUserParams) WithHTTPClient(client *http.Client) *GetUserParams
WithHTTPClient adds the HTTPClient to the get user params
func (*GetUserParams) WithID ¶
func (o *GetUserParams) WithID(id string) *GetUserParams
WithID adds the id to the get user params
func (*GetUserParams) WithTimeout ¶
func (o *GetUserParams) WithTimeout(timeout time.Duration) *GetUserParams
WithTimeout adds the timeout to the get user params
func (*GetUserParams) WriteToRequest ¶
func (o *GetUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetUserReader ¶
type GetUserReader struct {
// contains filtered or unexported fields
}
GetUserReader is a Reader for the GetUser structure.
func (*GetUserReader) ReadResponse ¶
func (o *GetUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type LoginDefault ¶
LoginDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewLoginDefault ¶
func NewLoginDefault(code int) *LoginDefault
NewLoginDefault creates a LoginDefault with default headers values
func (*LoginDefault) Code ¶
func (o *LoginDefault) Code() int
Code gets the status code for the login default response
func (*LoginDefault) Error ¶
func (o *LoginDefault) Error() string
func (*LoginDefault) GetPayload ¶
func (o *LoginDefault) GetPayload() *models.RPCStatus
func (*LoginDefault) IsClientError ¶
func (o *LoginDefault) IsClientError() bool
IsClientError returns true when this login default response has a 4xx status code
func (*LoginDefault) IsCode ¶
func (o *LoginDefault) IsCode(code int) bool
IsCode returns true when this login default response a status code equal to that given
func (*LoginDefault) IsRedirect ¶
func (o *LoginDefault) IsRedirect() bool
IsRedirect returns true when this login default response has a 3xx status code
func (*LoginDefault) IsServerError ¶
func (o *LoginDefault) IsServerError() bool
IsServerError returns true when this login default response has a 5xx status code
func (*LoginDefault) IsSuccess ¶
func (o *LoginDefault) IsSuccess() bool
IsSuccess returns true when this login default response has a 2xx status code
func (*LoginDefault) String ¶
func (o *LoginDefault) String() string
type LoginOK ¶
type LoginOK struct {
Payload *models.UserspbLoginResponse
}
LoginOK describes a response with status code 200, with default header values.
A successful response.
func NewLoginOK ¶
func NewLoginOK() *LoginOK
NewLoginOK creates a LoginOK with default headers values
func (*LoginOK) GetPayload ¶
func (o *LoginOK) GetPayload() *models.UserspbLoginResponse
func (*LoginOK) IsClientError ¶
IsClientError returns true when this login o k response has a 4xx status code
func (*LoginOK) IsCode ¶
IsCode returns true when this login o k response a status code equal to that given
func (*LoginOK) IsRedirect ¶
IsRedirect returns true when this login o k response has a 3xx status code
func (*LoginOK) IsServerError ¶
IsServerError returns true when this login o k response has a 5xx status code
type LoginParams ¶
type LoginParams struct {
// Body.
Body *models.UserspbLoginRequest
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
LoginParams contains all the parameters to send to the API endpoint
for the login operation. Typically these are written to a http.Request.
func NewLoginParams ¶
func NewLoginParams() *LoginParams
NewLoginParams creates a new LoginParams 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 NewLoginParamsWithContext ¶
func NewLoginParamsWithContext(ctx context.Context) *LoginParams
NewLoginParamsWithContext creates a new LoginParams object with the ability to set a context for a request.
func NewLoginParamsWithHTTPClient ¶
func NewLoginParamsWithHTTPClient(client *http.Client) *LoginParams
NewLoginParamsWithHTTPClient creates a new LoginParams object with the ability to set a custom HTTPClient for a request.
func NewLoginParamsWithTimeout ¶
func NewLoginParamsWithTimeout(timeout time.Duration) *LoginParams
NewLoginParamsWithTimeout creates a new LoginParams object with the ability to set a timeout on a request.
func (*LoginParams) SetBody ¶
func (o *LoginParams) SetBody(body *models.UserspbLoginRequest)
SetBody adds the body to the login params
func (*LoginParams) SetContext ¶
func (o *LoginParams) SetContext(ctx context.Context)
SetContext adds the context to the login params
func (*LoginParams) SetDefaults ¶
func (o *LoginParams) SetDefaults()
SetDefaults hydrates default values in the login params (not the query body).
All values with no default are reset to their zero value.
func (*LoginParams) SetHTTPClient ¶
func (o *LoginParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the login params
func (*LoginParams) SetTimeout ¶
func (o *LoginParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the login params
func (*LoginParams) WithBody ¶
func (o *LoginParams) WithBody(body *models.UserspbLoginRequest) *LoginParams
WithBody adds the body to the login params
func (*LoginParams) WithContext ¶
func (o *LoginParams) WithContext(ctx context.Context) *LoginParams
WithContext adds the context to the login params
func (*LoginParams) WithDefaults ¶
func (o *LoginParams) WithDefaults() *LoginParams
WithDefaults hydrates default values in the login params (not the query body).
All values with no default are reset to their zero value.
func (*LoginParams) WithHTTPClient ¶
func (o *LoginParams) WithHTTPClient(client *http.Client) *LoginParams
WithHTTPClient adds the HTTPClient to the login params
func (*LoginParams) WithTimeout ¶
func (o *LoginParams) WithTimeout(timeout time.Duration) *LoginParams
WithTimeout adds the timeout to the login params
func (*LoginParams) WriteToRequest ¶
func (o *LoginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type LoginReader ¶
type LoginReader struct {
// contains filtered or unexported fields
}
LoginReader is a Reader for the Login structure.
func (*LoginReader) ReadResponse ¶
func (o *LoginReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RegisterUserDefault ¶
type RegisterUserDefault struct {
Payload *models.RPCStatus
// contains filtered or unexported fields
}
RegisterUserDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewRegisterUserDefault ¶
func NewRegisterUserDefault(code int) *RegisterUserDefault
NewRegisterUserDefault creates a RegisterUserDefault with default headers values
func (*RegisterUserDefault) Code ¶
func (o *RegisterUserDefault) Code() int
Code gets the status code for the register user default response
func (*RegisterUserDefault) Error ¶
func (o *RegisterUserDefault) Error() string
func (*RegisterUserDefault) GetPayload ¶
func (o *RegisterUserDefault) GetPayload() *models.RPCStatus
func (*RegisterUserDefault) IsClientError ¶
func (o *RegisterUserDefault) IsClientError() bool
IsClientError returns true when this register user default response has a 4xx status code
func (*RegisterUserDefault) IsCode ¶
func (o *RegisterUserDefault) IsCode(code int) bool
IsCode returns true when this register user default response a status code equal to that given
func (*RegisterUserDefault) IsRedirect ¶
func (o *RegisterUserDefault) IsRedirect() bool
IsRedirect returns true when this register user default response has a 3xx status code
func (*RegisterUserDefault) IsServerError ¶
func (o *RegisterUserDefault) IsServerError() bool
IsServerError returns true when this register user default response has a 5xx status code
func (*RegisterUserDefault) IsSuccess ¶
func (o *RegisterUserDefault) IsSuccess() bool
IsSuccess returns true when this register user default response has a 2xx status code
func (*RegisterUserDefault) String ¶
func (o *RegisterUserDefault) String() string
type RegisterUserOK ¶
type RegisterUserOK struct {
Payload *models.UserspbRegisterUserResponse
}
RegisterUserOK describes a response with status code 200, with default header values.
A successful response.
func NewRegisterUserOK ¶
func NewRegisterUserOK() *RegisterUserOK
NewRegisterUserOK creates a RegisterUserOK with default headers values
func (*RegisterUserOK) Code ¶
func (o *RegisterUserOK) Code() int
Code gets the status code for the register user o k response
func (*RegisterUserOK) Error ¶
func (o *RegisterUserOK) Error() string
func (*RegisterUserOK) GetPayload ¶
func (o *RegisterUserOK) GetPayload() *models.UserspbRegisterUserResponse
func (*RegisterUserOK) IsClientError ¶
func (o *RegisterUserOK) IsClientError() bool
IsClientError returns true when this register user o k response has a 4xx status code
func (*RegisterUserOK) IsCode ¶
func (o *RegisterUserOK) IsCode(code int) bool
IsCode returns true when this register user o k response a status code equal to that given
func (*RegisterUserOK) IsRedirect ¶
func (o *RegisterUserOK) IsRedirect() bool
IsRedirect returns true when this register user o k response has a 3xx status code
func (*RegisterUserOK) IsServerError ¶
func (o *RegisterUserOK) IsServerError() bool
IsServerError returns true when this register user o k response has a 5xx status code
func (*RegisterUserOK) IsSuccess ¶
func (o *RegisterUserOK) IsSuccess() bool
IsSuccess returns true when this register user o k response has a 2xx status code
func (*RegisterUserOK) String ¶
func (o *RegisterUserOK) String() string
type RegisterUserParams ¶
type RegisterUserParams struct {
// Body.
Body *models.UserspbRegisterUserRequest
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
RegisterUserParams contains all the parameters to send to the API endpoint
for the register user operation. Typically these are written to a http.Request.
func NewRegisterUserParams ¶
func NewRegisterUserParams() *RegisterUserParams
NewRegisterUserParams creates a new RegisterUserParams 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 NewRegisterUserParamsWithContext ¶
func NewRegisterUserParamsWithContext(ctx context.Context) *RegisterUserParams
NewRegisterUserParamsWithContext creates a new RegisterUserParams object with the ability to set a context for a request.
func NewRegisterUserParamsWithHTTPClient ¶
func NewRegisterUserParamsWithHTTPClient(client *http.Client) *RegisterUserParams
NewRegisterUserParamsWithHTTPClient creates a new RegisterUserParams object with the ability to set a custom HTTPClient for a request.
func NewRegisterUserParamsWithTimeout ¶
func NewRegisterUserParamsWithTimeout(timeout time.Duration) *RegisterUserParams
NewRegisterUserParamsWithTimeout creates a new RegisterUserParams object with the ability to set a timeout on a request.
func (*RegisterUserParams) SetBody ¶
func (o *RegisterUserParams) SetBody(body *models.UserspbRegisterUserRequest)
SetBody adds the body to the register user params
func (*RegisterUserParams) SetContext ¶
func (o *RegisterUserParams) SetContext(ctx context.Context)
SetContext adds the context to the register user params
func (*RegisterUserParams) SetDefaults ¶
func (o *RegisterUserParams) SetDefaults()
SetDefaults hydrates default values in the register user params (not the query body).
All values with no default are reset to their zero value.
func (*RegisterUserParams) SetHTTPClient ¶
func (o *RegisterUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the register user params
func (*RegisterUserParams) SetTimeout ¶
func (o *RegisterUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the register user params
func (*RegisterUserParams) WithBody ¶
func (o *RegisterUserParams) WithBody(body *models.UserspbRegisterUserRequest) *RegisterUserParams
WithBody adds the body to the register user params
func (*RegisterUserParams) WithContext ¶
func (o *RegisterUserParams) WithContext(ctx context.Context) *RegisterUserParams
WithContext adds the context to the register user params
func (*RegisterUserParams) WithDefaults ¶
func (o *RegisterUserParams) WithDefaults() *RegisterUserParams
WithDefaults hydrates default values in the register user params (not the query body).
All values with no default are reset to their zero value.
func (*RegisterUserParams) WithHTTPClient ¶
func (o *RegisterUserParams) WithHTTPClient(client *http.Client) *RegisterUserParams
WithHTTPClient adds the HTTPClient to the register user params
func (*RegisterUserParams) WithTimeout ¶
func (o *RegisterUserParams) WithTimeout(timeout time.Duration) *RegisterUserParams
WithTimeout adds the timeout to the register user params
func (*RegisterUserParams) WriteToRequest ¶
func (o *RegisterUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RegisterUserReader ¶
type RegisterUserReader struct {
// contains filtered or unexported fields
}
RegisterUserReader is a Reader for the RegisterUser structure.
func (*RegisterUserReader) ReadResponse ¶
func (o *RegisterUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.