operations

package
v0.0.0-...-4a9e3d1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: Apache-2.0 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 operations API

func (*Client) GetAssets

func (a *Client) GetAssets(params *GetAssetsParams, opts ...ClientOption) (*GetAssetsOK, error)

GetAssets gets assets by text search

Retrieves assets that match a given text search

func (*Client) GetBlocks

func (a *Client) GetBlocks(params *GetBlocksParams, opts ...ClientOption) (*GetBlocksOK, error)

GetBlocks gets blocks by transaction ID

Retrieves a list of block IDs that contain a transaction with the specified transaction ID

func (*Client) GetBlocksBlockHeight

func (a *Client) GetBlocksBlockHeight(params *GetBlocksBlockHeightParams, opts ...ClientOption) (*GetBlocksBlockHeightOK, error)

GetBlocksBlockHeight gets block by height

Retrieves the block with the specified block height

func (*Client) GetMetadata

func (a *Client) GetMetadata(params *GetMetadataParams, opts ...ClientOption) (*GetMetadataOK, error)

GetMetadata gets metadata objects by text search

Retrieves metadata objects that match a given text search

func (*Client) GetOutputs

func (a *Client) GetOutputs(params *GetOutputsParams, opts ...ClientOption) (*GetOutputsOK, error)

GetOutputs gets transaction outputs

Retrieves transaction outputs by public key

func (*Client) GetTransactions

func (a *Client) GetTransactions(params *GetTransactionsParams, opts ...ClientOption) (*GetTransactionsOK, error)

GetTransactions gets a list of transactions

func (*Client) GetTransactionsTransactionID

func (a *Client) GetTransactionsTransactionID(params *GetTransactionsTransactionIDParams, opts ...ClientOption) (*GetTransactionsTransactionIDOK, error)

GetTransactionsTransactionID gets a transaction by ID

func (*Client) PostTransactions

func (a *Client) PostTransactions(params *PostTransactionsParams, opts ...ClientOption) (*PostTransactionsAccepted, error)

