Documentation
¶
Index ¶
- type Client
- func (a *Client) DeleteWalletAddress(params *DeleteWalletAddressParams, opts ...ClientOption) (*DeleteWalletAddressNoContent, error)
- func (a *Client) GetWallet(params *GetWalletParams, opts ...ClientOption) (*GetWalletOK, error)
- func (a *Client) PostWallet(params *PostWalletParams, opts ...ClientOption) (*PostWalletOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteWalletAddressBadRequest
- func (o *DeleteWalletAddressBadRequest) Code() int
- func (o *DeleteWalletAddressBadRequest) Error() string
- func (o *DeleteWalletAddressBadRequest) GetPayload() *models.APIHTTPError
- func (o *DeleteWalletAddressBadRequest) IsClientError() bool
- func (o *DeleteWalletAddressBadRequest) IsCode(code int) bool
- func (o *DeleteWalletAddressBadRequest) IsRedirect() bool
- func (o *DeleteWalletAddressBadRequest) IsServerError() bool
- func (o *DeleteWalletAddressBadRequest) IsSuccess() bool
- func (o *DeleteWalletAddressBadRequest) String() string
- type DeleteWalletAddressInternalServerError
- func (o *DeleteWalletAddressInternalServerError) Code() int
- func (o *DeleteWalletAddressInternalServerError) Error() string
- func (o *DeleteWalletAddressInternalServerError) GetPayload() *models.APIHTTPError
- func (o *DeleteWalletAddressInternalServerError) IsClientError() bool
- func (o *DeleteWalletAddressInternalServerError) IsCode(code int) bool
- func (o *DeleteWalletAddressInternalServerError) IsRedirect() bool
- func (o *DeleteWalletAddressInternalServerError) IsServerError() bool
- func (o *DeleteWalletAddressInternalServerError) IsSuccess() bool
- func (o *DeleteWalletAddressInternalServerError) String() string
- type DeleteWalletAddressNoContent
- func (o *DeleteWalletAddressNoContent) Code() int
- func (o *DeleteWalletAddressNoContent) Error() string
- func (o *DeleteWalletAddressNoContent) IsClientError() bool
- func (o *DeleteWalletAddressNoContent) IsCode(code int) bool
- func (o *DeleteWalletAddressNoContent) IsRedirect() bool
- func (o *DeleteWalletAddressNoContent) IsServerError() bool
- func (o *DeleteWalletAddressNoContent) IsSuccess() bool
- func (o *DeleteWalletAddressNoContent) String() string
- type DeleteWalletAddressParams
- func NewDeleteWalletAddressParams() *DeleteWalletAddressParams
- func NewDeleteWalletAddressParamsWithContext(ctx context.Context) *DeleteWalletAddressParams
- func NewDeleteWalletAddressParamsWithHTTPClient(client *http.Client) *DeleteWalletAddressParams
- func NewDeleteWalletAddressParamsWithTimeout(timeout time.Duration) *DeleteWalletAddressParams
- func (o *DeleteWalletAddressParams) SetAddress(address string)
- func (o *DeleteWalletAddressParams) SetContext(ctx context.Context)
- func (o *DeleteWalletAddressParams) SetDefaults()
- func (o *DeleteWalletAddressParams) SetHTTPClient(client *http.Client)
- func (o *DeleteWalletAddressParams) SetTimeout(timeout time.Duration)
- func (o *DeleteWalletAddressParams) WithAddress(address string) *DeleteWalletAddressParams
- func (o *DeleteWalletAddressParams) WithContext(ctx context.Context) *DeleteWalletAddressParams
- func (o *DeleteWalletAddressParams) WithDefaults() *DeleteWalletAddressParams
- func (o *DeleteWalletAddressParams) WithHTTPClient(client *http.Client) *DeleteWalletAddressParams
- func (o *DeleteWalletAddressParams) WithTimeout(timeout time.Duration) *DeleteWalletAddressParams
- func (o *DeleteWalletAddressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteWalletAddressReader
- type GetWalletBadRequest
- func (o *GetWalletBadRequest) Code() int
- func (o *GetWalletBadRequest) Error() string
- func (o *GetWalletBadRequest) GetPayload() *models.APIHTTPError
- func (o *GetWalletBadRequest) IsClientError() bool
- func (o *GetWalletBadRequest) IsCode(code int) bool
- func (o *GetWalletBadRequest) IsRedirect() bool
- func (o *GetWalletBadRequest) IsServerError() bool
- func (o *GetWalletBadRequest) IsSuccess() bool
- func (o *GetWalletBadRequest) String() string
- type GetWalletInternalServerError
- func (o *GetWalletInternalServerError) Code() int
- func (o *GetWalletInternalServerError) Error() string
- func (o *GetWalletInternalServerError) GetPayload() *models.APIHTTPError
- func (o *GetWalletInternalServerError) IsClientError() bool
- func (o *GetWalletInternalServerError) IsCode(code int) bool
- func (o *GetWalletInternalServerError) IsRedirect() bool
- func (o *GetWalletInternalServerError) IsServerError() bool
- func (o *GetWalletInternalServerError) IsSuccess() bool
- func (o *GetWalletInternalServerError) String() string
- type GetWalletOK
- func (o *GetWalletOK) Code() int
- func (o *GetWalletOK) Error() string
- func (o *GetWalletOK) GetPayload() []*models.ModelWallet
- func (o *GetWalletOK) IsClientError() bool
- func (o *GetWalletOK) IsCode(code int) bool
- func (o *GetWalletOK) IsRedirect() bool
- func (o *GetWalletOK) IsServerError() bool
- func (o *GetWalletOK) IsSuccess() bool
- func (o *GetWalletOK) String() string
- type GetWalletParams
- func (o *GetWalletParams) SetContext(ctx context.Context)
- func (o *GetWalletParams) SetDefaults()
- func (o *GetWalletParams) SetHTTPClient(client *http.Client)
- func (o *GetWalletParams) SetTimeout(timeout time.Duration)
- func (o *GetWalletParams) WithContext(ctx context.Context) *GetWalletParams
- func (o *GetWalletParams) WithDefaults() *GetWalletParams
- func (o *GetWalletParams) WithHTTPClient(client *http.Client) *GetWalletParams
- func (o *GetWalletParams) WithTimeout(timeout time.Duration) *GetWalletParams
- func (o *GetWalletParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWalletReader
- type PostWalletBadRequest
- func (o *PostWalletBadRequest) Code() int
- func (o *PostWalletBadRequest) Error() string
- func (o *PostWalletBadRequest) GetPayload() *models.APIHTTPError
- func (o *PostWalletBadRequest) IsClientError() bool
- func (o *PostWalletBadRequest) IsCode(code int) bool
- func (o *PostWalletBadRequest) IsRedirect() bool
- func (o *PostWalletBadRequest) IsServerError() bool
- func (o *PostWalletBadRequest) IsSuccess() bool
- func (o *PostWalletBadRequest) String() string
- type PostWalletInternalServerError
- func (o *PostWalletInternalServerError) Code() int
- func (o *PostWalletInternalServerError) Error() string
- func (o *PostWalletInternalServerError) GetPayload() *models.APIHTTPError
- func (o *PostWalletInternalServerError) IsClientError() bool
- func (o *PostWalletInternalServerError) IsCode(code int) bool
- func (o *PostWalletInternalServerError) IsRedirect() bool
- func (o *PostWalletInternalServerError) IsServerError() bool
- func (o *PostWalletInternalServerError) IsSuccess() bool
- func (o *PostWalletInternalServerError) String() string
- type PostWalletOK
- func (o *PostWalletOK) Code() int
- func (o *PostWalletOK) Error() string
- func (o *PostWalletOK) GetPayload() *models.ModelWallet
- func (o *PostWalletOK) IsClientError() bool
- func (o *PostWalletOK) IsCode(code int) bool
- func (o *PostWalletOK) IsRedirect() bool
- func (o *PostWalletOK) IsServerError() bool
- func (o *PostWalletOK) IsSuccess() bool
- func (o *PostWalletOK) String() string
- type PostWalletParams
- func (o *PostWalletParams) SetContext(ctx context.Context)
- func (o *PostWalletParams) SetDefaults()
- func (o *PostWalletParams) SetHTTPClient(client *http.Client)
- func (o *PostWalletParams) SetRequest(request *models.WalletImportRequest)
- func (o *PostWalletParams) SetTimeout(timeout time.Duration)
- func (o *PostWalletParams) WithContext(ctx context.Context) *PostWalletParams
- func (o *PostWalletParams) WithDefaults() *PostWalletParams
- func (o *PostWalletParams) WithHTTPClient(client *http.Client) *PostWalletParams
- func (o *PostWalletParams) WithRequest(request *models.WalletImportRequest) *PostWalletParams
- func (o *PostWalletParams) WithTimeout(timeout time.Duration) *PostWalletParams
- func (o *PostWalletParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostWalletReader
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 wallet API
func (*Client) DeleteWalletAddress ¶
func (a *Client) DeleteWalletAddress(params *DeleteWalletAddressParams, opts ...ClientOption) (*DeleteWalletAddressNoContent, error)
DeleteWalletAddress removes a wallet
func (*Client) GetWallet ¶
func (a *Client) GetWallet(params *GetWalletParams, opts ...ClientOption) (*GetWalletOK, error)
GetWallet lists all imported wallets
func (*Client) PostWallet ¶
func (a *Client) PostWallet(params *PostWalletParams, opts ...ClientOption) (*PostWalletOK, error)
PostWallet imports a private key
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 {
DeleteWalletAddress(params *DeleteWalletAddressParams, opts ...ClientOption) (*DeleteWalletAddressNoContent, error)
GetWallet(params *GetWalletParams, opts ...ClientOption) (*GetWalletOK, error)
PostWallet(params *PostWalletParams, opts ...ClientOption) (*PostWalletOK, 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 wallet API client.
type DeleteWalletAddressBadRequest ¶
type DeleteWalletAddressBadRequest struct {
Payload *models.APIHTTPError
}
DeleteWalletAddressBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewDeleteWalletAddressBadRequest ¶
func NewDeleteWalletAddressBadRequest() *DeleteWalletAddressBadRequest
NewDeleteWalletAddressBadRequest creates a DeleteWalletAddressBadRequest with default headers values
func (*DeleteWalletAddressBadRequest) Code ¶
func (o *DeleteWalletAddressBadRequest) Code() int
Code gets the status code for the delete wallet address bad request response
func (*DeleteWalletAddressBadRequest) Error ¶
func (o *DeleteWalletAddressBadRequest) Error() string
func (*DeleteWalletAddressBadRequest) GetPayload ¶
func (o *DeleteWalletAddressBadRequest) GetPayload() *models.APIHTTPError
func (*DeleteWalletAddressBadRequest) IsClientError ¶
func (o *DeleteWalletAddressBadRequest) IsClientError() bool
IsClientError returns true when this delete wallet address bad request response has a 4xx status code
func (*DeleteWalletAddressBadRequest) IsCode ¶
func (o *DeleteWalletAddressBadRequest) IsCode(code int) bool
IsCode returns true when this delete wallet address bad request response a status code equal to that given
func (*DeleteWalletAddressBadRequest) IsRedirect ¶
func (o *DeleteWalletAddressBadRequest) IsRedirect() bool
IsRedirect returns true when this delete wallet address bad request response has a 3xx status code
func (*DeleteWalletAddressBadRequest) IsServerError ¶
func (o *DeleteWalletAddressBadRequest) IsServerError() bool
IsServerError returns true when this delete wallet address bad request response has a 5xx status code
func (*DeleteWalletAddressBadRequest) IsSuccess ¶
func (o *DeleteWalletAddressBadRequest) IsSuccess() bool
IsSuccess returns true when this delete wallet address bad request response has a 2xx status code
func (*DeleteWalletAddressBadRequest) String ¶
func (o *DeleteWalletAddressBadRequest) String() string
type DeleteWalletAddressInternalServerError ¶
type DeleteWalletAddressInternalServerError struct {
Payload *models.APIHTTPError
}
DeleteWalletAddressInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewDeleteWalletAddressInternalServerError ¶
func NewDeleteWalletAddressInternalServerError() *DeleteWalletAddressInternalServerError
NewDeleteWalletAddressInternalServerError creates a DeleteWalletAddressInternalServerError with default headers values
func (*DeleteWalletAddressInternalServerError) Code ¶
func (o *DeleteWalletAddressInternalServerError) Code() int
Code gets the status code for the delete wallet address internal server error response
func (*DeleteWalletAddressInternalServerError) Error ¶
func (o *DeleteWalletAddressInternalServerError) Error() string
func (*DeleteWalletAddressInternalServerError) GetPayload ¶
func (o *DeleteWalletAddressInternalServerError) GetPayload() *models.APIHTTPError
func (*DeleteWalletAddressInternalServerError) IsClientError ¶
func (o *DeleteWalletAddressInternalServerError) IsClientError() bool
IsClientError returns true when this delete wallet address internal server error response has a 4xx status code
func (*DeleteWalletAddressInternalServerError) IsCode ¶
func (o *DeleteWalletAddressInternalServerError) IsCode(code int) bool
IsCode returns true when this delete wallet address internal server error response a status code equal to that given
func (*DeleteWalletAddressInternalServerError) IsRedirect ¶
func (o *DeleteWalletAddressInternalServerError) IsRedirect() bool
IsRedirect returns true when this delete wallet address internal server error response has a 3xx status code
func (*DeleteWalletAddressInternalServerError) IsServerError ¶
func (o *DeleteWalletAddressInternalServerError) IsServerError() bool
IsServerError returns true when this delete wallet address internal server error response has a 5xx status code
func (*DeleteWalletAddressInternalServerError) IsSuccess ¶
func (o *DeleteWalletAddressInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete wallet address internal server error response has a 2xx status code
func (*DeleteWalletAddressInternalServerError) String ¶
func (o *DeleteWalletAddressInternalServerError) String() string
type DeleteWalletAddressNoContent ¶
type DeleteWalletAddressNoContent struct {
}
DeleteWalletAddressNoContent describes a response with status code 204, with default header values.
No Content
func NewDeleteWalletAddressNoContent ¶
func NewDeleteWalletAddressNoContent() *DeleteWalletAddressNoContent
NewDeleteWalletAddressNoContent creates a DeleteWalletAddressNoContent with default headers values
func (*DeleteWalletAddressNoContent) Code ¶
func (o *DeleteWalletAddressNoContent) Code() int
Code gets the status code for the delete wallet address no content response
func (*DeleteWalletAddressNoContent) Error ¶
func (o *DeleteWalletAddressNoContent) Error() string
func (*DeleteWalletAddressNoContent) IsClientError ¶
func (o *DeleteWalletAddressNoContent) IsClientError() bool
IsClientError returns true when this delete wallet address no content response has a 4xx status code
func (*DeleteWalletAddressNoContent) IsCode ¶
func (o *DeleteWalletAddressNoContent) IsCode(code int) bool
IsCode returns true when this delete wallet address no content response a status code equal to that given
func (*DeleteWalletAddressNoContent) IsRedirect ¶
func (o *DeleteWalletAddressNoContent) IsRedirect() bool
IsRedirect returns true when this delete wallet address no content response has a 3xx status code
func (*DeleteWalletAddressNoContent) IsServerError ¶
func (o *DeleteWalletAddressNoContent) IsServerError() bool
IsServerError returns true when this delete wallet address no content response has a 5xx status code
func (*DeleteWalletAddressNoContent) IsSuccess ¶
func (o *DeleteWalletAddressNoContent) IsSuccess() bool
IsSuccess returns true when this delete wallet address no content response has a 2xx status code
func (*DeleteWalletAddressNoContent) String ¶
func (o *DeleteWalletAddressNoContent) String() string
type DeleteWalletAddressParams ¶
type DeleteWalletAddressParams struct {
/* Address.
Address
*/
Address string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DeleteWalletAddressParams contains all the parameters to send to the API endpoint
for the delete wallet address operation. Typically these are written to a http.Request.
func NewDeleteWalletAddressParams ¶
func NewDeleteWalletAddressParams() *DeleteWalletAddressParams
NewDeleteWalletAddressParams creates a new DeleteWalletAddressParams 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 NewDeleteWalletAddressParamsWithContext ¶
func NewDeleteWalletAddressParamsWithContext(ctx context.Context) *DeleteWalletAddressParams
NewDeleteWalletAddressParamsWithContext creates a new DeleteWalletAddressParams object with the ability to set a context for a request.
func NewDeleteWalletAddressParamsWithHTTPClient ¶
func NewDeleteWalletAddressParamsWithHTTPClient(client *http.Client) *DeleteWalletAddressParams
NewDeleteWalletAddressParamsWithHTTPClient creates a new DeleteWalletAddressParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteWalletAddressParamsWithTimeout ¶
func NewDeleteWalletAddressParamsWithTimeout(timeout time.Duration) *DeleteWalletAddressParams
NewDeleteWalletAddressParamsWithTimeout creates a new DeleteWalletAddressParams object with the ability to set a timeout on a request.
func (*DeleteWalletAddressParams) SetAddress ¶
func (o *DeleteWalletAddressParams) SetAddress(address string)
SetAddress adds the address to the delete wallet address params
func (*DeleteWalletAddressParams) SetContext ¶
func (o *DeleteWalletAddressParams) SetContext(ctx context.Context)
SetContext adds the context to the delete wallet address params
func (*DeleteWalletAddressParams) SetDefaults ¶
func (o *DeleteWalletAddressParams) SetDefaults()
SetDefaults hydrates default values in the delete wallet address params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteWalletAddressParams) SetHTTPClient ¶
func (o *DeleteWalletAddressParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete wallet address params
func (*DeleteWalletAddressParams) SetTimeout ¶
func (o *DeleteWalletAddressParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete wallet address params
func (*DeleteWalletAddressParams) WithAddress ¶
func (o *DeleteWalletAddressParams) WithAddress(address string) *DeleteWalletAddressParams
WithAddress adds the address to the delete wallet address params
func (*DeleteWalletAddressParams) WithContext ¶
func (o *DeleteWalletAddressParams) WithContext(ctx context.Context) *DeleteWalletAddressParams
WithContext adds the context to the delete wallet address params
func (*DeleteWalletAddressParams) WithDefaults ¶
func (o *DeleteWalletAddressParams) WithDefaults() *DeleteWalletAddressParams
WithDefaults hydrates default values in the delete wallet address params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteWalletAddressParams) WithHTTPClient ¶
func (o *DeleteWalletAddressParams) WithHTTPClient(client *http.Client) *DeleteWalletAddressParams
WithHTTPClient adds the HTTPClient to the delete wallet address params
func (*DeleteWalletAddressParams) WithTimeout ¶
func (o *DeleteWalletAddressParams) WithTimeout(timeout time.Duration) *DeleteWalletAddressParams
WithTimeout adds the timeout to the delete wallet address params
func (*DeleteWalletAddressParams) WriteToRequest ¶
func (o *DeleteWalletAddressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteWalletAddressReader ¶
type DeleteWalletAddressReader struct {
// contains filtered or unexported fields
}
DeleteWalletAddressReader is a Reader for the DeleteWalletAddress structure.
func (*DeleteWalletAddressReader) ReadResponse ¶
func (o *DeleteWalletAddressReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetWalletBadRequest ¶
type GetWalletBadRequest struct {
Payload *models.APIHTTPError
}
GetWalletBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewGetWalletBadRequest ¶
func NewGetWalletBadRequest() *GetWalletBadRequest
NewGetWalletBadRequest creates a GetWalletBadRequest with default headers values
func (*GetWalletBadRequest) Code ¶
func (o *GetWalletBadRequest) Code() int
Code gets the status code for the get wallet bad request response
func (*GetWalletBadRequest) Error ¶
func (o *GetWalletBadRequest) Error() string
func (*GetWalletBadRequest) GetPayload ¶
func (o *GetWalletBadRequest) GetPayload() *models.APIHTTPError
func (*GetWalletBadRequest) IsClientError ¶
func (o *GetWalletBadRequest) IsClientError() bool
IsClientError returns true when this get wallet bad request response has a 4xx status code
func (*GetWalletBadRequest) IsCode ¶
func (o *GetWalletBadRequest) IsCode(code int) bool
IsCode returns true when this get wallet bad request response a status code equal to that given
func (*GetWalletBadRequest) IsRedirect ¶
func (o *GetWalletBadRequest) IsRedirect() bool
IsRedirect returns true when this get wallet bad request response has a 3xx status code
func (*GetWalletBadRequest) IsServerError ¶
func (o *GetWalletBadRequest) IsServerError() bool
IsServerError returns true when this get wallet bad request response has a 5xx status code
func (*GetWalletBadRequest) IsSuccess ¶
func (o *GetWalletBadRequest) IsSuccess() bool
IsSuccess returns true when this get wallet bad request response has a 2xx status code
func (*GetWalletBadRequest) String ¶
func (o *GetWalletBadRequest) String() string
type GetWalletInternalServerError ¶
type GetWalletInternalServerError struct {
Payload *models.APIHTTPError
}
GetWalletInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewGetWalletInternalServerError ¶
func NewGetWalletInternalServerError() *GetWalletInternalServerError
NewGetWalletInternalServerError creates a GetWalletInternalServerError with default headers values
func (*GetWalletInternalServerError) Code ¶
func (o *GetWalletInternalServerError) Code() int
Code gets the status code for the get wallet internal server error response
func (*GetWalletInternalServerError) Error ¶
func (o *GetWalletInternalServerError) Error() string
func (*GetWalletInternalServerError) GetPayload ¶
func (o *GetWalletInternalServerError) GetPayload() *models.APIHTTPError
func (*GetWalletInternalServerError) IsClientError ¶
func (o *GetWalletInternalServerError) IsClientError() bool
IsClientError returns true when this get wallet internal server error response has a 4xx status code
func (*GetWalletInternalServerError) IsCode ¶
func (o *GetWalletInternalServerError) IsCode(code int) bool
IsCode returns true when this get wallet internal server error response a status code equal to that given
func (*GetWalletInternalServerError) IsRedirect ¶
func (o *GetWalletInternalServerError) IsRedirect() bool
IsRedirect returns true when this get wallet internal server error response has a 3xx status code
func (*GetWalletInternalServerError) IsServerError ¶
func (o *GetWalletInternalServerError) IsServerError() bool
IsServerError returns true when this get wallet internal server error response has a 5xx status code
func (*GetWalletInternalServerError) IsSuccess ¶
func (o *GetWalletInternalServerError) IsSuccess() bool
IsSuccess returns true when this get wallet internal server error response has a 2xx status code
func (*GetWalletInternalServerError) String ¶
func (o *GetWalletInternalServerError) String() string
type GetWalletOK ¶
type GetWalletOK struct {
Payload []*models.ModelWallet
}
GetWalletOK describes a response with status code 200, with default header values.
OK
func NewGetWalletOK ¶
func NewGetWalletOK() *GetWalletOK
NewGetWalletOK creates a GetWalletOK with default headers values
func (*GetWalletOK) Code ¶
func (o *GetWalletOK) Code() int
Code gets the status code for the get wallet o k response
func (*GetWalletOK) Error ¶
func (o *GetWalletOK) Error() string
func (*GetWalletOK) GetPayload ¶
func (o *GetWalletOK) GetPayload() []*models.ModelWallet
func (*GetWalletOK) IsClientError ¶
func (o *GetWalletOK) IsClientError() bool
IsClientError returns true when this get wallet o k response has a 4xx status code
func (*GetWalletOK) IsCode ¶
func (o *GetWalletOK) IsCode(code int) bool
IsCode returns true when this get wallet o k response a status code equal to that given
func (*GetWalletOK) IsRedirect ¶
func (o *GetWalletOK) IsRedirect() bool
IsRedirect returns true when this get wallet o k response has a 3xx status code
func (*GetWalletOK) IsServerError ¶
func (o *GetWalletOK) IsServerError() bool
IsServerError returns true when this get wallet o k response has a 5xx status code
func (*GetWalletOK) IsSuccess ¶
func (o *GetWalletOK) IsSuccess() bool
IsSuccess returns true when this get wallet o k response has a 2xx status code
func (*GetWalletOK) String ¶
func (o *GetWalletOK) String() string
type GetWalletParams ¶
type GetWalletParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetWalletParams contains all the parameters to send to the API endpoint
for the get wallet operation. Typically these are written to a http.Request.
func NewGetWalletParams ¶
func NewGetWalletParams() *GetWalletParams
NewGetWalletParams creates a new GetWalletParams 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 NewGetWalletParamsWithContext ¶
func NewGetWalletParamsWithContext(ctx context.Context) *GetWalletParams
NewGetWalletParamsWithContext creates a new GetWalletParams object with the ability to set a context for a request.
func NewGetWalletParamsWithHTTPClient ¶
func NewGetWalletParamsWithHTTPClient(client *http.Client) *GetWalletParams
NewGetWalletParamsWithHTTPClient creates a new GetWalletParams object with the ability to set a custom HTTPClient for a request.
func NewGetWalletParamsWithTimeout ¶
func NewGetWalletParamsWithTimeout(timeout time.Duration) *GetWalletParams
NewGetWalletParamsWithTimeout creates a new GetWalletParams object with the ability to set a timeout on a request.
func (*GetWalletParams) SetContext ¶
func (o *GetWalletParams) SetContext(ctx context.Context)
SetContext adds the context to the get wallet params
func (*GetWalletParams) SetDefaults ¶
func (o *GetWalletParams) SetDefaults()
SetDefaults hydrates default values in the get wallet params (not the query body).
All values with no default are reset to their zero value.
func (*GetWalletParams) SetHTTPClient ¶
func (o *GetWalletParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get wallet params
func (*GetWalletParams) SetTimeout ¶
func (o *GetWalletParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get wallet params
func (*GetWalletParams) WithContext ¶
func (o *GetWalletParams) WithContext(ctx context.Context) *GetWalletParams
WithContext adds the context to the get wallet params
func (*GetWalletParams) WithDefaults ¶
func (o *GetWalletParams) WithDefaults() *GetWalletParams
WithDefaults hydrates default values in the get wallet params (not the query body).
All values with no default are reset to their zero value.
func (*GetWalletParams) WithHTTPClient ¶
func (o *GetWalletParams) WithHTTPClient(client *http.Client) *GetWalletParams
WithHTTPClient adds the HTTPClient to the get wallet params
func (*GetWalletParams) WithTimeout ¶
func (o *GetWalletParams) WithTimeout(timeout time.Duration) *GetWalletParams
WithTimeout adds the timeout to the get wallet params
func (*GetWalletParams) WriteToRequest ¶
func (o *GetWalletParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetWalletReader ¶
type GetWalletReader struct {
// contains filtered or unexported fields
}
GetWalletReader is a Reader for the GetWallet structure.
func (*GetWalletReader) ReadResponse ¶
func (o *GetWalletReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostWalletBadRequest ¶
type PostWalletBadRequest struct {
Payload *models.APIHTTPError
}
PostWalletBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewPostWalletBadRequest ¶
func NewPostWalletBadRequest() *PostWalletBadRequest
NewPostWalletBadRequest creates a PostWalletBadRequest with default headers values
func (*PostWalletBadRequest) Code ¶
func (o *PostWalletBadRequest) Code() int
Code gets the status code for the post wallet bad request response
func (*PostWalletBadRequest) Error ¶
func (o *PostWalletBadRequest) Error() string
func (*PostWalletBadRequest) GetPayload ¶
func (o *PostWalletBadRequest) GetPayload() *models.APIHTTPError
func (*PostWalletBadRequest) IsClientError ¶
func (o *PostWalletBadRequest) IsClientError() bool
IsClientError returns true when this post wallet bad request response has a 4xx status code
func (*PostWalletBadRequest) IsCode ¶
func (o *PostWalletBadRequest) IsCode(code int) bool
IsCode returns true when this post wallet bad request response a status code equal to that given
func (*PostWalletBadRequest) IsRedirect ¶
func (o *PostWalletBadRequest) IsRedirect() bool
IsRedirect returns true when this post wallet bad request response has a 3xx status code
func (*PostWalletBadRequest) IsServerError ¶
func (o *PostWalletBadRequest) IsServerError() bool
IsServerError returns true when this post wallet bad request response has a 5xx status code
func (*PostWalletBadRequest) IsSuccess ¶
func (o *PostWalletBadRequest) IsSuccess() bool
IsSuccess returns true when this post wallet bad request response has a 2xx status code
func (*PostWalletBadRequest) String ¶
func (o *PostWalletBadRequest) String() string
type PostWalletInternalServerError ¶
type PostWalletInternalServerError struct {
Payload *models.APIHTTPError
}
PostWalletInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewPostWalletInternalServerError ¶
func NewPostWalletInternalServerError() *PostWalletInternalServerError
NewPostWalletInternalServerError creates a PostWalletInternalServerError with default headers values
func (*PostWalletInternalServerError) Code ¶
func (o *PostWalletInternalServerError) Code() int
Code gets the status code for the post wallet internal server error response
func (*PostWalletInternalServerError) Error ¶
func (o *PostWalletInternalServerError) Error() string
func (*PostWalletInternalServerError) GetPayload ¶
func (o *PostWalletInternalServerError) GetPayload() *models.APIHTTPError
func (*PostWalletInternalServerError) IsClientError ¶
func (o *PostWalletInternalServerError) IsClientError() bool
IsClientError returns true when this post wallet internal server error response has a 4xx status code
func (*PostWalletInternalServerError) IsCode ¶
func (o *PostWalletInternalServerError) IsCode(code int) bool
IsCode returns true when this post wallet internal server error response a status code equal to that given
func (*PostWalletInternalServerError) IsRedirect ¶
func (o *PostWalletInternalServerError) IsRedirect() bool
IsRedirect returns true when this post wallet internal server error response has a 3xx status code
func (*PostWalletInternalServerError) IsServerError ¶
func (o *PostWalletInternalServerError) IsServerError() bool
IsServerError returns true when this post wallet internal server error response has a 5xx status code
func (*PostWalletInternalServerError) IsSuccess ¶
func (o *PostWalletInternalServerError) IsSuccess() bool
IsSuccess returns true when this post wallet internal server error response has a 2xx status code
func (*PostWalletInternalServerError) String ¶
func (o *PostWalletInternalServerError) String() string
type PostWalletOK ¶
type PostWalletOK struct {
Payload *models.ModelWallet
}
PostWalletOK describes a response with status code 200, with default header values.
OK
func NewPostWalletOK ¶
func NewPostWalletOK() *PostWalletOK
NewPostWalletOK creates a PostWalletOK with default headers values
func (*PostWalletOK) Code ¶
func (o *PostWalletOK) Code() int
Code gets the status code for the post wallet o k response
func (*PostWalletOK) Error ¶
func (o *PostWalletOK) Error() string
func (*PostWalletOK) GetPayload ¶
func (o *PostWalletOK) GetPayload() *models.ModelWallet
func (*PostWalletOK) IsClientError ¶
func (o *PostWalletOK) IsClientError() bool
IsClientError returns true when this post wallet o k response has a 4xx status code
func (*PostWalletOK) IsCode ¶
func (o *PostWalletOK) IsCode(code int) bool
IsCode returns true when this post wallet o k response a status code equal to that given
func (*PostWalletOK) IsRedirect ¶
func (o *PostWalletOK) IsRedirect() bool
IsRedirect returns true when this post wallet o k response has a 3xx status code
func (*PostWalletOK) IsServerError ¶
func (o *PostWalletOK) IsServerError() bool
IsServerError returns true when this post wallet o k response has a 5xx status code
func (*PostWalletOK) IsSuccess ¶
func (o *PostWalletOK) IsSuccess() bool
IsSuccess returns true when this post wallet o k response has a 2xx status code
func (*PostWalletOK) String ¶
func (o *PostWalletOK) String() string
type PostWalletParams ¶
type PostWalletParams struct {
/* Request.
Request body
*/
Request *models.WalletImportRequest
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
PostWalletParams contains all the parameters to send to the API endpoint
for the post wallet operation. Typically these are written to a http.Request.
func NewPostWalletParams ¶
func NewPostWalletParams() *PostWalletParams
NewPostWalletParams creates a new PostWalletParams 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 NewPostWalletParamsWithContext ¶
func NewPostWalletParamsWithContext(ctx context.Context) *PostWalletParams
NewPostWalletParamsWithContext creates a new PostWalletParams object with the ability to set a context for a request.
func NewPostWalletParamsWithHTTPClient ¶
func NewPostWalletParamsWithHTTPClient(client *http.Client) *PostWalletParams
NewPostWalletParamsWithHTTPClient creates a new PostWalletParams object with the ability to set a custom HTTPClient for a request.
func NewPostWalletParamsWithTimeout ¶
func NewPostWalletParamsWithTimeout(timeout time.Duration) *PostWalletParams
NewPostWalletParamsWithTimeout creates a new PostWalletParams object with the ability to set a timeout on a request.
func (*PostWalletParams) SetContext ¶
func (o *PostWalletParams) SetContext(ctx context.Context)
SetContext adds the context to the post wallet params
func (*PostWalletParams) SetDefaults ¶
func (o *PostWalletParams) SetDefaults()
SetDefaults hydrates default values in the post wallet params (not the query body).
All values with no default are reset to their zero value.
func (*PostWalletParams) SetHTTPClient ¶
func (o *PostWalletParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post wallet params
func (*PostWalletParams) SetRequest ¶
func (o *PostWalletParams) SetRequest(request *models.WalletImportRequest)
SetRequest adds the request to the post wallet params
func (*PostWalletParams) SetTimeout ¶
func (o *PostWalletParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post wallet params
func (*PostWalletParams) WithContext ¶
func (o *PostWalletParams) WithContext(ctx context.Context) *PostWalletParams
WithContext adds the context to the post wallet params
func (*PostWalletParams) WithDefaults ¶
func (o *PostWalletParams) WithDefaults() *PostWalletParams
WithDefaults hydrates default values in the post wallet params (not the query body).
All values with no default are reset to their zero value.
func (*PostWalletParams) WithHTTPClient ¶
func (o *PostWalletParams) WithHTTPClient(client *http.Client) *PostWalletParams
WithHTTPClient adds the HTTPClient to the post wallet params
func (*PostWalletParams) WithRequest ¶
func (o *PostWalletParams) WithRequest(request *models.WalletImportRequest) *PostWalletParams
WithRequest adds the request to the post wallet params
func (*PostWalletParams) WithTimeout ¶
func (o *PostWalletParams) WithTimeout(timeout time.Duration) *PostWalletParams
WithTimeout adds the timeout to the post wallet params
func (*PostWalletParams) WriteToRequest ¶
func (o *PostWalletParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostWalletReader ¶
type PostWalletReader struct {
// contains filtered or unexported fields
}
PostWalletReader is a Reader for the PostWallet structure.
func (*PostWalletReader) ReadResponse ¶
func (o *PostWalletReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.