Documentation ¶
Index ¶
- type Client
- type GetContractScriptInternalServerError
- type GetContractScriptOK
- type GetContractScriptParams
- func NewGetContractScriptParams() *GetContractScriptParams
- func NewGetContractScriptParamsWithContext(ctx context.Context) *GetContractScriptParams
- func NewGetContractScriptParamsWithHTTPClient(client *http.Client) *GetContractScriptParams
- func NewGetContractScriptParamsWithTimeout(timeout time.Duration) *GetContractScriptParams
- func (o *GetContractScriptParams) SetContext(ctx context.Context)
- func (o *GetContractScriptParams) SetContract(contract string)
- func (o *GetContractScriptParams) SetHTTPClient(client *http.Client)
- func (o *GetContractScriptParams) SetTimeout(timeout time.Duration)
- func (o *GetContractScriptParams) WithContext(ctx context.Context) *GetContractScriptParams
- func (o *GetContractScriptParams) WithContract(contract string) *GetContractScriptParams
- func (o *GetContractScriptParams) WithHTTPClient(client *http.Client) *GetContractScriptParams
- func (o *GetContractScriptParams) WithTimeout(timeout time.Duration) *GetContractScriptParams
- func (o *GetContractScriptParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetContractScriptReader
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 ¶
func (o *GetContractScriptInternalServerError) Error() string
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 ¶
func (o *GetContractScriptParams) WithContext(ctx context.Context) *GetContractScriptParams
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 ¶
func (o *GetContractScriptParams) WithTimeout(timeout time.Duration) *GetContractScriptParams
WithTimeout adds the timeout to the get contract script params
func (*GetContractScriptParams) WriteToRequest ¶
func (o *GetContractScriptParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.