wallet

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0, MIT Imports: 10 Imported by: 1

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 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

Code gets the status code for the delete wallet address bad request response

func (*DeleteWalletAddressBadRequest) Error

func (*DeleteWalletAddressBadRequest) GetPayload

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

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

Code gets the status code for the delete wallet address internal server error response

func (*DeleteWalletAddressInternalServerError) Error

func (*DeleteWalletAddressInternalServerError) GetPayload

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

IsCode returns true when this delete wallet address internal server error response a status code equal to that given

func (*DeleteWalletAddressInternalServerError) IsRedirect

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

IsSuccess returns true when this delete wallet address internal server error response has a 2xx status code

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

Code gets the status code for the delete wallet address no content response

func (*DeleteWalletAddressNoContent) Error

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

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

WithAddress adds the address to the delete wallet address params

func (*DeleteWalletAddressParams) WithContext

WithContext adds the context to the delete wallet address params

func (*DeleteWalletAddressParams) WithDefaults

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

WithTimeout adds the timeout to the delete wallet address params

func (*DeleteWalletAddressParams) WriteToRequest

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

Code gets the status code for the get wallet internal server error response

func (*GetWalletInternalServerError) Error

func (*GetWalletInternalServerError) GetPayload

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

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

Code gets the status code for the post wallet internal server error response

func (*PostWalletInternalServerError) Error

func (*PostWalletInternalServerError) GetPayload

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL