operations

package
v0.0.0-...-80b2b3e Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for operations API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new operations API client.

func (*Client) GetBlockOperations

func (a *Client) GetBlockOperations(params *GetBlockOperationsParams) (*GetBlockOperationsOK, error)

GetBlockOperations get block operations API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetBlockOperationsInternalServerError

type GetBlockOperationsInternalServerError struct {
}

GetBlockOperationsInternalServerError handles this case with default header values.

Internal error

func NewGetBlockOperationsInternalServerError

func NewGetBlockOperationsInternalServerError() *GetBlockOperationsInternalServerError

NewGetBlockOperationsInternalServerError creates a GetBlockOperationsInternalServerError with default headers values

func (*GetBlockOperationsInternalServerError) Error

type GetBlockOperationsOK

type GetBlockOperationsOK struct {
	Payload [][]interface{}
}

GetBlockOperationsOK handles this case with default header values.

Endpoint for contract script

func NewGetBlockOperationsOK

func NewGetBlockOperationsOK() *GetBlockOperationsOK

NewGetBlockOperationsOK creates a GetBlockOperationsOK with default headers values

func (*GetBlockOperationsOK) Error

func (o *GetBlockOperationsOK) Error() string

func (*GetBlockOperationsOK) GetPayload

func (o *GetBlockOperationsOK) GetPayload() [][]interface{}

type GetBlockOperationsParams

type GetBlockOperationsParams struct {

	/*Block*/
	Block string

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

GetBlockOperationsParams contains all the parameters to send to the API endpoint for the get block operations operation typically these are written to a http.Request

func NewGetBlockOperationsParams

func NewGetBlockOperationsParams() *GetBlockOperationsParams

NewGetBlockOperationsParams creates a new GetBlockOperationsParams object with the default values initialized.

func NewGetBlockOperationsParamsWithContext

func NewGetBlockOperationsParamsWithContext(ctx context.Context) *GetBlockOperationsParams

NewGetBlockOperationsParamsWithContext creates a new GetBlockOperationsParams object with the default values initialized, and the ability to set a context for a request

func NewGetBlockOperationsParamsWithHTTPClient

func NewGetBlockOperationsParamsWithHTTPClient(client *http.Client) *GetBlockOperationsParams

NewGetBlockOperationsParamsWithHTTPClient creates a new GetBlockOperationsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetBlockOperationsParamsWithTimeout

func NewGetBlockOperationsParamsWithTimeout(timeout time.Duration) *GetBlockOperationsParams

NewGetBlockOperationsParamsWithTimeout creates a new GetBlockOperationsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetBlockOperationsParams) SetBlock

func (o *GetBlockOperationsParams) SetBlock(block string)

SetBlock adds the block to the get block operations params

func (*GetBlockOperationsParams) SetContext

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

SetContext adds the context to the get block operations params

func (*GetBlockOperationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get block operations params

func (*GetBlockOperationsParams) SetTimeout

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

SetTimeout adds the timeout to the get block operations params

func (*GetBlockOperationsParams) WithBlock

WithBlock adds the block to the get block operations params

func (*GetBlockOperationsParams) WithContext

WithContext adds the context to the get block operations params

func (*GetBlockOperationsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get block operations params

func (*GetBlockOperationsParams) WithTimeout

WithTimeout adds the timeout to the get block operations params

func (*GetBlockOperationsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetBlockOperationsReader

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

GetBlockOperationsReader is a Reader for the GetBlockOperations structure.

func (*GetBlockOperationsReader) ReadResponse

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