PostTransactions sends a transaction

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 {
	GetAssets(params *GetAssetsParams, opts ...ClientOption) (*GetAssetsOK, error)

	GetBlocks(params *GetBlocksParams, opts ...ClientOption) (*GetBlocksOK, error)

	GetBlocksBlockHeight(params *GetBlocksBlockHeightParams, opts ...ClientOption) (*GetBlocksBlockHeightOK, error)

	GetMetadata(params *GetMetadataParams, opts ...ClientOption) (*GetMetadataOK, error)

	GetOutputs(params *GetOutputsParams, opts ...ClientOption) (*GetOutputsOK, error)

	GetTransactions(params *GetTransactionsParams, opts ...ClientOption) (*GetTransactionsOK, error)

	GetTransactionsTransactionID(params *GetTransactionsTransactionIDParams, opts ...ClientOption) (*GetTransactionsTransactionIDOK, error)

	PostTransactions(params *PostTransactionsParams, opts ...ClientOption) (*PostTransactionsAccepted, 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 operations API client.

type GetAssetsBadRequest

type GetAssetsBadRequest struct {
	Payload *models.Error
}

GetAssetsBadRequest describes a response with status code 400, with default header values.

Bad Request - The query was not executed successfully

func NewGetAssetsBadRequest

func NewGetAssetsBadRequest() *GetAssetsBadRequest

NewGetAssetsBadRequest creates a GetAssetsBadRequest with default headers values

func (*GetAssetsBadRequest) Code

func (o *GetAssetsBadRequest) Code() int

Code gets the status code for the get assets bad request response

func (*GetAssetsBadRequest) Error

func (o *GetAssetsBadRequest) Error() string

func (*GetAssetsBadRequest) GetPayload

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

func (*GetAssetsBadRequest) IsClientError

func (o *GetAssetsBadRequest) IsClientError() bool

IsClientError returns true when this get assets bad request response has a 4xx status code

func (*GetAssetsBadRequest) IsCode

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

IsCode returns true when this get assets bad request response a status code equal to that given

func (*GetAssetsBadRequest) IsRedirect

func (o *GetAssetsBadRequest) IsRedirect() bool

IsRedirect returns true when this get assets bad request response has a 3xx status code

func (*GetAssetsBadRequest) IsServerError

func (o *GetAssetsBadRequest) IsServerError() bool

IsServerError returns true when this get assets bad request response has a 5xx status code

func (*GetAssetsBadRequest) IsSuccess

func (o *GetAssetsBadRequest) IsSuccess() bool

IsSuccess returns true when this get assets bad request response has a 2xx status code

func (*GetAssetsBadRequest) String

func (o *GetAssetsBadRequest) String() string

type GetAssetsOK

type GetAssetsOK struct {
	Payload []*models.Asset
}

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

Successful response with a list of matching assets

func NewGetAssetsOK

func NewGetAssetsOK() *GetAssetsOK

NewGetAssetsOK creates a GetAssetsOK with default headers values

func (*GetAssetsOK) Code

func (o *GetAssetsOK) Code() int

Code gets the status code for the get assets o k response

func (*GetAssetsOK) Error

func (o *GetAssetsOK) Error() string

func (*GetAssetsOK) GetPayload

func (o *GetAssetsOK) GetPayload() []*models.Asset

func (*GetAssetsOK) IsClientError

func (o *GetAssetsOK) IsClientError() bool

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

func (*GetAssetsOK) IsCode

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

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

func (*GetAssetsOK) IsRedirect

func (o *GetAssetsOK) IsRedirect() bool

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

func (*GetAssetsOK) IsServerError

func (o *GetAssetsOK) IsServerError() bool

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

func (*GetAssetsOK) IsSuccess

func (o *GetAssetsOK) IsSuccess() bool

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

func (*GetAssetsOK) String

func (o *GetAssetsOK) String() string

type GetAssetsParams

type GetAssetsParams struct {

	/* Limit.

	   Limit the number of returned assets
	*/
	Limit *int64

	/* Search.

	   Text search string to query
	*/
	Search string

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

GetAssetsParams contains all the parameters to send to the API endpoint

for the get assets operation.

Typically these are written to a http.Request.

func NewGetAssetsParams

func NewGetAssetsParams() *GetAssetsParams

NewGetAssetsParams creates a new GetAssetsParams 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 NewGetAssetsParamsWithContext

func NewGetAssetsParamsWithContext(ctx context.Context) *GetAssetsParams

NewGetAssetsParamsWithContext creates a new GetAssetsParams object with the ability to set a context for a request.

func NewGetAssetsParamsWithHTTPClient

func NewGetAssetsParamsWithHTTPClient(client *http.Client) *GetAssetsParams

NewGetAssetsParamsWithHTTPClient creates a new GetAssetsParams object with the ability to set a custom HTTPClient for a request.

func NewGetAssetsParamsWithTimeout

func NewGetAssetsParamsWithTimeout(timeout time.Duration) *GetAssetsParams

NewGetAssetsParamsWithTimeout creates a new GetAssetsParams object with the ability to set a timeout on a request.

func (*GetAssetsParams) SetContext

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

SetContext adds the context to the get assets params

func (*GetAssetsParams) SetDefaults

func (o *GetAssetsParams) SetDefaults()

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

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

func (*GetAssetsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get assets params

func (*GetAssetsParams) SetLimit

func (o *GetAssetsParams) SetLimit(limit *int64)

SetLimit adds the limit to the get assets params

func (*GetAssetsParams) SetSearch

func (o *GetAssetsParams) SetSearch(search string)

SetSearch adds the search to the get assets params

func (*GetAssetsParams) SetTimeout

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

SetTimeout adds the timeout to the get assets params

func (*GetAssetsParams) WithContext

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

WithContext adds the context to the get assets params

func (*GetAssetsParams) WithDefaults

func (o *GetAssetsParams) WithDefaults() *GetAssetsParams

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

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

func (*GetAssetsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get assets params

func (*GetAssetsParams) WithLimit

func (o *GetAssetsParams) WithLimit(limit *int64) *GetAssetsParams

WithLimit adds the limit to the get assets params

func (*GetAssetsParams) WithSearch

func (o *GetAssetsParams) WithSearch(search string) *GetAssetsParams

WithSearch adds the search to the get assets params

func (*GetAssetsParams) WithTimeout

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

WithTimeout adds the timeout to the get assets params

func (*GetAssetsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAssetsReader

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

GetAssetsReader is a Reader for the GetAssets structure.

func (*GetAssetsReader) ReadResponse

func (o *GetAssetsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetBlocksBadRequest

type GetBlocksBadRequest struct {
	Payload *models.Error
}

GetBlocksBadRequest describes a response with status code 400, with default header values.

Bad Request - The request wasn’t understood by the server

func NewGetBlocksBadRequest

func NewGetBlocksBadRequest() *GetBlocksBadRequest

NewGetBlocksBadRequest creates a GetBlocksBadRequest with default headers values

func (*GetBlocksBadRequest) Code

func (o *GetBlocksBadRequest) Code() int

Code gets the status code for the get blocks bad request response

func (*GetBlocksBadRequest) Error

func (o *GetBlocksBadRequest) Error() string

func (*GetBlocksBadRequest) GetPayload

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

func (*GetBlocksBadRequest) IsClientError

func (o *GetBlocksBadRequest) IsClientError() bool

IsClientError returns true when this get blocks bad request response has a 4xx status code

func (*GetBlocksBadRequest) IsCode

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

IsCode returns true when this get blocks bad request response a status code equal to that given

func (*GetBlocksBadRequest) IsRedirect

func (o *GetBlocksBadRequest) IsRedirect() bool

IsRedirect returns true when this get blocks bad request response has a 3xx status code

func (*GetBlocksBadRequest) IsServerError

func (o *GetBlocksBadRequest) IsServerError() bool

IsServerError returns true when this get blocks bad request response has a 5xx status code

func (*GetBlocksBadRequest) IsSuccess

func (o *GetBlocksBadRequest) IsSuccess() bool

IsSuccess returns true when this get blocks bad request response has a 2xx status code

func (*GetBlocksBadRequest) String

func (o *GetBlocksBadRequest) String() string

type GetBlocksBlockHeightBadRequest

type GetBlocksBlockHeightBadRequest struct {
	Payload *models.Error
}

GetBlocksBlockHeightBadRequest describes a response with status code 400, with default header values.

Bad Request - The request wasn’t understood by the server

func NewGetBlocksBlockHeightBadRequest

func NewGetBlocksBlockHeightBadRequest() *GetBlocksBlockHeightBadRequest

NewGetBlocksBlockHeightBadRequest creates a GetBlocksBlockHeightBadRequest with default headers values

func (*GetBlocksBlockHeightBadRequest) Code

Code gets the status code for the get blocks block height bad request response

func (*GetBlocksBlockHeightBadRequest) Error

func (*GetBlocksBlockHeightBadRequest) GetPayload

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

func (*GetBlocksBlockHeightBadRequest) IsClientError

func (o *GetBlocksBlockHeightBadRequest) IsClientError() bool

IsClientError returns true when this get blocks block height bad request response has a 4xx status code

func (*GetBlocksBlockHeightBadRequest) IsCode

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

IsCode returns true when this get blocks block height bad request response a status code equal to that given

func (*GetBlocksBlockHeightBadRequest) IsRedirect

func (o *GetBlocksBlockHeightBadRequest) IsRedirect() bool

IsRedirect returns true when this get blocks block height bad request response has a 3xx status code

func (*GetBlocksBlockHeightBadRequest) IsServerError

func (o *GetBlocksBlockHeightBadRequest) IsServerError() bool

IsServerError returns true when this get blocks block height bad request response has a 5xx status code

func (*GetBlocksBlockHeightBadRequest) IsSuccess

func (o *GetBlocksBlockHeightBadRequest) IsSuccess() bool

IsSuccess returns true when this get blocks block height bad request response has a 2xx status code

func (*GetBlocksBlockHeightBadRequest) String

type GetBlocksBlockHeightNotFound

type GetBlocksBlockHeightNotFound struct {
	Payload *models.Error
}

GetBlocksBlockHeightNotFound describes a response with status code 404, with default header values.

Not Found - A block with that block height was not found

func NewGetBlocksBlockHeightNotFound

func NewGetBlocksBlockHeightNotFound() *GetBlocksBlockHeightNotFound

NewGetBlocksBlockHeightNotFound creates a GetBlocksBlockHeightNotFound with default headers values

func (*GetBlocksBlockHeightNotFound) Code

Code gets the status code for the get blocks block height not found response

func (*GetBlocksBlockHeightNotFound) Error

func (*GetBlocksBlockHeightNotFound) GetPayload

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

func (*GetBlocksBlockHeightNotFound) IsClientError

func (o *GetBlocksBlockHeightNotFound) IsClientError() bool

IsClientError returns true when this get blocks block height not found response has a 4xx status code

func (*GetBlocksBlockHeightNotFound) IsCode

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

IsCode returns true when this get blocks block height not found response a status code equal to that given

func (*GetBlocksBlockHeightNotFound) IsRedirect

func (o *GetBlocksBlockHeightNotFound) IsRedirect() bool

IsRedirect returns true when this get blocks block height not found response has a 3xx status code

func (*GetBlocksBlockHeightNotFound) IsServerError

func (o *GetBlocksBlockHeightNotFound) IsServerError() bool

IsServerError returns true when this get blocks block height not found response has a 5xx status code

func (*GetBlocksBlockHeightNotFound) IsSuccess

func (o *GetBlocksBlockHeightNotFound) IsSuccess() bool

IsSuccess returns true when this get blocks block height not found response has a 2xx status code

func (*GetBlocksBlockHeightNotFound) String

type GetBlocksBlockHeightOK

type GetBlocksBlockHeightOK struct {
	Payload *models.Block
}

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

Successful response with the block details

func NewGetBlocksBlockHeightOK

func NewGetBlocksBlockHeightOK() *GetBlocksBlockHeightOK

NewGetBlocksBlockHeightOK creates a GetBlocksBlockHeightOK with default headers values

func (*GetBlocksBlockHeightOK) Code

func (o *GetBlocksBlockHeightOK) Code() int

Code gets the status code for the get blocks block height o k response

func (*GetBlocksBlockHeightOK) Error

func (o *GetBlocksBlockHeightOK) Error() string

func (*GetBlocksBlockHeightOK) GetPayload

func (o *GetBlocksBlockHeightOK) GetPayload() *models.Block

func (*GetBlocksBlockHeightOK) IsClientError

func (o *GetBlocksBlockHeightOK) IsClientError() bool

IsClientError returns true when this get blocks block height o k response has a 4xx status code

func (*GetBlocksBlockHeightOK) IsCode

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

IsCode returns true when this get blocks block height o k response a status code equal to that given

func (*GetBlocksBlockHeightOK) IsRedirect

func (o *GetBlocksBlockHeightOK) IsRedirect() bool

IsRedirect returns true when this get blocks block height o k response has a 3xx status code

func (*GetBlocksBlockHeightOK) IsServerError

func (o *GetBlocksBlockHeightOK) IsServerError() bool

IsServerError returns true when this get blocks block height o k response has a 5xx status code

func (*GetBlocksBlockHeightOK) IsSuccess

func (o *GetBlocksBlockHeightOK) IsSuccess() bool

IsSuccess returns true when this get blocks block height o k response has a 2xx status code

func (*GetBlocksBlockHeightOK) String

func (o *GetBlocksBlockHeightOK) String() string

type GetBlocksBlockHeightParams

type GetBlocksBlockHeightParams struct {

	/* BlockHeight.

	   Block height
	*/
	BlockHeight int64

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

GetBlocksBlockHeightParams contains all the parameters to send to the API endpoint

for the get blocks block height operation.

Typically these are written to a http.Request.

func NewGetBlocksBlockHeightParams

func NewGetBlocksBlockHeightParams() *GetBlocksBlockHeightParams

NewGetBlocksBlockHeightParams creates a new GetBlocksBlockHeightParams 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 NewGetBlocksBlockHeightParamsWithContext

func NewGetBlocksBlockHeightParamsWithContext(ctx context.Context) *GetBlocksBlockHeightParams

NewGetBlocksBlockHeightParamsWithContext creates a new GetBlocksBlockHeightParams object with the ability to set a context for a request.

func NewGetBlocksBlockHeightParamsWithHTTPClient

func NewGetBlocksBlockHeightParamsWithHTTPClient(client *http.Client) *GetBlocksBlockHeightParams

NewGetBlocksBlockHeightParamsWithHTTPClient creates a new GetBlocksBlockHeightParams object with the ability to set a custom HTTPClient for a request.

func NewGetBlocksBlockHeightParamsWithTimeout

func NewGetBlocksBlockHeightParamsWithTimeout(timeout time.Duration) *GetBlocksBlockHeightParams

NewGetBlocksBlockHeightParamsWithTimeout creates a new GetBlocksBlockHeightParams object with the ability to set a timeout on a request.

func (*GetBlocksBlockHeightParams) SetBlockHeight

func (o *GetBlocksBlockHeightParams) SetBlockHeight(blockHeight int64)

SetBlockHeight adds the blockHeight to the get blocks block height params

func (*GetBlocksBlockHeightParams) SetContext

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

SetContext adds the context to the get blocks block height params

func (*GetBlocksBlockHeightParams) SetDefaults

func (o *GetBlocksBlockHeightParams) SetDefaults()

SetDefaults hydrates default values in the get blocks block height params (not the query body).

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

func (*GetBlocksBlockHeightParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get blocks block height params

func (*GetBlocksBlockHeightParams) SetTimeout

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

SetTimeout adds the timeout to the get blocks block height params

func (*GetBlocksBlockHeightParams) WithBlockHeight

func (o *GetBlocksBlockHeightParams) WithBlockHeight(blockHeight int64) *GetBlocksBlockHeightParams

WithBlockHeight adds the blockHeight to the get blocks block height params

func (*GetBlocksBlockHeightParams) WithContext

WithContext adds the context to the get blocks block height params

func (*GetBlocksBlockHeightParams) WithDefaults

WithDefaults hydrates default values in the get blocks block height params (not the query body).

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

func (*GetBlocksBlockHeightParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get blocks block height params

func (*GetBlocksBlockHeightParams) WithTimeout

WithTimeout adds the timeout to the get blocks block height params

func (*GetBlocksBlockHeightParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetBlocksBlockHeightReader

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

GetBlocksBlockHeightReader is a Reader for the GetBlocksBlockHeight structure.

func (*GetBlocksBlockHeightReader) ReadResponse

func (o *GetBlocksBlockHeightReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetBlocksOK

type GetBlocksOK struct {
	Payload []int64
}

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

Successful response with a list of block IDs

func NewGetBlocksOK

func NewGetBlocksOK() *GetBlocksOK

NewGetBlocksOK creates a GetBlocksOK with default headers values

func (*GetBlocksOK) Code

func (o *GetBlocksOK) Code() int

Code gets the status code for the get blocks o k response

func (*GetBlocksOK) Error

func (o *GetBlocksOK) Error() string

func (*GetBlocksOK) GetPayload

func (o *GetBlocksOK) GetPayload() []int64

func (*GetBlocksOK) IsClientError

func (o *GetBlocksOK) IsClientError() bool

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

func (*GetBlocksOK) IsCode

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

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

func (*GetBlocksOK) IsRedirect

func (o *GetBlocksOK) IsRedirect() bool

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

func (*GetBlocksOK) IsServerError

func (o *GetBlocksOK) IsServerError() bool

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

func (*GetBlocksOK) IsSuccess

func (o *GetBlocksOK) IsSuccess() bool

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

func (*GetBlocksOK) String

func (o *GetBlocksOK) String() string

type GetBlocksParams

type GetBlocksParams struct {

	/* TransactionID.

	   Transaction ID
	*/
	TransactionID string

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

GetBlocksParams contains all the parameters to send to the API endpoint

for the get blocks operation.

Typically these are written to a http.Request.

func NewGetBlocksParams

func NewGetBlocksParams() *GetBlocksParams

NewGetBlocksParams creates a new GetBlocksParams 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 NewGetBlocksParamsWithContext

func NewGetBlocksParamsWithContext(ctx context.Context) *GetBlocksParams

NewGetBlocksParamsWithContext creates a new GetBlocksParams object with the ability to set a context for a request.

func NewGetBlocksParamsWithHTTPClient

func NewGetBlocksParamsWithHTTPClient(client *http.Client) *GetBlocksParams

NewGetBlocksParamsWithHTTPClient creates a new GetBlocksParams object with the ability to set a custom HTTPClient for a request.

func NewGetBlocksParamsWithTimeout

func NewGetBlocksParamsWithTimeout(timeout time.Duration) *GetBlocksParams

NewGetBlocksParamsWithTimeout creates a new GetBlocksParams object with the ability to set a timeout on a request.

func (*GetBlocksParams) SetContext

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

SetContext adds the context to the get blocks params

func (*GetBlocksParams) SetDefaults

func (o *GetBlocksParams) SetDefaults()

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

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

func (*GetBlocksParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get blocks params

func (*GetBlocksParams) SetTimeout

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

SetTimeout adds the timeout to the get blocks params

func (*GetBlocksParams) SetTransactionID

func (o *GetBlocksParams) SetTransactionID(transactionID string)

SetTransactionID adds the transactionId to the get blocks params

func (*GetBlocksParams) WithContext

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

WithContext adds the context to the get blocks params

func (*GetBlocksParams) WithDefaults

func (o *GetBlocksParams) WithDefaults() *GetBlocksParams

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

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

func (*GetBlocksParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get blocks params

func (*GetBlocksParams) WithTimeout

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

WithTimeout adds the timeout to the get blocks params

func (*GetBlocksParams) WithTransactionID

func (o *GetBlocksParams) WithTransactionID(transactionID string) *GetBlocksParams

WithTransactionID adds the transactionID to the get blocks params

func (*GetBlocksParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetBlocksReader

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

GetBlocksReader is a Reader for the GetBlocks structure.

func (*GetBlocksReader) ReadResponse

func (o *GetBlocksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetMetadataBadRequest

type GetMetadataBadRequest struct {
	Payload *models.Error
}

GetMetadataBadRequest describes a response with status code 400, with default header values.

Bad Request - The query was not executed successfully

func NewGetMetadataBadRequest

func NewGetMetadataBadRequest() *GetMetadataBadRequest

NewGetMetadataBadRequest creates a GetMetadataBadRequest with default headers values

func (*GetMetadataBadRequest) Code

func (o *GetMetadataBadRequest) Code() int

Code gets the status code for the get metadata bad request response

func (*GetMetadataBadRequest) Error

func (o *GetMetadataBadRequest) Error() string

func (*GetMetadataBadRequest) GetPayload

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

func (*GetMetadataBadRequest) IsClientError

func (o *GetMetadataBadRequest) IsClientError() bool

IsClientError returns true when this get metadata bad request response has a 4xx status code

func (*GetMetadataBadRequest) IsCode

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

IsCode returns true when this get metadata bad request response a status code equal to that given

func (*GetMetadataBadRequest) IsRedirect

func (o *GetMetadataBadRequest) IsRedirect() bool

IsRedirect returns true when this get metadata bad request response has a 3xx status code

func (*GetMetadataBadRequest) IsServerError

func (o *GetMetadataBadRequest) IsServerError() bool

IsServerError returns true when this get metadata bad request response has a 5xx status code

func (*GetMetadataBadRequest) IsSuccess

func (o *GetMetadataBadRequest) IsSuccess() bool

IsSuccess returns true when this get metadata bad request response has a 2xx status code

func (*GetMetadataBadRequest) String

func (o *GetMetadataBadRequest) String() string

type GetMetadataOK

type GetMetadataOK struct {
	Payload []models.Metadata
}

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

Successful response with a list of matching metadata objects

func NewGetMetadataOK

func NewGetMetadataOK() *GetMetadataOK

NewGetMetadataOK creates a GetMetadataOK with default headers values

func (*GetMetadataOK) Code

func (o *GetMetadataOK) Code() int

Code gets the status code for the get metadata o k response

func (*GetMetadataOK) Error

func (o *GetMetadataOK) Error() string

func (*GetMetadataOK) GetPayload

func (o *GetMetadataOK) GetPayload() []models.Metadata

func (*GetMetadataOK) IsClientError

func (o *GetMetadataOK) IsClientError() bool

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

func (*GetMetadataOK) IsCode

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

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

func (*GetMetadataOK) IsRedirect

func (o *GetMetadataOK) IsRedirect() bool

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

func (*GetMetadataOK) IsServerError

func (o *GetMetadataOK) IsServerError() bool

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

func (*GetMetadataOK) IsSuccess

func (o *GetMetadataOK) IsSuccess() bool

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

func (*GetMetadataOK) String

func (o *GetMetadataOK) String() string

type GetMetadataParams

type GetMetadataParams struct {

	/* Limit.

	   Limit the number of returned metadata objects
	*/
	Limit *int64

	/* Search.

	   Text search string to query
	*/
	Search string

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

GetMetadataParams contains all the parameters to send to the API endpoint

for the get metadata operation.

Typically these are written to a http.Request.

func NewGetMetadataParams

func NewGetMetadataParams() *GetMetadataParams

NewGetMetadataParams creates a new GetMetadataParams 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 NewGetMetadataParamsWithContext

func NewGetMetadataParamsWithContext(ctx context.Context) *GetMetadataParams

NewGetMetadataParamsWithContext creates a new GetMetadataParams object with the ability to set a context for a request.

func NewGetMetadataParamsWithHTTPClient

func NewGetMetadataParamsWithHTTPClient(client *http.Client) *GetMetadataParams

NewGetMetadataParamsWithHTTPClient creates a new GetMetadataParams object with the ability to set a custom HTTPClient for a request.

func NewGetMetadataParamsWithTimeout

func NewGetMetadataParamsWithTimeout(timeout time.Duration) *GetMetadataParams

NewGetMetadataParamsWithTimeout creates a new GetMetadataParams object with the ability to set a timeout on a request.

func (*GetMetadataParams) SetContext

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

SetContext adds the context to the get metadata params

func (*GetMetadataParams) SetDefaults

func (o *GetMetadataParams) SetDefaults()

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

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

func (*GetMetadataParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get metadata params

func (*GetMetadataParams) SetLimit

func (o *GetMetadataParams) SetLimit(limit *int64)

SetLimit adds the limit to the get metadata params

func (*GetMetadataParams) SetSearch

func (o *GetMetadataParams) SetSearch(search string)

SetSearch adds the search to the get metadata params

func (*GetMetadataParams) SetTimeout

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

SetTimeout adds the timeout to the get metadata params

func (*GetMetadataParams) WithContext

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

WithContext adds the context to the get metadata params

func (*GetMetadataParams) WithDefaults

func (o *GetMetadataParams) WithDefaults() *GetMetadataParams

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

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

func (*GetMetadataParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get metadata params

func (*GetMetadataParams) WithLimit

func (o *GetMetadataParams) WithLimit(limit *int64) *GetMetadataParams

WithLimit adds the limit to the get metadata params

func (*GetMetadataParams) WithSearch

func (o *GetMetadataParams) WithSearch(search string) *GetMetadataParams

WithSearch adds the search to the get metadata params

func (*GetMetadataParams) WithTimeout

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

WithTimeout adds the timeout to the get metadata params

func (*GetMetadataParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetMetadataReader

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

GetMetadataReader is a Reader for the GetMetadata structure.

func (*GetMetadataReader) ReadResponse

func (o *GetMetadataReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetOutputsBadRequest

type GetOutputsBadRequest struct {
	Payload *models.Error
}

GetOutputsBadRequest describes a response with status code 400, with default header values.

Bad Request - The request wasn’t understood by the server

func NewGetOutputsBadRequest

func NewGetOutputsBadRequest() *GetOutputsBadRequest

NewGetOutputsBadRequest creates a GetOutputsBadRequest with default headers values

func (*GetOutputsBadRequest) Code

func (o *GetOutputsBadRequest) Code() int

Code gets the status code for the get outputs bad request response

func (*GetOutputsBadRequest) Error

func (o *GetOutputsBadRequest) Error() string

func (*GetOutputsBadRequest) GetPayload

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

func (*GetOutputsBadRequest) IsClientError

func (o *GetOutputsBadRequest) IsClientError() bool

IsClientError returns true when this get outputs bad request response has a 4xx status code

func (*GetOutputsBadRequest) IsCode

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

IsCode returns true when this get outputs bad request response a status code equal to that given

func (*GetOutputsBadRequest) IsRedirect

func (o *GetOutputsBadRequest) IsRedirect() bool

IsRedirect returns true when this get outputs bad request response has a 3xx status code

func (*GetOutputsBadRequest) IsServerError

func (o *GetOutputsBadRequest) IsServerError() bool

IsServerError returns true when this get outputs bad request response has a 5xx status code

func (*GetOutputsBadRequest) IsSuccess

func (o *GetOutputsBadRequest) IsSuccess() bool

IsSuccess returns true when this get outputs bad request response has a 2xx status code

func (*GetOutputsBadRequest) String

func (o *GetOutputsBadRequest) String() string

type GetOutputsOK

type GetOutputsOK struct {
	Payload []*models.Fulfills
}

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

Successful response with a list of transaction outputs

func NewGetOutputsOK

func NewGetOutputsOK() *GetOutputsOK

NewGetOutputsOK creates a GetOutputsOK with default headers values

func (*GetOutputsOK) Code

func (o *GetOutputsOK) Code() int

Code gets the status code for the get outputs o k response

func (*GetOutputsOK) Error

func (o *GetOutputsOK) Error() string

func (*GetOutputsOK) GetPayload

func (o *GetOutputsOK) GetPayload() []*models.Fulfills

func (*GetOutputsOK) IsClientError

func (o *GetOutputsOK) IsClientError() bool

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

func (*GetOutputsOK) IsCode

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

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

func (*GetOutputsOK) IsRedirect

func (o *GetOutputsOK) IsRedirect() bool

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

func (*GetOutputsOK) IsServerError

func (o *GetOutputsOK) IsServerError() bool

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

func (*GetOutputsOK) IsSuccess

func (o *GetOutputsOK) IsSuccess() bool

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

func (*GetOutputsOK) String

func (o *GetOutputsOK) String() string

type GetOutputsParams

type GetOutputsParams struct {

	/* PublicKey.

	   Base58 encoded public key associated with output ownership
	*/
	PublicKey string

	/* Spent.

	   Boolean value indicating if the result set should include only spent or only unspent outputs
	*/
	Spent *bool

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

GetOutputsParams contains all the parameters to send to the API endpoint

for the get outputs operation.

Typically these are written to a http.Request.

func NewGetOutputsParams

func NewGetOutputsParams() *GetOutputsParams

NewGetOutputsParams creates a new GetOutputsParams 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 NewGetOutputsParamsWithContext

func NewGetOutputsParamsWithContext(ctx context.Context) *GetOutputsParams

NewGetOutputsParamsWithContext creates a new GetOutputsParams object with the ability to set a context for a request.

func NewGetOutputsParamsWithHTTPClient

func NewGetOutputsParamsWithHTTPClient(client *http.Client) *GetOutputsParams

NewGetOutputsParamsWithHTTPClient creates a new GetOutputsParams object with the ability to set a custom HTTPClient for a request.

func NewGetOutputsParamsWithTimeout

func NewGetOutputsParamsWithTimeout(timeout time.Duration) *GetOutputsParams

NewGetOutputsParamsWithTimeout creates a new GetOutputsParams object with the ability to set a timeout on a request.

func (*GetOutputsParams) SetContext

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

SetContext adds the context to the get outputs params

func (*GetOutputsParams) SetDefaults

func (o *GetOutputsParams) SetDefaults()

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

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

func (*GetOutputsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get outputs params

func (*GetOutputsParams) SetPublicKey

func (o *GetOutputsParams) SetPublicKey(publicKey string)

SetPublicKey adds the publicKey to the get outputs params

func (*GetOutputsParams) SetSpent

func (o *GetOutputsParams) SetSpent(spent *bool)

SetSpent adds the spent to the get outputs params

func (*GetOutputsParams) SetTimeout

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

SetTimeout adds the timeout to the get outputs params

func (*GetOutputsParams) WithContext

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

WithContext adds the context to the get outputs params

func (*GetOutputsParams) WithDefaults

func (o *GetOutputsParams) WithDefaults() *GetOutputsParams

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

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

func (*GetOutputsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get outputs params

func (*GetOutputsParams) WithPublicKey

func (o *GetOutputsParams) WithPublicKey(publicKey string) *GetOutputsParams

WithPublicKey adds the publicKey to the get outputs params

func (*GetOutputsParams) WithSpent

func (o *GetOutputsParams) WithSpent(spent *bool) *GetOutputsParams

WithSpent adds the spent to the get outputs params

func (*GetOutputsParams) WithTimeout

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

WithTimeout adds the timeout to the get outputs params

func (*GetOutputsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetOutputsReader

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

GetOutputsReader is a Reader for the GetOutputs structure.

func (*GetOutputsReader) ReadResponse

func (o *GetOutputsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetTransactionsBadRequest

type GetTransactionsBadRequest struct {
	Payload *models.Error
}

GetTransactionsBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewGetTransactionsBadRequest

func NewGetTransactionsBadRequest() *GetTransactionsBadRequest

NewGetTransactionsBadRequest creates a GetTransactionsBadRequest with default headers values

func (*GetTransactionsBadRequest) Code

func (o *GetTransactionsBadRequest) Code() int

Code gets the status code for the get transactions bad request response

func (*GetTransactionsBadRequest) Error

func (o *GetTransactionsBadRequest) Error() string

func (*GetTransactionsBadRequest) GetPayload

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

func (*GetTransactionsBadRequest) IsClientError

func (o *GetTransactionsBadRequest) IsClientError() bool

IsClientError returns true when this get transactions bad request response has a 4xx status code

func (*GetTransactionsBadRequest) IsCode

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

IsCode returns true when this get transactions bad request response a status code equal to that given

func (*GetTransactionsBadRequest) IsRedirect

func (o *GetTransactionsBadRequest) IsRedirect() bool

IsRedirect returns true when this get transactions bad request response has a 3xx status code

func (*GetTransactionsBadRequest) IsServerError

func (o *GetTransactionsBadRequest) IsServerError() bool

IsServerError returns true when this get transactions bad request response has a 5xx status code

func (*GetTransactionsBadRequest) IsSuccess

func (o *GetTransactionsBadRequest) IsSuccess() bool

IsSuccess returns true when this get transactions bad request response has a 2xx status code

func (*GetTransactionsBadRequest) String

func (o *GetTransactionsBadRequest) String() string

type GetTransactionsOK

type GetTransactionsOK struct {
	Payload []*models.Transaction
}

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

OK

func NewGetTransactionsOK

func NewGetTransactionsOK() *GetTransactionsOK

NewGetTransactionsOK creates a GetTransactionsOK with default headers values

func (*GetTransactionsOK) Code

func (o *GetTransactionsOK) Code() int

Code gets the status code for the get transactions o k response

func (*GetTransactionsOK) Error

func (o *GetTransactionsOK) Error() string

func (*GetTransactionsOK) GetPayload

func (o *GetTransactionsOK) GetPayload() []*models.Transaction

func (*GetTransactionsOK) IsClientError

func (o *GetTransactionsOK) IsClientError() bool

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

func (*GetTransactionsOK) IsCode

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

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

func (*GetTransactionsOK) IsRedirect

func (o *GetTransactionsOK) IsRedirect() bool

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

func (*GetTransactionsOK) IsServerError

func (o *GetTransactionsOK) IsServerError() bool

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

func (*GetTransactionsOK) IsSuccess

func (o *GetTransactionsOK) IsSuccess() bool

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

func (*GetTransactionsOK) String

func (o *GetTransactionsOK) String() string

type GetTransactionsParams

type GetTransactionsParams struct {

	/* AssetID.

	   Asset ID
	*/
	AssetID *string

	/* LastTx.

	   Return only the last transaction
	*/
	LastTx *bool

	/* Operation.

	   Operation type (CREATE or TRANSFER)
	*/
	Operation *string

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

GetTransactionsParams contains all the parameters to send to the API endpoint

for the get transactions operation.

Typically these are written to a http.Request.

func NewGetTransactionsParams

func NewGetTransactionsParams() *GetTransactionsParams

NewGetTransactionsParams creates a new GetTransactionsParams 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 NewGetTransactionsParamsWithContext

func NewGetTransactionsParamsWithContext(ctx context.Context) *GetTransactionsParams

NewGetTransactionsParamsWithContext creates a new GetTransactionsParams object with the ability to set a context for a request.

func NewGetTransactionsParamsWithHTTPClient

func NewGetTransactionsParamsWithHTTPClient(client *http.Client) *GetTransactionsParams

NewGetTransactionsParamsWithHTTPClient creates a new GetTransactionsParams object with the ability to set a custom HTTPClient for a request.

func NewGetTransactionsParamsWithTimeout

func NewGetTransactionsParamsWithTimeout(timeout time.Duration) *GetTransactionsParams

NewGetTransactionsParamsWithTimeout creates a new GetTransactionsParams object with the ability to set a timeout on a request.

func (*GetTransactionsParams) SetAssetID

func (o *GetTransactionsParams) SetAssetID(assetID *string)

SetAssetID adds the assetId to the get transactions params

func (*GetTransactionsParams) SetContext

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

SetContext adds the context to the get transactions params

func (*GetTransactionsParams) SetDefaults

func (o *GetTransactionsParams) SetDefaults()

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

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

func (*GetTransactionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get transactions params

func (*GetTransactionsParams) SetLastTx

func (o *GetTransactionsParams) SetLastTx(lastTx *bool)

SetLastTx adds the lastTx to the get transactions params

func (*GetTransactionsParams) SetOperation

func (o *GetTransactionsParams) SetOperation(operation *string)

SetOperation adds the operation to the get transactions params

func (*GetTransactionsParams) SetTimeout

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

SetTimeout adds the timeout to the get transactions params

func (*GetTransactionsParams) WithAssetID

func (o *GetTransactionsParams) WithAssetID(assetID *string) *GetTransactionsParams

WithAssetID adds the assetID to the get transactions params

func (*GetTransactionsParams) WithContext

WithContext adds the context to the get transactions params

func (*GetTransactionsParams) WithDefaults

func (o *GetTransactionsParams) WithDefaults() *GetTransactionsParams

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

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

func (*GetTransactionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get transactions params

func (*GetTransactionsParams) WithLastTx

func (o *GetTransactionsParams) WithLastTx(lastTx *bool) *GetTransactionsParams

WithLastTx adds the lastTx to the get transactions params

func (*GetTransactionsParams) WithOperation

func (o *GetTransactionsParams) WithOperation(operation *string) *GetTransactionsParams

WithOperation adds the operation to the get transactions params

func (*GetTransactionsParams) WithTimeout

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

WithTimeout adds the timeout to the get transactions params

func (*GetTransactionsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTransactionsReader

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

GetTransactionsReader is a Reader for the GetTransactions structure.

func (*GetTransactionsReader) ReadResponse

func (o *GetTransactionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetTransactionsTransactionIDNotFound

type GetTransactionsTransactionIDNotFound struct {
	Payload *models.Error
}

GetTransactionsTransactionIDNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetTransactionsTransactionIDNotFound

func NewGetTransactionsTransactionIDNotFound() *GetTransactionsTransactionIDNotFound

NewGetTransactionsTransactionIDNotFound creates a GetTransactionsTransactionIDNotFound with default headers values

func (*GetTransactionsTransactionIDNotFound) Code

Code gets the status code for the get transactions transaction Id not found response

func (*GetTransactionsTransactionIDNotFound) Error

func (*GetTransactionsTransactionIDNotFound) GetPayload

func (*GetTransactionsTransactionIDNotFound) IsClientError

func (o *GetTransactionsTransactionIDNotFound) IsClientError() bool

IsClientError returns true when this get transactions transaction Id not found response has a 4xx status code

func (*GetTransactionsTransactionIDNotFound) IsCode

IsCode returns true when this get transactions transaction Id not found response a status code equal to that given

func (*GetTransactionsTransactionIDNotFound) IsRedirect

IsRedirect returns true when this get transactions transaction Id not found response has a 3xx status code

func (*GetTransactionsTransactionIDNotFound) IsServerError

func (o *GetTransactionsTransactionIDNotFound) IsServerError() bool

IsServerError returns true when this get transactions transaction Id not found response has a 5xx status code

func (*GetTransactionsTransactionIDNotFound) IsSuccess

IsSuccess returns true when this get transactions transaction Id not found response has a 2xx status code

func (*GetTransactionsTransactionIDNotFound) String

type GetTransactionsTransactionIDOK

type GetTransactionsTransactionIDOK struct {
	Payload *models.Transaction
}

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

OK

func NewGetTransactionsTransactionIDOK

func NewGetTransactionsTransactionIDOK() *GetTransactionsTransactionIDOK

NewGetTransactionsTransactionIDOK creates a GetTransactionsTransactionIDOK with default headers values

func (*GetTransactionsTransactionIDOK) Code

Code gets the status code for the get transactions transaction Id o k response

func (*GetTransactionsTransactionIDOK) Error

func (*GetTransactionsTransactionIDOK) GetPayload

func (*GetTransactionsTransactionIDOK) IsClientError

func (o *GetTransactionsTransactionIDOK) IsClientError() bool

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

func (*GetTransactionsTransactionIDOK) IsCode

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

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

func (*GetTransactionsTransactionIDOK) IsRedirect

func (o *GetTransactionsTransactionIDOK) IsRedirect() bool

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

func (*GetTransactionsTransactionIDOK) IsServerError

func (o *GetTransactionsTransactionIDOK) IsServerError() bool

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

func (*GetTransactionsTransactionIDOK) IsSuccess

func (o *GetTransactionsTransactionIDOK) IsSuccess() bool

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

func (*GetTransactionsTransactionIDOK) String

type GetTransactionsTransactionIDParams

type GetTransactionsTransactionIDParams struct {

	/* TransactionID.

	   Transaction ID
	*/
	TransactionID string

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

GetTransactionsTransactionIDParams contains all the parameters to send to the API endpoint

for the get transactions transaction ID operation.

Typically these are written to a http.Request.

func NewGetTransactionsTransactionIDParams

func NewGetTransactionsTransactionIDParams() *GetTransactionsTransactionIDParams

NewGetTransactionsTransactionIDParams creates a new GetTransactionsTransactionIDParams 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 NewGetTransactionsTransactionIDParamsWithContext

func NewGetTransactionsTransactionIDParamsWithContext(ctx context.Context) *GetTransactionsTransactionIDParams

NewGetTransactionsTransactionIDParamsWithContext creates a new GetTransactionsTransactionIDParams object with the ability to set a context for a request.

func NewGetTransactionsTransactionIDParamsWithHTTPClient

func NewGetTransactionsTransactionIDParamsWithHTTPClient(client *http.Client) *GetTransactionsTransactionIDParams

NewGetTransactionsTransactionIDParamsWithHTTPClient creates a new GetTransactionsTransactionIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetTransactionsTransactionIDParamsWithTimeout

func NewGetTransactionsTransactionIDParamsWithTimeout(timeout time.Duration) *GetTransactionsTransactionIDParams

NewGetTransactionsTransactionIDParamsWithTimeout creates a new GetTransactionsTransactionIDParams object with the ability to set a timeout on a request.

func (*GetTransactionsTransactionIDParams) SetContext

SetContext adds the context to the get transactions transaction ID params

func (*GetTransactionsTransactionIDParams) SetDefaults

func (o *GetTransactionsTransactionIDParams) SetDefaults()

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

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

func (*GetTransactionsTransactionIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get transactions transaction ID params

func (*GetTransactionsTransactionIDParams) SetTimeout

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

SetTimeout adds the timeout to the get transactions transaction ID params

func (*GetTransactionsTransactionIDParams) SetTransactionID

func (o *GetTransactionsTransactionIDParams) SetTransactionID(transactionID string)

SetTransactionID adds the transactionId to the get transactions transaction ID params

func (*GetTransactionsTransactionIDParams) WithContext

WithContext adds the context to the get transactions transaction ID params

func (*GetTransactionsTransactionIDParams) WithDefaults

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

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

func (*GetTransactionsTransactionIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get transactions transaction ID params

func (*GetTransactionsTransactionIDParams) WithTimeout

WithTimeout adds the timeout to the get transactions transaction ID params

func (*GetTransactionsTransactionIDParams) WithTransactionID

WithTransactionID adds the transactionID to the get transactions transaction ID params

func (*GetTransactionsTransactionIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTransactionsTransactionIDReader

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

GetTransactionsTransactionIDReader is a Reader for the GetTransactionsTransactionID structure.

func (*GetTransactionsTransactionIDReader) ReadResponse

func (o *GetTransactionsTransactionIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostTransactionsAccepted

type PostTransactionsAccepted struct {
	Payload *models.Transaction
}

PostTransactionsAccepted describes a response with status code 202, with default header values.

Accepted

func NewPostTransactionsAccepted

func NewPostTransactionsAccepted() *PostTransactionsAccepted

NewPostTransactionsAccepted creates a PostTransactionsAccepted with default headers values

func (*PostTransactionsAccepted) Code

func (o *PostTransactionsAccepted) Code() int

Code gets the status code for the post transactions accepted response

func (*PostTransactionsAccepted) Error

func (o *PostTransactionsAccepted) Error() string

func (*PostTransactionsAccepted) GetPayload

func (o *PostTransactionsAccepted) GetPayload() *models.Transaction

func (*PostTransactionsAccepted) IsClientError

func (o *PostTransactionsAccepted) IsClientError() bool

IsClientError returns true when this post transactions accepted response has a 4xx status code

func (*PostTransactionsAccepted) IsCode

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

IsCode returns true when this post transactions accepted response a status code equal to that given

func (*PostTransactionsAccepted) IsRedirect

func (o *PostTransactionsAccepted) IsRedirect() bool

IsRedirect returns true when this post transactions accepted response has a 3xx status code

func (*PostTransactionsAccepted) IsServerError

func (o *PostTransactionsAccepted) IsServerError() bool

IsServerError returns true when this post transactions accepted response has a 5xx status code

func (*PostTransactionsAccepted) IsSuccess

func (o *PostTransactionsAccepted) IsSuccess() bool

IsSuccess returns true when this post transactions accepted response has a 2xx status code

func (*PostTransactionsAccepted) String

func (o *PostTransactionsAccepted) String() string

type PostTransactionsBadRequest

type PostTransactionsBadRequest struct {
	Payload *models.Error
}

PostTransactionsBadRequest describes a response with status code 400, with default header values.

Bad request

func NewPostTransactionsBadRequest

func NewPostTransactionsBadRequest() *PostTransactionsBadRequest

NewPostTransactionsBadRequest creates a PostTransactionsBadRequest with default headers values

func (*PostTransactionsBadRequest) Code

func (o *PostTransactionsBadRequest) Code() int

Code gets the status code for the post transactions bad request response

func (*PostTransactionsBadRequest) Error

func (*PostTransactionsBadRequest) GetPayload

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

func (*PostTransactionsBadRequest) IsClientError

func (o *PostTransactionsBadRequest) IsClientError() bool

IsClientError returns true when this post transactions bad request response has a 4xx status code

func (*PostTransactionsBadRequest) IsCode

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

IsCode returns true when this post transactions bad request response a status code equal to that given

func (*PostTransactionsBadRequest) IsRedirect

func (o *PostTransactionsBadRequest) IsRedirect() bool

IsRedirect returns true when this post transactions bad request response has a 3xx status code

func (*PostTransactionsBadRequest) IsServerError

func (o *PostTransactionsBadRequest) IsServerError() bool

IsServerError returns true when this post transactions bad request response has a 5xx status code

func (*PostTransactionsBadRequest) IsSuccess

func (o *PostTransactionsBadRequest) IsSuccess() bool

IsSuccess returns true when this post transactions bad request response has a 2xx status code

func (*PostTransactionsBadRequest) String

func (o *PostTransactionsBadRequest) String() string

type PostTransactionsInternalServerError

type PostTransactionsInternalServerError struct {
	Payload *models.Error
}

PostTransactionsInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPostTransactionsInternalServerError

func NewPostTransactionsInternalServerError() *PostTransactionsInternalServerError

NewPostTransactionsInternalServerError creates a PostTransactionsInternalServerError with default headers values

func (*PostTransactionsInternalServerError) Code

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

func (*PostTransactionsInternalServerError) Error

func (*PostTransactionsInternalServerError) GetPayload

func (*PostTransactionsInternalServerError) IsClientError

func (o *PostTransactionsInternalServerError) IsClientError() bool

IsClientError returns true when this post transactions internal server error response has a 4xx status code

func (*PostTransactionsInternalServerError) IsCode

IsCode returns true when this post transactions internal server error response a status code equal to that given

func (*PostTransactionsInternalServerError) IsRedirect

func (o *PostTransactionsInternalServerError) IsRedirect() bool

IsRedirect returns true when this post transactions internal server error response has a 3xx status code

func (*PostTransactionsInternalServerError) IsServerError

func (o *PostTransactionsInternalServerError) IsServerError() bool

IsServerError returns true when this post transactions internal server error response has a 5xx status code

func (*PostTransactionsInternalServerError) IsSuccess

IsSuccess returns true when this post transactions internal server error response has a 2xx status code

func (*PostTransactionsInternalServerError) String

type PostTransactionsParams

type PostTransactionsParams struct {

	/* Mode.

	   Transaction mode (async, sync, commit)

	   Default: "async"
	*/
	Mode *string

	/* PostBody.

	   Transaction body
	*/
	PostBody *models.Transaction

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

PostTransactionsParams contains all the parameters to send to the API endpoint

for the post transactions operation.

Typically these are written to a http.Request.

func NewPostTransactionsParams

func NewPostTransactionsParams() *PostTransactionsParams

NewPostTransactionsParams creates a new PostTransactionsParams 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 NewPostTransactionsParamsWithContext

func NewPostTransactionsParamsWithContext(ctx context.Context) *PostTransactionsParams

NewPostTransactionsParamsWithContext creates a new PostTransactionsParams object with the ability to set a context for a request.

func NewPostTransactionsParamsWithHTTPClient

func NewPostTransactionsParamsWithHTTPClient(client *http.Client) *PostTransactionsParams

NewPostTransactionsParamsWithHTTPClient creates a new PostTransactionsParams object with the ability to set a custom HTTPClient for a request.

func NewPostTransactionsParamsWithTimeout

func NewPostTransactionsParamsWithTimeout(timeout time.Duration) *PostTransactionsParams

NewPostTransactionsParamsWithTimeout creates a new PostTransactionsParams object with the ability to set a timeout on a request.

func (*PostTransactionsParams) SetContext

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

SetContext adds the context to the post transactions params

func (*PostTransactionsParams) SetDefaults

func (o *PostTransactionsParams) SetDefaults()

SetDefaults hydrates default values in the post transactions params (not the query body).

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

func (*PostTransactionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post transactions params

func (*PostTransactionsParams) SetMode

func (o *PostTransactionsParams) SetMode(mode *string)

SetMode adds the mode to the post transactions params

func (*PostTransactionsParams) SetPostBody

func (o *PostTransactionsParams) SetPostBody(postBody *models.Transaction)

SetPostBody adds the postBody to the post transactions params

func (*PostTransactionsParams) SetTimeout

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

SetTimeout adds the timeout to the post transactions params

func (*PostTransactionsParams) WithContext

WithContext adds the context to the post transactions params

func (*PostTransactionsParams) WithDefaults

WithDefaults hydrates default values in the post transactions params (not the query body).

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

func (*PostTransactionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post transactions params

func (*PostTransactionsParams) WithMode

WithMode adds the mode to the post transactions params

func (*PostTransactionsParams) WithPostBody

WithPostBody adds the postBody to the post transactions params

func (*PostTransactionsParams) WithTimeout

WithTimeout adds the timeout to the post transactions params

func (*PostTransactionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostTransactionsReader

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

PostTransactionsReader is a Reader for the PostTransactions structure.

func (*PostTransactionsReader) ReadResponse

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