protocol

package
v1.5.66-0...-1e0c951 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 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 protocol API

func (*Client) ProtocolForwardTransaction

func (a *Client) ProtocolForwardTransaction(params *ProtocolForwardTransactionParams, opts ...ClientOption) (*ProtocolForwardTransactionOK, error)

ProtocolForwardTransaction protocol forward transaction API

func (*Client) ProtocolGetBlock

func (a *Client) ProtocolGetBlock(params *ProtocolGetBlockParams, opts ...ClientOption) (*ProtocolGetBlockOK, error)

ProtocolGetBlock protocol get block API

func (*Client) ProtocolGetNodeInfo

func (a *Client) ProtocolGetNodeInfo(params *ProtocolGetNodeInfoParams, opts ...ClientOption) (*ProtocolGetNodeInfoOK, error)

ProtocolGetNodeInfo protocol get node info API

func (*Client) ProtocolGetTransaction

func (a *Client) ProtocolGetTransaction(params *ProtocolGetTransactionParams, opts ...ClientOption) (*ProtocolGetTransactionOK, error)

ProtocolGetTransaction protocol get transaction API

func (*Client) ProtocolPing

func (a *Client) ProtocolPing(params *ProtocolPingParams, opts ...ClientOption) (*ProtocolPingOK, error)

ProtocolPing protocol ping API

func (*Client) ProtocolSendTransaction

func (a *Client) ProtocolSendTransaction(params *ProtocolSendTransactionParams, opts ...ClientOption) (*ProtocolSendTransactionOK, error)

