Documentation
¶
Index ¶
- type Client
- func (a *Client) ProtocolForwardTransaction(params *ProtocolForwardTransactionParams, opts ...ClientOption) (*ProtocolForwardTransactionOK, error)
- func (a *Client) ProtocolGetBlock(params *ProtocolGetBlockParams, opts ...ClientOption) (*ProtocolGetBlockOK, error)
- func (a *Client) ProtocolGetNodeInfo(params *ProtocolGetNodeInfoParams, opts ...ClientOption) (*ProtocolGetNodeInfoOK, error)
- func (a *Client) ProtocolGetTransaction(params *ProtocolGetTransactionParams, opts ...ClientOption) (*ProtocolGetTransactionOK, error)
- func (a *Client) ProtocolPing(params *ProtocolPingParams, opts ...ClientOption) (*ProtocolPingOK, error)
- func (a *Client) ProtocolSendTransaction(params *ProtocolSendTransactionParams, opts ...ClientOption) (*ProtocolSendTransactionOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type ProtocolForwardTransactionDefault
- func (o *ProtocolForwardTransactionDefault) Code() int
- func (o *ProtocolForwardTransactionDefault) Error() string
- func (o *ProtocolForwardTransactionDefault) GetPayload() *models.RPCStatus
- func (o *ProtocolForwardTransactionDefault) IsClientError() bool
- func (o *ProtocolForwardTransactionDefault) IsCode(code int) bool
- func (o *ProtocolForwardTransactionDefault) IsRedirect() bool
- func (o *ProtocolForwardTransactionDefault) IsServerError() bool
- func (o *ProtocolForwardTransactionDefault) IsSuccess() bool
- func (o *ProtocolForwardTransactionDefault) String() string
- type ProtocolForwardTransactionOK
- func (o *ProtocolForwardTransactionOK) Code() int
- func (o *ProtocolForwardTransactionOK) Error() string
- func (o *ProtocolForwardTransactionOK) GetPayload() models.ProtocolForwardTransactionResponse
- func (o *ProtocolForwardTransactionOK) IsClientError() bool
- func (o *ProtocolForwardTransactionOK) IsCode(code int) bool
- func (o *ProtocolForwardTransactionOK) IsRedirect() bool
- func (o *ProtocolForwardTransactionOK) IsServerError() bool
- func (o *ProtocolForwardTransactionOK) IsSuccess() bool
- func (o *ProtocolForwardTransactionOK) String() string
- type ProtocolForwardTransactionParams
- func NewProtocolForwardTransactionParams() *ProtocolForwardTransactionParams
- func NewProtocolForwardTransactionParamsWithContext(ctx context.Context) *ProtocolForwardTransactionParams
- func NewProtocolForwardTransactionParamsWithHTTPClient(client *http.Client) *ProtocolForwardTransactionParams
- func NewProtocolForwardTransactionParamsWithTimeout(timeout time.Duration) *ProtocolForwardTransactionParams
- func (o *ProtocolForwardTransactionParams) SetContext(ctx context.Context)
- func (o *ProtocolForwardTransactionParams) SetDefaults()
- func (o *ProtocolForwardTransactionParams) SetHTTPClient(client *http.Client)
- func (o *ProtocolForwardTransactionParams) SetSignature(signature *string)
- func (o *ProtocolForwardTransactionParams) SetTimeout(timeout time.Duration)
- func (o *ProtocolForwardTransactionParams) SetTransaction(transaction *models.ProtocolSignedTransaction)
- func (o *ProtocolForwardTransactionParams) WithContext(ctx context.Context) *ProtocolForwardTransactionParams
- func (o *ProtocolForwardTransactionParams) WithDefaults() *ProtocolForwardTransactionParams
- func (o *ProtocolForwardTransactionParams) WithHTTPClient(client *http.Client) *ProtocolForwardTransactionParams
- func (o *ProtocolForwardTransactionParams) WithSignature(signature *string) *ProtocolForwardTransactionParams
- func (o *ProtocolForwardTransactionParams) WithTimeout(timeout time.Duration) *ProtocolForwardTransactionParams
- func (o *ProtocolForwardTransactionParams) WithTransaction(transaction *models.ProtocolSignedTransaction) *ProtocolForwardTransactionParams
- func (o *ProtocolForwardTransactionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ProtocolForwardTransactionReader
- type ProtocolGetBlockDefault
- func (o *ProtocolGetBlockDefault) Code() int
- func (o *ProtocolGetBlockDefault) Error() string
- func (o *ProtocolGetBlockDefault) GetPayload() *models.RPCStatus
- func (o *ProtocolGetBlockDefault) IsClientError() bool
- func (o *ProtocolGetBlockDefault) IsCode(code int) bool
- func (o *ProtocolGetBlockDefault) IsRedirect() bool
- func (o *ProtocolGetBlockDefault) IsServerError() bool
- func (o *ProtocolGetBlockDefault) IsSuccess() bool
- func (o *ProtocolGetBlockDefault) String() string
- type ProtocolGetBlockOK
- func (o *ProtocolGetBlockOK) Code() int
- func (o *ProtocolGetBlockOK) Error() string
- func (o *ProtocolGetBlockOK) GetPayload() *models.ProtocolBlockResponse
- func (o *ProtocolGetBlockOK) IsClientError() bool
- func (o *ProtocolGetBlockOK) IsCode(code int) bool
- func (o *ProtocolGetBlockOK) IsRedirect() bool
- func (o *ProtocolGetBlockOK) IsServerError() bool
- func (o *ProtocolGetBlockOK) IsSuccess() bool
- func (o *ProtocolGetBlockOK) String() string
- type ProtocolGetBlockParams
- func NewProtocolGetBlockParams() *ProtocolGetBlockParams
- func NewProtocolGetBlockParamsWithContext(ctx context.Context) *ProtocolGetBlockParams
- func NewProtocolGetBlockParamsWithHTTPClient(client *http.Client) *ProtocolGetBlockParams
- func NewProtocolGetBlockParamsWithTimeout(timeout time.Duration) *ProtocolGetBlockParams
- func (o *ProtocolGetBlockParams) SetContext(ctx context.Context)
- func (o *ProtocolGetBlockParams) SetDefaults()
- func (o *ProtocolGetBlockParams) SetHTTPClient(client *http.Client)
- func (o *ProtocolGetBlockParams) SetHeight(height string)
- func (o *ProtocolGetBlockParams) SetTimeout(timeout time.Duration)
- func (o *ProtocolGetBlockParams) WithContext(ctx context.Context) *ProtocolGetBlockParams
- func (o *ProtocolGetBlockParams) WithDefaults() *ProtocolGetBlockParams
- func (o *ProtocolGetBlockParams) WithHTTPClient(client *http.Client) *ProtocolGetBlockParams
- func (o *ProtocolGetBlockParams) WithHeight(height string) *ProtocolGetBlockParams
- func (o *ProtocolGetBlockParams) WithTimeout(timeout time.Duration) *ProtocolGetBlockParams
- func (o *ProtocolGetBlockParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ProtocolGetBlockReader
- type ProtocolGetNodeInfoDefault
- func (o *ProtocolGetNodeInfoDefault) Code() int
- func (o *ProtocolGetNodeInfoDefault) Error() string
- func (o *ProtocolGetNodeInfoDefault) GetPayload() *models.RPCStatus
- func (o *ProtocolGetNodeInfoDefault) IsClientError() bool
- func (o *ProtocolGetNodeInfoDefault) IsCode(code int) bool
- func (o *ProtocolGetNodeInfoDefault) IsRedirect() bool
- func (o *ProtocolGetNodeInfoDefault) IsServerError() bool
- func (o *ProtocolGetNodeInfoDefault) IsSuccess() bool
- func (o *ProtocolGetNodeInfoDefault) String() string
- type ProtocolGetNodeInfoOK
- func (o *ProtocolGetNodeInfoOK) Code() int
- func (o *ProtocolGetNodeInfoOK) Error() string
- func (o *ProtocolGetNodeInfoOK) GetPayload() *models.ProtocolNodeInfoResponse
- func (o *ProtocolGetNodeInfoOK) IsClientError() bool
- func (o *ProtocolGetNodeInfoOK) IsCode(code int) bool
- func (o *ProtocolGetNodeInfoOK) IsRedirect() bool
- func (o *ProtocolGetNodeInfoOK) IsServerError() bool
- func (o *ProtocolGetNodeInfoOK) IsSuccess() bool
- func (o *ProtocolGetNodeInfoOK) String() string
- type ProtocolGetNodeInfoParams
- func NewProtocolGetNodeInfoParams() *ProtocolGetNodeInfoParams
- func NewProtocolGetNodeInfoParamsWithContext(ctx context.Context) *ProtocolGetNodeInfoParams
- func NewProtocolGetNodeInfoParamsWithHTTPClient(client *http.Client) *ProtocolGetNodeInfoParams
- func NewProtocolGetNodeInfoParamsWithTimeout(timeout time.Duration) *ProtocolGetNodeInfoParams
- func (o *ProtocolGetNodeInfoParams) SetContext(ctx context.Context)
- func (o *ProtocolGetNodeInfoParams) SetDefaults()
- func (o *ProtocolGetNodeInfoParams) SetHTTPClient(client *http.Client)
- func (o *ProtocolGetNodeInfoParams) SetTimeout(timeout time.Duration)
- func (o *ProtocolGetNodeInfoParams) WithContext(ctx context.Context) *ProtocolGetNodeInfoParams
- func (o *ProtocolGetNodeInfoParams) WithDefaults() *ProtocolGetNodeInfoParams
- func (o *ProtocolGetNodeInfoParams) WithHTTPClient(client *http.Client) *ProtocolGetNodeInfoParams
- func (o *ProtocolGetNodeInfoParams) WithTimeout(timeout time.Duration) *ProtocolGetNodeInfoParams
- func (o *ProtocolGetNodeInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ProtocolGetNodeInfoReader
- type ProtocolGetTransactionDefault
- func (o *ProtocolGetTransactionDefault) Code() int
- func (o *ProtocolGetTransactionDefault) Error() string
- func (o *ProtocolGetTransactionDefault) GetPayload() *models.RPCStatus
- func (o *ProtocolGetTransactionDefault) IsClientError() bool
- func (o *ProtocolGetTransactionDefault) IsCode(code int) bool
- func (o *ProtocolGetTransactionDefault) IsRedirect() bool
- func (o *ProtocolGetTransactionDefault) IsServerError() bool
- func (o *ProtocolGetTransactionDefault) IsSuccess() bool
- func (o *ProtocolGetTransactionDefault) String() string
- type ProtocolGetTransactionOK
- func (o *ProtocolGetTransactionOK) Code() int
- func (o *ProtocolGetTransactionOK) Error() string
- func (o *ProtocolGetTransactionOK) GetPayload() *models.ProtocolTransactionResponse
- func (o *ProtocolGetTransactionOK) IsClientError() bool
- func (o *ProtocolGetTransactionOK) IsCode(code int) bool
- func (o *ProtocolGetTransactionOK) IsRedirect() bool
- func (o *ProtocolGetTransactionOK) IsServerError() bool
- func (o *ProtocolGetTransactionOK) IsSuccess() bool
- func (o *ProtocolGetTransactionOK) String() string
- type ProtocolGetTransactionParams
- func NewProtocolGetTransactionParams() *ProtocolGetTransactionParams
- func NewProtocolGetTransactionParamsWithContext(ctx context.Context) *ProtocolGetTransactionParams
- func NewProtocolGetTransactionParamsWithHTTPClient(client *http.Client) *ProtocolGetTransactionParams
- func NewProtocolGetTransactionParamsWithTimeout(timeout time.Duration) *ProtocolGetTransactionParams
- func (o *ProtocolGetTransactionParams) SetContext(ctx context.Context)
- func (o *ProtocolGetTransactionParams) SetDefaults()
- func (o *ProtocolGetTransactionParams) SetHTTPClient(client *http.Client)
- func (o *ProtocolGetTransactionParams) SetTimeout(timeout time.Duration)
- func (o *ProtocolGetTransactionParams) SetTxhash(txhash string)
- func (o *ProtocolGetTransactionParams) WithContext(ctx context.Context) *ProtocolGetTransactionParams
- func (o *ProtocolGetTransactionParams) WithDefaults() *ProtocolGetTransactionParams
- func (o *ProtocolGetTransactionParams) WithHTTPClient(client *http.Client) *ProtocolGetTransactionParams
- func (o *ProtocolGetTransactionParams) WithTimeout(timeout time.Duration) *ProtocolGetTransactionParams
- func (o *ProtocolGetTransactionParams) WithTxhash(txhash string) *ProtocolGetTransactionParams
- func (o *ProtocolGetTransactionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ProtocolGetTransactionReader
- type ProtocolPingDefault
- func (o *ProtocolPingDefault) Code() int
- func (o *ProtocolPingDefault) Error() string
- func (o *ProtocolPingDefault) GetPayload() *models.RPCStatus
- func (o *ProtocolPingDefault) IsClientError() bool
- func (o *ProtocolPingDefault) IsCode(code int) bool
- func (o *ProtocolPingDefault) IsRedirect() bool
- func (o *ProtocolPingDefault) IsServerError() bool
- func (o *ProtocolPingDefault) IsSuccess() bool
- func (o *ProtocolPingDefault) String() string
- type ProtocolPingOK
- func (o *ProtocolPingOK) Code() int
- func (o *ProtocolPingOK) Error() string
- func (o *ProtocolPingOK) GetPayload() *models.ProtocolPingResponse
- func (o *ProtocolPingOK) IsClientError() bool
- func (o *ProtocolPingOK) IsCode(code int) bool
- func (o *ProtocolPingOK) IsRedirect() bool
- func (o *ProtocolPingOK) IsServerError() bool
- func (o *ProtocolPingOK) IsSuccess() bool
- func (o *ProtocolPingOK) String() string
- type ProtocolPingParams
- func (o *ProtocolPingParams) SetContext(ctx context.Context)
- func (o *ProtocolPingParams) SetDefaults()
- func (o *ProtocolPingParams) SetHTTPClient(client *http.Client)
- func (o *ProtocolPingParams) SetTimeout(timeout time.Duration)
- func (o *ProtocolPingParams) WithContext(ctx context.Context) *ProtocolPingParams
- func (o *ProtocolPingParams) WithDefaults() *ProtocolPingParams
- func (o *ProtocolPingParams) WithHTTPClient(client *http.Client) *ProtocolPingParams
- func (o *ProtocolPingParams) WithTimeout(timeout time.Duration) *ProtocolPingParams
- func (o *ProtocolPingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ProtocolPingReader
- type ProtocolSendTransactionDefault
- func (o *ProtocolSendTransactionDefault) Code() int
- func (o *ProtocolSendTransactionDefault) Error() string
- func (o *ProtocolSendTransactionDefault) GetPayload() *models.RPCStatus
- func (o *ProtocolSendTransactionDefault) IsClientError() bool
- func (o *ProtocolSendTransactionDefault) IsCode(code int) bool
- func (o *ProtocolSendTransactionDefault) IsRedirect() bool
- func (o *ProtocolSendTransactionDefault) IsServerError() bool
- func (o *ProtocolSendTransactionDefault) IsSuccess() bool
- func (o *ProtocolSendTransactionDefault) String() string
- type ProtocolSendTransactionOK
- func (o *ProtocolSendTransactionOK) Code() int
- func (o *ProtocolSendTransactionOK) Error() string
- func (o *ProtocolSendTransactionOK) GetPayload() *models.ProtocolTransactionResponse
- func (o *ProtocolSendTransactionOK) IsClientError() bool
- func (o *ProtocolSendTransactionOK) IsCode(code int) bool
- func (o *ProtocolSendTransactionOK) IsRedirect() bool
- func (o *ProtocolSendTransactionOK) IsServerError() bool
- func (o *ProtocolSendTransactionOK) IsSuccess() bool
- func (o *ProtocolSendTransactionOK) String() string
- type ProtocolSendTransactionParams
- func NewProtocolSendTransactionParams() *ProtocolSendTransactionParams
- func NewProtocolSendTransactionParamsWithContext(ctx context.Context) *ProtocolSendTransactionParams
- func NewProtocolSendTransactionParamsWithHTTPClient(client *http.Client) *ProtocolSendTransactionParams
- func NewProtocolSendTransactionParamsWithTimeout(timeout time.Duration) *ProtocolSendTransactionParams
- func (o *ProtocolSendTransactionParams) SetContext(ctx context.Context)
- func (o *ProtocolSendTransactionParams) SetDefaults()
- func (o *ProtocolSendTransactionParams) SetHTTPClient(client *http.Client)
- func (o *ProtocolSendTransactionParams) SetTimeout(timeout time.Duration)
- func (o *ProtocolSendTransactionParams) SetTransaction(transaction *models.ProtocolSignedTransaction)
- func (o *ProtocolSendTransactionParams) WithContext(ctx context.Context) *ProtocolSendTransactionParams
- func (o *ProtocolSendTransactionParams) WithDefaults() *ProtocolSendTransactionParams
- func (o *ProtocolSendTransactionParams) WithHTTPClient(client *http.Client) *ProtocolSendTransactionParams
- func (o *ProtocolSendTransactionParams) WithTimeout(timeout time.Duration) *ProtocolSendTransactionParams
- func (o *ProtocolSendTransactionParams) WithTransaction(transaction *models.ProtocolSignedTransaction) *ProtocolSendTransactionParams
- func (o *ProtocolSendTransactionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ProtocolSendTransactionReader
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 ¶
func (o *ProtocolForwardTransactionDefault) Code() int
Code gets the status code for the protocol forward transaction default response
func (*ProtocolForwardTransactionDefault) Error ¶
func (o *ProtocolForwardTransactionDefault) Error() string
func (*ProtocolForwardTransactionDefault) GetPayload ¶
func (o *ProtocolForwardTransactionDefault) GetPayload() *models.RPCStatus
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 ¶
func (o *ProtocolForwardTransactionDefault) String() 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 ¶
func (o *ProtocolForwardTransactionOK) Code() int
Code gets the status code for the protocol forward transaction o k response
func (*ProtocolForwardTransactionOK) Error ¶
func (o *ProtocolForwardTransactionOK) Error() string
func (*ProtocolForwardTransactionOK) GetPayload ¶
func (o *ProtocolForwardTransactionOK) GetPayload() models.ProtocolForwardTransactionResponse
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 ¶
func (o *ProtocolForwardTransactionOK) String() 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 ¶
func (o *ProtocolForwardTransactionParams) SetContext(ctx context.Context)
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 ¶
func (o *ProtocolForwardTransactionParams) WithContext(ctx context.Context) *ProtocolForwardTransactionParams
WithContext adds the context to the protocol forward transaction params
func (*ProtocolForwardTransactionParams) WithDefaults ¶
func (o *ProtocolForwardTransactionParams) WithDefaults() *ProtocolForwardTransactionParams
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 ¶
func (o *ProtocolForwardTransactionParams) WithHTTPClient(client *http.Client) *ProtocolForwardTransactionParams
WithHTTPClient adds the HTTPClient to the protocol forward transaction params
func (*ProtocolForwardTransactionParams) WithSignature ¶
func (o *ProtocolForwardTransactionParams) WithSignature(signature *string) *ProtocolForwardTransactionParams
WithSignature adds the signature to the protocol forward transaction params
func (*ProtocolForwardTransactionParams) WithTimeout ¶
func (o *ProtocolForwardTransactionParams) WithTimeout(timeout time.Duration) *ProtocolForwardTransactionParams
WithTimeout adds the timeout to the protocol forward transaction params
func (*ProtocolForwardTransactionParams) WithTransaction ¶
func (o *ProtocolForwardTransactionParams) WithTransaction(transaction *models.ProtocolSignedTransaction) *ProtocolForwardTransactionParams
WithTransaction adds the transaction to the protocol forward transaction params
func (*ProtocolForwardTransactionParams) WriteToRequest ¶
func (o *ProtocolForwardTransactionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *ProtocolGetBlockOK) GetPayload() *models.ProtocolBlockResponse
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 ¶
func (o *ProtocolGetBlockParams) WithContext(ctx context.Context) *ProtocolGetBlockParams
WithContext adds the context to the protocol get block params
func (*ProtocolGetBlockParams) WithDefaults ¶
func (o *ProtocolGetBlockParams) WithDefaults() *ProtocolGetBlockParams
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 ¶
func (o *ProtocolGetBlockParams) WithTimeout(timeout time.Duration) *ProtocolGetBlockParams
WithTimeout adds the timeout to the protocol get block params
func (*ProtocolGetBlockParams) WriteToRequest ¶
func (o *ProtocolGetBlockParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *ProtocolGetNodeInfoDefault) Error() string
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 (o *ProtocolGetNodeInfoOK) GetPayload() *models.ProtocolNodeInfoResponse
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 ¶
func (o *ProtocolGetNodeInfoParams) WithContext(ctx context.Context) *ProtocolGetNodeInfoParams
WithContext adds the context to the protocol get node info params
func (*ProtocolGetNodeInfoParams) WithDefaults ¶
func (o *ProtocolGetNodeInfoParams) WithDefaults() *ProtocolGetNodeInfoParams
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 ¶
func (o *ProtocolGetNodeInfoParams) WithTimeout(timeout time.Duration) *ProtocolGetNodeInfoParams
WithTimeout adds the timeout to the protocol get node info params
func (*ProtocolGetNodeInfoParams) WriteToRequest ¶
func (o *ProtocolGetNodeInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ProtocolGetTransactionDefault) Code() int
Code gets the status code for the protocol get transaction default response
func (*ProtocolGetTransactionDefault) Error ¶
func (o *ProtocolGetTransactionDefault) Error() string
func (*ProtocolGetTransactionDefault) GetPayload ¶
func (o *ProtocolGetTransactionDefault) GetPayload() *models.RPCStatus
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 ¶
func (o *ProtocolGetTransactionDefault) String() 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 (o *ProtocolGetTransactionOK) GetPayload() *models.ProtocolTransactionResponse
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 ¶
func (o *ProtocolGetTransactionParams) WithContext(ctx context.Context) *ProtocolGetTransactionParams
WithContext adds the context to the protocol get transaction params
func (*ProtocolGetTransactionParams) WithDefaults ¶
func (o *ProtocolGetTransactionParams) WithDefaults() *ProtocolGetTransactionParams
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 ¶
func (o *ProtocolGetTransactionParams) WithHTTPClient(client *http.Client) *ProtocolGetTransactionParams
WithHTTPClient adds the HTTPClient to the protocol get transaction params
func (*ProtocolGetTransactionParams) WithTimeout ¶
func (o *ProtocolGetTransactionParams) WithTimeout(timeout time.Duration) *ProtocolGetTransactionParams
WithTimeout adds the timeout to the protocol get transaction params
func (*ProtocolGetTransactionParams) WithTxhash ¶
func (o *ProtocolGetTransactionParams) WithTxhash(txhash string) *ProtocolGetTransactionParams
WithTxhash adds the txhash to the protocol get transaction params
func (*ProtocolGetTransactionParams) WriteToRequest ¶
func (o *ProtocolGetTransactionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ProtocolPingParams) WithContext(ctx context.Context) *ProtocolPingParams
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 ¶
func (o *ProtocolSendTransactionDefault) Code() int
Code gets the status code for the protocol send transaction default response
func (*ProtocolSendTransactionDefault) Error ¶
func (o *ProtocolSendTransactionDefault) Error() string
func (*ProtocolSendTransactionDefault) GetPayload ¶
func (o *ProtocolSendTransactionDefault) GetPayload() *models.RPCStatus
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 ¶
func (o *ProtocolSendTransactionDefault) String() 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 (o *ProtocolSendTransactionOK) GetPayload() *models.ProtocolTransactionResponse
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 ¶
func (o *ProtocolSendTransactionParams) WithContext(ctx context.Context) *ProtocolSendTransactionParams
WithContext adds the context to the protocol send transaction params
func (*ProtocolSendTransactionParams) WithDefaults ¶
func (o *ProtocolSendTransactionParams) WithDefaults() *ProtocolSendTransactionParams
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 ¶
func (o *ProtocolSendTransactionParams) WithHTTPClient(client *http.Client) *ProtocolSendTransactionParams
WithHTTPClient adds the HTTPClient to the protocol send transaction params
func (*ProtocolSendTransactionParams) WithTimeout ¶
func (o *ProtocolSendTransactionParams) WithTimeout(timeout time.Duration) *ProtocolSendTransactionParams
WithTimeout adds the timeout to the protocol send transaction params
func (*ProtocolSendTransactionParams) WithTransaction ¶
func (o *ProtocolSendTransactionParams) WithTransaction(transaction *models.ProtocolSignedTransaction) *ProtocolSendTransactionParams
WithTransaction adds the transaction to the protocol send transaction params
func (*ProtocolSendTransactionParams) WriteToRequest ¶
func (o *ProtocolSendTransactionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files
¶
- protocol_client.go
- protocol_forward_transaction_parameters.go
- protocol_forward_transaction_responses.go
- protocol_get_block_parameters.go
- protocol_get_block_responses.go
- protocol_get_node_info_parameters.go
- protocol_get_node_info_responses.go
- protocol_get_transaction_parameters.go
- protocol_get_transaction_responses.go
- protocol_ping_parameters.go
- protocol_ping_responses.go
- protocol_send_transaction_parameters.go
- protocol_send_transaction_responses.go