contracts

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

func New

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

New creates a new contracts API client.

func (*Client) GetContractScript

func (a *Client) GetContractScript(params *GetContractScriptParams) (*GetContractScriptOK, error)

GetContractScript get contract script API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetContractScriptInternalServerError

type GetContractScriptInternalServerError struct {
}

GetContractScriptInternalServerError handles this case with default header values.

Internal error

func NewGetContractScriptInternalServerError

func NewGetContractScriptInternalServerError() *GetContractScriptInternalServerError

NewGetContractScriptInternalServerError creates a GetContractScriptInternalServerError with default headers values

func (*GetContractScriptInternalServerError) Error

type GetContractScriptOK

type GetContractScriptOK struct {
	Payload interface{}
}

GetContractScriptOK handles this case with default header values.

Endpoint for contract script

func NewGetContractScriptOK

func NewGetContractScriptOK() *GetContractScriptOK

NewGetContractScriptOK creates a GetContractScriptOK with default headers values

func (*GetContractScriptOK) Error

func (o *GetContractScriptOK) Error() string

func (*GetContractScriptOK) GetPayload

func (o *GetContractScriptOK) GetPayload() interface{}

type GetContractScriptParams

type GetContractScriptParams struct {

	/*Contract*/
	Contract string

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

GetContractScriptParams contains all the parameters to send to the API endpoint for the get contract script operation typically these are written to a http.Request

func NewGetContractScriptParams

func NewGetContractScriptParams() *GetContractScriptParams

NewGetContractScriptParams creates a new GetContractScriptParams object with the default values initialized.

func NewGetContractScriptParamsWithContext

func NewGetContractScriptParamsWithContext(ctx context.Context) *GetContractScriptParams

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

func NewGetContractScriptParamsWithHTTPClient

func NewGetContractScriptParamsWithHTTPClient(client *http.Client) *GetContractScriptParams

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

func NewGetContractScriptParamsWithTimeout

func NewGetContractScriptParamsWithTimeout(timeout time.Duration) *GetContractScriptParams

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

func (*GetContractScriptParams) SetContext

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

SetContext adds the context to the get contract script params

func (*GetContractScriptParams) SetContract

func (o *GetContractScriptParams) SetContract(contract string)

SetContract adds the contract to the get contract script params

func (*GetContractScriptParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get contract script params

func (*GetContractScriptParams) SetTimeout

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

SetTimeout adds the timeout to the get contract script params

func (*GetContractScriptParams) WithContext

WithContext adds the context to the get contract script params

func (*GetContractScriptParams) WithContract

func (o *GetContractScriptParams) WithContract(contract string) *GetContractScriptParams

WithContract adds the contract to the get contract script params

func (*GetContractScriptParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get contract script params

func (*GetContractScriptParams) WithTimeout

WithTimeout adds the timeout to the get contract script params

func (*GetContractScriptParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetContractScriptReader

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

GetContractScriptReader is a Reader for the GetContractScript structure.

func (*GetContractScriptReader) ReadResponse

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