ProtocolSendTransaction protocol send transaction API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	ProtocolForwardTransaction(params *ProtocolForwardTransactionParams, opts ...ClientOption) (*ProtocolForwardTransactionOK, error)

	ProtocolGetBlock(params *ProtocolGetBlockParams, opts ...ClientOption) (*ProtocolGetBlockOK, error)

	ProtocolGetNodeInfo(params *ProtocolGetNodeInfoParams, opts ...ClientOption) (*ProtocolGetNodeInfoOK, error)

	ProtocolGetTransaction(params *ProtocolGetTransactionParams, opts ...ClientOption) (*ProtocolGetTransactionOK, error)

	ProtocolPing(params *ProtocolPingParams, opts ...ClientOption) (*ProtocolPingOK, error)

	ProtocolSendTransaction(params *ProtocolSendTransactionParams, opts ...ClientOption) (*ProtocolSendTransactionOK, 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 protocol API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new protocol API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new protocol API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type ProtocolForwardTransactionDefault

type ProtocolForwardTransactionDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewProtocolForwardTransactionDefault

func NewProtocolForwardTransactionDefault(code int) *ProtocolForwardTransactionDefault

NewProtocolForwardTransactionDefault creates a ProtocolForwardTransactionDefault with default headers values

func (*ProtocolForwardTransactionDefault) Code

Code gets the status code for the protocol forward transaction default response

func (*ProtocolForwardTransactionDefault) Error

func (*ProtocolForwardTransactionDefault) GetPayload

func (*ProtocolForwardTransactionDefault) IsClientError

func (o *ProtocolForwardTransactionDefault) IsClientError() bool

IsClientError returns true when this protocol forward transaction default response has a 4xx status code

func (*ProtocolForwardTransactionDefault) IsCode

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

IsCode returns true when this protocol forward transaction default response a status code equal to that given

func (*ProtocolForwardTransactionDefault) IsRedirect

func (o *ProtocolForwardTransactionDefault) IsRedirect() bool

IsRedirect returns true when this protocol forward transaction default response has a 3xx status code

func (*ProtocolForwardTransactionDefault) IsServerError

func (o *ProtocolForwardTransactionDefault) IsServerError() bool

IsServerError returns true when this protocol forward transaction default response has a 5xx status code

func (*ProtocolForwardTransactionDefault) IsSuccess

func (o *ProtocolForwardTransactionDefault) IsSuccess() bool

IsSuccess returns true when this protocol forward transaction default response has a 2xx status code

func (*ProtocolForwardTransactionDefault) String

type ProtocolForwardTransactionOK

type ProtocolForwardTransactionOK struct {
	Payload models.ProtocolForwardTransactionResponse
}

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

A successful response.

func NewProtocolForwardTransactionOK

func NewProtocolForwardTransactionOK() *ProtocolForwardTransactionOK

NewProtocolForwardTransactionOK creates a ProtocolForwardTransactionOK with default headers values

func (*ProtocolForwardTransactionOK) Code

Code gets the status code for the protocol forward transaction o k response

func (*ProtocolForwardTransactionOK) Error

func (*ProtocolForwardTransactionOK) GetPayload

func (*ProtocolForwardTransactionOK) IsClientError

func (o *ProtocolForwardTransactionOK) IsClientError() bool

IsClientError returns true when this protocol forward transaction o k response has a 4xx status code

func (*ProtocolForwardTransactionOK) IsCode

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

IsCode returns true when this protocol forward transaction o k response a status code equal to that given

func (*ProtocolForwardTransactionOK) IsRedirect

func (o *ProtocolForwardTransactionOK) IsRedirect() bool

IsRedirect returns true when this protocol forward transaction o k response has a 3xx status code

func (*ProtocolForwardTransactionOK) IsServerError

func (o *ProtocolForwardTransactionOK) IsServerError() bool

IsServerError returns true when this protocol forward transaction o k response has a 5xx status code

func (*ProtocolForwardTransactionOK) IsSuccess

func (o *ProtocolForwardTransactionOK) IsSuccess() bool

IsSuccess returns true when this protocol forward transaction o k response has a 2xx status code

func (*ProtocolForwardTransactionOK) String

type ProtocolForwardTransactionParams

type ProtocolForwardTransactionParams struct {

	// Signature.
	Signature *string

	// Transaction.
	Transaction *models.ProtocolSignedTransaction

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

ProtocolForwardTransactionParams contains all the parameters to send to the API endpoint

for the protocol forward transaction operation.

Typically these are written to a http.Request.

func NewProtocolForwardTransactionParams

func NewProtocolForwardTransactionParams() *ProtocolForwardTransactionParams

NewProtocolForwardTransactionParams creates a new ProtocolForwardTransactionParams 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 NewProtocolForwardTransactionParamsWithContext

func NewProtocolForwardTransactionParamsWithContext(ctx context.Context) *ProtocolForwardTransactionParams

NewProtocolForwardTransactionParamsWithContext creates a new ProtocolForwardTransactionParams object with the ability to set a context for a request.

func NewProtocolForwardTransactionParamsWithHTTPClient

func NewProtocolForwardTransactionParamsWithHTTPClient(client *http.Client) *ProtocolForwardTransactionParams

NewProtocolForwardTransactionParamsWithHTTPClient creates a new ProtocolForwardTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewProtocolForwardTransactionParamsWithTimeout

func NewProtocolForwardTransactionParamsWithTimeout(timeout time.Duration) *ProtocolForwardTransactionParams

NewProtocolForwardTransactionParamsWithTimeout creates a new ProtocolForwardTransactionParams object with the ability to set a timeout on a request.

func (*ProtocolForwardTransactionParams) SetContext

SetContext adds the context to the protocol forward transaction params

func (*ProtocolForwardTransactionParams) SetDefaults

func (o *ProtocolForwardTransactionParams) SetDefaults()

SetDefaults hydrates default values in the protocol forward transaction params (not the query body).

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

func (*ProtocolForwardTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the protocol forward transaction params

func (*ProtocolForwardTransactionParams) SetSignature

func (o *ProtocolForwardTransactionParams) SetSignature(signature *string)

SetSignature adds the signature to the protocol forward transaction params

func (*ProtocolForwardTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the protocol forward transaction params

func (*ProtocolForwardTransactionParams) SetTransaction

func (o *ProtocolForwardTransactionParams) SetTransaction(transaction *models.ProtocolSignedTransaction)

SetTransaction adds the transaction to the protocol forward transaction params

func (*ProtocolForwardTransactionParams) WithContext

WithContext adds the context to the protocol forward transaction params

func (*ProtocolForwardTransactionParams) WithDefaults

WithDefaults hydrates default values in the protocol forward transaction params (not the query body).

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

func (*ProtocolForwardTransactionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the protocol forward transaction params

func (*ProtocolForwardTransactionParams) WithSignature

WithSignature adds the signature to the protocol forward transaction params

func (*ProtocolForwardTransactionParams) WithTimeout

WithTimeout adds the timeout to the protocol forward transaction params

func (*ProtocolForwardTransactionParams) WithTransaction

WithTransaction adds the transaction to the protocol forward transaction params

func (*ProtocolForwardTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ProtocolForwardTransactionReader

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

ProtocolForwardTransactionReader is a Reader for the ProtocolForwardTransaction structure.

func (*ProtocolForwardTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProtocolGetBlockDefault

type ProtocolGetBlockDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewProtocolGetBlockDefault

func NewProtocolGetBlockDefault(code int) *ProtocolGetBlockDefault

NewProtocolGetBlockDefault creates a ProtocolGetBlockDefault with default headers values

func (*ProtocolGetBlockDefault) Code

func (o *ProtocolGetBlockDefault) Code() int

Code gets the status code for the protocol get block default response

func (*ProtocolGetBlockDefault) Error

func (o *ProtocolGetBlockDefault) Error() string

func (*ProtocolGetBlockDefault) GetPayload

func (o *ProtocolGetBlockDefault) GetPayload() *models.RPCStatus

func (*ProtocolGetBlockDefault) IsClientError

func (o *ProtocolGetBlockDefault) IsClientError() bool

IsClientError returns true when this protocol get block default response has a 4xx status code

func (*ProtocolGetBlockDefault) IsCode

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

IsCode returns true when this protocol get block default response a status code equal to that given

func (*ProtocolGetBlockDefault) IsRedirect

func (o *ProtocolGetBlockDefault) IsRedirect() bool

IsRedirect returns true when this protocol get block default response has a 3xx status code

func (*ProtocolGetBlockDefault) IsServerError

func (o *ProtocolGetBlockDefault) IsServerError() bool

IsServerError returns true when this protocol get block default response has a 5xx status code

func (*ProtocolGetBlockDefault) IsSuccess

func (o *ProtocolGetBlockDefault) IsSuccess() bool

IsSuccess returns true when this protocol get block default response has a 2xx status code

func (*ProtocolGetBlockDefault) String

func (o *ProtocolGetBlockDefault) String() string

type ProtocolGetBlockOK

type ProtocolGetBlockOK struct {
	Payload *models.ProtocolBlockResponse
}

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

A successful response.

func NewProtocolGetBlockOK

func NewProtocolGetBlockOK() *ProtocolGetBlockOK

NewProtocolGetBlockOK creates a ProtocolGetBlockOK with default headers values

func (*ProtocolGetBlockOK) Code

func (o *ProtocolGetBlockOK) Code() int

Code gets the status code for the protocol get block o k response

func (*ProtocolGetBlockOK) Error

func (o *ProtocolGetBlockOK) Error() string

func (*ProtocolGetBlockOK) GetPayload

func (*ProtocolGetBlockOK) IsClientError

func (o *ProtocolGetBlockOK) IsClientError() bool

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

func (*ProtocolGetBlockOK) IsCode

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

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

func (*ProtocolGetBlockOK) IsRedirect

func (o *ProtocolGetBlockOK) IsRedirect() bool

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

func (*ProtocolGetBlockOK) IsServerError

func (o *ProtocolGetBlockOK) IsServerError() bool

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

func (*ProtocolGetBlockOK) IsSuccess

func (o *ProtocolGetBlockOK) IsSuccess() bool

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

func (*ProtocolGetBlockOK) String

func (o *ProtocolGetBlockOK) String() string

type ProtocolGetBlockParams

type ProtocolGetBlockParams struct {

	// Height.
	//
	// Format: int64
	Height string

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

ProtocolGetBlockParams contains all the parameters to send to the API endpoint

for the protocol get block operation.

Typically these are written to a http.Request.

func NewProtocolGetBlockParams

func NewProtocolGetBlockParams() *ProtocolGetBlockParams

NewProtocolGetBlockParams creates a new ProtocolGetBlockParams 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 NewProtocolGetBlockParamsWithContext

func NewProtocolGetBlockParamsWithContext(ctx context.Context) *ProtocolGetBlockParams

NewProtocolGetBlockParamsWithContext creates a new ProtocolGetBlockParams object with the ability to set a context for a request.

func NewProtocolGetBlockParamsWithHTTPClient

func NewProtocolGetBlockParamsWithHTTPClient(client *http.Client) *ProtocolGetBlockParams

NewProtocolGetBlockParamsWithHTTPClient creates a new ProtocolGetBlockParams object with the ability to set a custom HTTPClient for a request.

func NewProtocolGetBlockParamsWithTimeout

func NewProtocolGetBlockParamsWithTimeout(timeout time.Duration) *ProtocolGetBlockParams

NewProtocolGetBlockParamsWithTimeout creates a new ProtocolGetBlockParams object with the ability to set a timeout on a request.

func (*ProtocolGetBlockParams) SetContext

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

SetContext adds the context to the protocol get block params

func (*ProtocolGetBlockParams) SetDefaults

func (o *ProtocolGetBlockParams) SetDefaults()

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

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

func (*ProtocolGetBlockParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the protocol get block params

func (*ProtocolGetBlockParams) SetHeight

func (o *ProtocolGetBlockParams) SetHeight(height string)

SetHeight adds the height to the protocol get block params

func (*ProtocolGetBlockParams) SetTimeout

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

SetTimeout adds the timeout to the protocol get block params

func (*ProtocolGetBlockParams) WithContext

WithContext adds the context to the protocol get block params

func (*ProtocolGetBlockParams) WithDefaults

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

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

func (*ProtocolGetBlockParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the protocol get block params

func (*ProtocolGetBlockParams) WithHeight

func (o *ProtocolGetBlockParams) WithHeight(height string) *ProtocolGetBlockParams

WithHeight adds the height to the protocol get block params

func (*ProtocolGetBlockParams) WithTimeout

WithTimeout adds the timeout to the protocol get block params

func (*ProtocolGetBlockParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ProtocolGetBlockReader

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

ProtocolGetBlockReader is a Reader for the ProtocolGetBlock structure.

func (*ProtocolGetBlockReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProtocolGetNodeInfoDefault

type ProtocolGetNodeInfoDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewProtocolGetNodeInfoDefault

func NewProtocolGetNodeInfoDefault(code int) *ProtocolGetNodeInfoDefault

NewProtocolGetNodeInfoDefault creates a ProtocolGetNodeInfoDefault with default headers values

func (*ProtocolGetNodeInfoDefault) Code

func (o *ProtocolGetNodeInfoDefault) Code() int

Code gets the status code for the protocol get node info default response

func (*ProtocolGetNodeInfoDefault) Error

func (*ProtocolGetNodeInfoDefault) GetPayload

func (o *ProtocolGetNodeInfoDefault) GetPayload() *models.RPCStatus

func (*ProtocolGetNodeInfoDefault) IsClientError

func (o *ProtocolGetNodeInfoDefault) IsClientError() bool

IsClientError returns true when this protocol get node info default response has a 4xx status code

func (*ProtocolGetNodeInfoDefault) IsCode

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

IsCode returns true when this protocol get node info default response a status code equal to that given

func (*ProtocolGetNodeInfoDefault) IsRedirect

func (o *ProtocolGetNodeInfoDefault) IsRedirect() bool

IsRedirect returns true when this protocol get node info default response has a 3xx status code

func (*ProtocolGetNodeInfoDefault) IsServerError

func (o *ProtocolGetNodeInfoDefault) IsServerError() bool

IsServerError returns true when this protocol get node info default response has a 5xx status code

func (*ProtocolGetNodeInfoDefault) IsSuccess

func (o *ProtocolGetNodeInfoDefault) IsSuccess() bool

IsSuccess returns true when this protocol get node info default response has a 2xx status code

func (*ProtocolGetNodeInfoDefault) String

func (o *ProtocolGetNodeInfoDefault) String() string

type ProtocolGetNodeInfoOK

type ProtocolGetNodeInfoOK struct {
	Payload *models.ProtocolNodeInfoResponse
}

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

A successful response.

func NewProtocolGetNodeInfoOK

func NewProtocolGetNodeInfoOK() *ProtocolGetNodeInfoOK

NewProtocolGetNodeInfoOK creates a ProtocolGetNodeInfoOK with default headers values

func (*ProtocolGetNodeInfoOK) Code

func (o *ProtocolGetNodeInfoOK) Code() int

Code gets the status code for the protocol get node info o k response

func (*ProtocolGetNodeInfoOK) Error

func (o *ProtocolGetNodeInfoOK) Error() string

func (*ProtocolGetNodeInfoOK) GetPayload

func (*ProtocolGetNodeInfoOK) IsClientError

func (o *ProtocolGetNodeInfoOK) IsClientError() bool

IsClientError returns true when this protocol get node info o k response has a 4xx status code

func (*ProtocolGetNodeInfoOK) IsCode

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

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

func (*ProtocolGetNodeInfoOK) IsRedirect

func (o *ProtocolGetNodeInfoOK) IsRedirect() bool

IsRedirect returns true when this protocol get node info o k response has a 3xx status code

func (*ProtocolGetNodeInfoOK) IsServerError

func (o *ProtocolGetNodeInfoOK) IsServerError() bool

IsServerError returns true when this protocol get node info o k response has a 5xx status code

func (*ProtocolGetNodeInfoOK) IsSuccess

func (o *ProtocolGetNodeInfoOK) IsSuccess() bool

IsSuccess returns true when this protocol get node info o k response has a 2xx status code

func (*ProtocolGetNodeInfoOK) String

func (o *ProtocolGetNodeInfoOK) String() string

type ProtocolGetNodeInfoParams

type ProtocolGetNodeInfoParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ProtocolGetNodeInfoParams contains all the parameters to send to the API endpoint

for the protocol get node info operation.

Typically these are written to a http.Request.

func NewProtocolGetNodeInfoParams

func NewProtocolGetNodeInfoParams() *ProtocolGetNodeInfoParams

NewProtocolGetNodeInfoParams creates a new ProtocolGetNodeInfoParams 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 NewProtocolGetNodeInfoParamsWithContext

func NewProtocolGetNodeInfoParamsWithContext(ctx context.Context) *ProtocolGetNodeInfoParams

NewProtocolGetNodeInfoParamsWithContext creates a new ProtocolGetNodeInfoParams object with the ability to set a context for a request.

func NewProtocolGetNodeInfoParamsWithHTTPClient

func NewProtocolGetNodeInfoParamsWithHTTPClient(client *http.Client) *ProtocolGetNodeInfoParams

NewProtocolGetNodeInfoParamsWithHTTPClient creates a new ProtocolGetNodeInfoParams object with the ability to set a custom HTTPClient for a request.

func NewProtocolGetNodeInfoParamsWithTimeout

func NewProtocolGetNodeInfoParamsWithTimeout(timeout time.Duration) *ProtocolGetNodeInfoParams

NewProtocolGetNodeInfoParamsWithTimeout creates a new ProtocolGetNodeInfoParams object with the ability to set a timeout on a request.

func (*ProtocolGetNodeInfoParams) SetContext

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

SetContext adds the context to the protocol get node info params

func (*ProtocolGetNodeInfoParams) SetDefaults

func (o *ProtocolGetNodeInfoParams) SetDefaults()

SetDefaults hydrates default values in the protocol get node info params (not the query body).

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

func (*ProtocolGetNodeInfoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the protocol get node info params

func (*ProtocolGetNodeInfoParams) SetTimeout

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

SetTimeout adds the timeout to the protocol get node info params

func (*ProtocolGetNodeInfoParams) WithContext

WithContext adds the context to the protocol get node info params

func (*ProtocolGetNodeInfoParams) WithDefaults

WithDefaults hydrates default values in the protocol get node info params (not the query body).

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

func (*ProtocolGetNodeInfoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the protocol get node info params

func (*ProtocolGetNodeInfoParams) WithTimeout

WithTimeout adds the timeout to the protocol get node info params

func (*ProtocolGetNodeInfoParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ProtocolGetNodeInfoReader

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

ProtocolGetNodeInfoReader is a Reader for the ProtocolGetNodeInfo structure.

func (*ProtocolGetNodeInfoReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProtocolGetTransactionDefault

type ProtocolGetTransactionDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewProtocolGetTransactionDefault

func NewProtocolGetTransactionDefault(code int) *ProtocolGetTransactionDefault

NewProtocolGetTransactionDefault creates a ProtocolGetTransactionDefault with default headers values

func (*ProtocolGetTransactionDefault) Code

Code gets the status code for the protocol get transaction default response

func (*ProtocolGetTransactionDefault) Error

func (*ProtocolGetTransactionDefault) GetPayload

func (*ProtocolGetTransactionDefault) IsClientError

func (o *ProtocolGetTransactionDefault) IsClientError() bool

IsClientError returns true when this protocol get transaction default response has a 4xx status code

func (*ProtocolGetTransactionDefault) IsCode

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

IsCode returns true when this protocol get transaction default response a status code equal to that given

func (*ProtocolGetTransactionDefault) IsRedirect

func (o *ProtocolGetTransactionDefault) IsRedirect() bool

IsRedirect returns true when this protocol get transaction default response has a 3xx status code

func (*ProtocolGetTransactionDefault) IsServerError

func (o *ProtocolGetTransactionDefault) IsServerError() bool

IsServerError returns true when this protocol get transaction default response has a 5xx status code

func (*ProtocolGetTransactionDefault) IsSuccess

func (o *ProtocolGetTransactionDefault) IsSuccess() bool

IsSuccess returns true when this protocol get transaction default response has a 2xx status code

func (*ProtocolGetTransactionDefault) String

type ProtocolGetTransactionOK

type ProtocolGetTransactionOK struct {
	Payload *models.ProtocolTransactionResponse
}

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

A successful response.

func NewProtocolGetTransactionOK

func NewProtocolGetTransactionOK() *ProtocolGetTransactionOK

NewProtocolGetTransactionOK creates a ProtocolGetTransactionOK with default headers values

func (*ProtocolGetTransactionOK) Code

func (o *ProtocolGetTransactionOK) Code() int

Code gets the status code for the protocol get transaction o k response

func (*ProtocolGetTransactionOK) Error

func (o *ProtocolGetTransactionOK) Error() string

func (*ProtocolGetTransactionOK) GetPayload

func (*ProtocolGetTransactionOK) IsClientError

func (o *ProtocolGetTransactionOK) IsClientError() bool

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

func (*ProtocolGetTransactionOK) IsCode

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

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

func (*ProtocolGetTransactionOK) IsRedirect

func (o *ProtocolGetTransactionOK) IsRedirect() bool

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

func (*ProtocolGetTransactionOK) IsServerError

func (o *ProtocolGetTransactionOK) IsServerError() bool

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

func (*ProtocolGetTransactionOK) IsSuccess

func (o *ProtocolGetTransactionOK) IsSuccess() bool

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

func (*ProtocolGetTransactionOK) String

func (o *ProtocolGetTransactionOK) String() string

type ProtocolGetTransactionParams

type ProtocolGetTransactionParams struct {

	// Txhash.
	Txhash string

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

ProtocolGetTransactionParams contains all the parameters to send to the API endpoint

for the protocol get transaction operation.

Typically these are written to a http.Request.

func NewProtocolGetTransactionParams

func NewProtocolGetTransactionParams() *ProtocolGetTransactionParams

NewProtocolGetTransactionParams creates a new ProtocolGetTransactionParams 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 NewProtocolGetTransactionParamsWithContext

func NewProtocolGetTransactionParamsWithContext(ctx context.Context) *ProtocolGetTransactionParams

NewProtocolGetTransactionParamsWithContext creates a new ProtocolGetTransactionParams object with the ability to set a context for a request.

func NewProtocolGetTransactionParamsWithHTTPClient

func NewProtocolGetTransactionParamsWithHTTPClient(client *http.Client) *ProtocolGetTransactionParams

NewProtocolGetTransactionParamsWithHTTPClient creates a new ProtocolGetTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewProtocolGetTransactionParamsWithTimeout

func NewProtocolGetTransactionParamsWithTimeout(timeout time.Duration) *ProtocolGetTransactionParams

NewProtocolGetTransactionParamsWithTimeout creates a new ProtocolGetTransactionParams object with the ability to set a timeout on a request.

func (*ProtocolGetTransactionParams) SetContext

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

SetContext adds the context to the protocol get transaction params

func (*ProtocolGetTransactionParams) SetDefaults

func (o *ProtocolGetTransactionParams) SetDefaults()

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

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

func (*ProtocolGetTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the protocol get transaction params

func (*ProtocolGetTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the protocol get transaction params

func (*ProtocolGetTransactionParams) SetTxhash

func (o *ProtocolGetTransactionParams) SetTxhash(txhash string)

SetTxhash adds the txhash to the protocol get transaction params

func (*ProtocolGetTransactionParams) WithContext

WithContext adds the context to the protocol get transaction params

func (*ProtocolGetTransactionParams) WithDefaults

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

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

func (*ProtocolGetTransactionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the protocol get transaction params

func (*ProtocolGetTransactionParams) WithTimeout

WithTimeout adds the timeout to the protocol get transaction params

func (*ProtocolGetTransactionParams) WithTxhash

WithTxhash adds the txhash to the protocol get transaction params

func (*ProtocolGetTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ProtocolGetTransactionReader

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

ProtocolGetTransactionReader is a Reader for the ProtocolGetTransaction structure.

func (*ProtocolGetTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProtocolPingDefault

type ProtocolPingDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewProtocolPingDefault

func NewProtocolPingDefault(code int) *ProtocolPingDefault

NewProtocolPingDefault creates a ProtocolPingDefault with default headers values

func (*ProtocolPingDefault) Code

func (o *ProtocolPingDefault) Code() int

Code gets the status code for the protocol ping default response

func (*ProtocolPingDefault) Error

func (o *ProtocolPingDefault) Error() string

func (*ProtocolPingDefault) GetPayload

func (o *ProtocolPingDefault) GetPayload() *models.RPCStatus

func (*ProtocolPingDefault) IsClientError

func (o *ProtocolPingDefault) IsClientError() bool

IsClientError returns true when this protocol ping default response has a 4xx status code

func (*ProtocolPingDefault) IsCode

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

IsCode returns true when this protocol ping default response a status code equal to that given

func (*ProtocolPingDefault) IsRedirect

func (o *ProtocolPingDefault) IsRedirect() bool

IsRedirect returns true when this protocol ping default response has a 3xx status code

func (*ProtocolPingDefault) IsServerError

func (o *ProtocolPingDefault) IsServerError() bool

IsServerError returns true when this protocol ping default response has a 5xx status code

func (*ProtocolPingDefault) IsSuccess

func (o *ProtocolPingDefault) IsSuccess() bool

IsSuccess returns true when this protocol ping default response has a 2xx status code

func (*ProtocolPingDefault) String

func (o *ProtocolPingDefault) String() string

type ProtocolPingOK

type ProtocolPingOK struct {
	Payload *models.ProtocolPingResponse
}

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

A successful response.

func NewProtocolPingOK

func NewProtocolPingOK() *ProtocolPingOK

NewProtocolPingOK creates a ProtocolPingOK with default headers values

func (*ProtocolPingOK) Code

func (o *ProtocolPingOK) Code() int

Code gets the status code for the protocol ping o k response

func (*ProtocolPingOK) Error

func (o *ProtocolPingOK) Error() string

func (*ProtocolPingOK) GetPayload

func (o *ProtocolPingOK) GetPayload() *models.ProtocolPingResponse

func (*ProtocolPingOK) IsClientError

func (o *ProtocolPingOK) IsClientError() bool

IsClientError returns true when this protocol ping o k response has a 4xx status code

func (*ProtocolPingOK) IsCode

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

IsCode returns true when this protocol ping o k response a status code equal to that given

func (*ProtocolPingOK) IsRedirect

func (o *ProtocolPingOK) IsRedirect() bool

IsRedirect returns true when this protocol ping o k response has a 3xx status code

func (*ProtocolPingOK) IsServerError

func (o *ProtocolPingOK) IsServerError() bool

IsServerError returns true when this protocol ping o k response has a 5xx status code

func (*ProtocolPingOK) IsSuccess

func (o *ProtocolPingOK) IsSuccess() bool

IsSuccess returns true when this protocol ping o k response has a 2xx status code

func (*ProtocolPingOK) String

func (o *ProtocolPingOK) String() string

type ProtocolPingParams

type ProtocolPingParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ProtocolPingParams contains all the parameters to send to the API endpoint

for the protocol ping operation.

Typically these are written to a http.Request.

func NewProtocolPingParams

func NewProtocolPingParams() *ProtocolPingParams

NewProtocolPingParams creates a new ProtocolPingParams 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 NewProtocolPingParamsWithContext

func NewProtocolPingParamsWithContext(ctx context.Context) *ProtocolPingParams

NewProtocolPingParamsWithContext creates a new ProtocolPingParams object with the ability to set a context for a request.

func NewProtocolPingParamsWithHTTPClient

func NewProtocolPingParamsWithHTTPClient(client *http.Client) *ProtocolPingParams

NewProtocolPingParamsWithHTTPClient creates a new ProtocolPingParams object with the ability to set a custom HTTPClient for a request.

func NewProtocolPingParamsWithTimeout

func NewProtocolPingParamsWithTimeout(timeout time.Duration) *ProtocolPingParams

NewProtocolPingParamsWithTimeout creates a new ProtocolPingParams object with the ability to set a timeout on a request.

func (*ProtocolPingParams) SetContext

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

SetContext adds the context to the protocol ping params

func (*ProtocolPingParams) SetDefaults

func (o *ProtocolPingParams) SetDefaults()

SetDefaults hydrates default values in the protocol ping params (not the query body).

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

func (*ProtocolPingParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the protocol ping params

func (*ProtocolPingParams) SetTimeout

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

SetTimeout adds the timeout to the protocol ping params

func (*ProtocolPingParams) WithContext

WithContext adds the context to the protocol ping params

func (*ProtocolPingParams) WithDefaults

func (o *ProtocolPingParams) WithDefaults() *ProtocolPingParams

WithDefaults hydrates default values in the protocol ping params (not the query body).

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

func (*ProtocolPingParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the protocol ping params

func (*ProtocolPingParams) WithTimeout

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

WithTimeout adds the timeout to the protocol ping params

func (*ProtocolPingParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ProtocolPingReader

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

ProtocolPingReader is a Reader for the ProtocolPing structure.

func (*ProtocolPingReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProtocolSendTransactionDefault

type ProtocolSendTransactionDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewProtocolSendTransactionDefault

func NewProtocolSendTransactionDefault(code int) *ProtocolSendTransactionDefault

NewProtocolSendTransactionDefault creates a ProtocolSendTransactionDefault with default headers values

func (*ProtocolSendTransactionDefault) Code

Code gets the status code for the protocol send transaction default response

func (*ProtocolSendTransactionDefault) Error

func (*ProtocolSendTransactionDefault) GetPayload

func (*ProtocolSendTransactionDefault) IsClientError

func (o *ProtocolSendTransactionDefault) IsClientError() bool

IsClientError returns true when this protocol send transaction default response has a 4xx status code

func (*ProtocolSendTransactionDefault) IsCode

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

IsCode returns true when this protocol send transaction default response a status code equal to that given

func (*ProtocolSendTransactionDefault) IsRedirect

func (o *ProtocolSendTransactionDefault) IsRedirect() bool

IsRedirect returns true when this protocol send transaction default response has a 3xx status code

func (*ProtocolSendTransactionDefault) IsServerError

func (o *ProtocolSendTransactionDefault) IsServerError() bool

IsServerError returns true when this protocol send transaction default response has a 5xx status code

func (*ProtocolSendTransactionDefault) IsSuccess

func (o *ProtocolSendTransactionDefault) IsSuccess() bool

IsSuccess returns true when this protocol send transaction default response has a 2xx status code

func (*ProtocolSendTransactionDefault) String

type ProtocolSendTransactionOK

type ProtocolSendTransactionOK struct {
	Payload *models.ProtocolTransactionResponse
}

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

A successful response.

func NewProtocolSendTransactionOK

func NewProtocolSendTransactionOK() *ProtocolSendTransactionOK

NewProtocolSendTransactionOK creates a ProtocolSendTransactionOK with default headers values

func (*ProtocolSendTransactionOK) Code

func (o *ProtocolSendTransactionOK) Code() int

Code gets the status code for the protocol send transaction o k response

func (*ProtocolSendTransactionOK) Error

func (o *ProtocolSendTransactionOK) Error() string

func (*ProtocolSendTransactionOK) GetPayload

func (*ProtocolSendTransactionOK) IsClientError

func (o *ProtocolSendTransactionOK) IsClientError() bool

IsClientError returns true when this protocol send transaction o k response has a 4xx status code

func (*ProtocolSendTransactionOK) IsCode

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

IsCode returns true when this protocol send transaction o k response a status code equal to that given

func (*ProtocolSendTransactionOK) IsRedirect

func (o *ProtocolSendTransactionOK) IsRedirect() bool

IsRedirect returns true when this protocol send transaction o k response has a 3xx status code

func (*ProtocolSendTransactionOK) IsServerError

func (o *ProtocolSendTransactionOK) IsServerError() bool

IsServerError returns true when this protocol send transaction o k response has a 5xx status code

func (*ProtocolSendTransactionOK) IsSuccess

func (o *ProtocolSendTransactionOK) IsSuccess() bool

IsSuccess returns true when this protocol send transaction o k response has a 2xx status code

func (*ProtocolSendTransactionOK) String

func (o *ProtocolSendTransactionOK) String() string

type ProtocolSendTransactionParams

type ProtocolSendTransactionParams struct {

	// Transaction.
	Transaction *models.ProtocolSignedTransaction

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

ProtocolSendTransactionParams contains all the parameters to send to the API endpoint

for the protocol send transaction operation.

Typically these are written to a http.Request.

func NewProtocolSendTransactionParams

func NewProtocolSendTransactionParams() *ProtocolSendTransactionParams

NewProtocolSendTransactionParams creates a new ProtocolSendTransactionParams 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 NewProtocolSendTransactionParamsWithContext

func NewProtocolSendTransactionParamsWithContext(ctx context.Context) *ProtocolSendTransactionParams

NewProtocolSendTransactionParamsWithContext creates a new ProtocolSendTransactionParams object with the ability to set a context for a request.

func NewProtocolSendTransactionParamsWithHTTPClient

func NewProtocolSendTransactionParamsWithHTTPClient(client *http.Client) *ProtocolSendTransactionParams

NewProtocolSendTransactionParamsWithHTTPClient creates a new ProtocolSendTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewProtocolSendTransactionParamsWithTimeout

func NewProtocolSendTransactionParamsWithTimeout(timeout time.Duration) *ProtocolSendTransactionParams

NewProtocolSendTransactionParamsWithTimeout creates a new ProtocolSendTransactionParams object with the ability to set a timeout on a request.

func (*ProtocolSendTransactionParams) SetContext

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

SetContext adds the context to the protocol send transaction params

func (*ProtocolSendTransactionParams) SetDefaults

func (o *ProtocolSendTransactionParams) SetDefaults()

SetDefaults hydrates default values in the protocol send transaction params (not the query body).

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

func (*ProtocolSendTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the protocol send transaction params

func (*ProtocolSendTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the protocol send transaction params

func (*ProtocolSendTransactionParams) SetTransaction

func (o *ProtocolSendTransactionParams) SetTransaction(transaction *models.ProtocolSignedTransaction)

SetTransaction adds the transaction to the protocol send transaction params

func (*ProtocolSendTransactionParams) WithContext

WithContext adds the context to the protocol send transaction params

func (*ProtocolSendTransactionParams) WithDefaults

WithDefaults hydrates default values in the protocol send transaction params (not the query body).

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

func (*ProtocolSendTransactionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the protocol send transaction params

func (*ProtocolSendTransactionParams) WithTimeout

WithTimeout adds the timeout to the protocol send transaction params

func (*ProtocolSendTransactionParams) WithTransaction

WithTransaction adds the transaction to the protocol send transaction params

func (*ProtocolSendTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ProtocolSendTransactionReader

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

ProtocolSendTransactionReader is a Reader for the ProtocolSendTransaction structure.

func (*ProtocolSendTransactionReader) ReadResponse

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